aboutsummaryrefslogtreecommitdiff
path: root/net-p2p/eiskaltdcpp-data/Makefile
blob: 6f482d79f4c08f4fe348ba37f1512696931fb902 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# New ports collection makefile for: net-p2p/eiskaltdc
# Date created:		28 Aug 2009
# Whom:			Stas Timokhin <stast@bsdportal.ru>
#
# $FreeBSD$
#

PORTNAME=	eiskaltdcpp-data
PORTVERSION=	2.2.4
PORTREVISION=	1
CATEGORIES=	net-p2p
MASTER_SITES=	GOOGLE_CODE
DISTNAME=	eiskaltdcpp-${DISTVERSION}

MAINTAINER=	gelraen.ua@gmail.com
COMMENT=	Shared data for EiskaltDC++ GUIs

LICENSE=	GPLv3

PROJECTHOST=	eiskaltdc

USE_XZ=		yes
NO_BUILD=	yes
INSTALLS_ICONS=	yes

OPTIONS=	EMOTICONS	"Install emoticons"	on \
		EXAMPLES	"Install script examples"	on \
		LUASCRIPTS	"Install lua script examples"	off \
		SOUNDS	"Install sound files"	on

.include <bsd.port.options.mk>

DATA_DIR=	${PREFIX}/share/eiskaltdcpp

.if defined(WITH_EMOTICONS)
PLIST_SUB+=	EMOTICONS=""
.else
PLIST_SUB+=	EMOTICONS="@comment "
.endif

.if defined(WITH_EXAMPLES)
PLIST_SUB+=	EXAMPLES=""
.else
PLIST_SUB+=	EXAMPLES="@comment "
.endif

.if defined(WITH_LUASCRIPTS)
PLIST_SUB+=	LUASCRIPTS=""
.else
PLIST_SUB+=	LUASCRIPTS="@comment "
.endif

.if defined(WITH_SOUNDS)
PLIST_SUB+=	SOUNDS=""
.else
PLIST_SUB+=	SOUNDS="@comment "
.endif

do-install:
	@${MKDIR} ${DATA_DIR}
	@${TOUCH} ${DATA_DIR}/keep_me
.for SIZE in 16x16 22x22 24x24 32x32 48x48 64x64 128x128
	@${MKDIR} "${LOCALBASE}/share/icons/hicolor/${SIZE}/apps"
	@${CP} -v "${WRKSRC}/icons/icon_${SIZE}.png" "${LOCALBASE}/share/icons/hicolor/${SIZE}/apps/eiskaltdcpp.png"
.endfor
.if defined(WITH_EMOTICONS)
	@${CP} -rv ${WRKSRC}/emoticons ${DATA_DIR}
.endif
.if defined(WITH_EXAMPLES)
	@${MKDIR} ${DATA_DIR}/examples
	@${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${DATA_DIR}/examples
.endif
.if defined(WITH_LUASCRIPTS)
	@${CP} -rv ${WRKSRC}/luascripts ${DATA_DIR}
.endif
.if defined(WITH_SOUNDS)
	@${CP} -rv ${WRKSRC}/sounds ${DATA_DIR}
.endif

.include <bsd.port.mk>