2010-11-26 15:47:08 +01:00
|
|
|
# New ports collection makefile for: net-p2p/eiskaltdc
|
|
|
|
# Date created: 28 Aug 2009
|
|
|
|
# Whom: Stas Timokhin <stast@bsdportal.ru>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= eiskaltdcpp-data
|
2011-10-25 00:20:59 +02:00
|
|
|
PORTVERSION= 2.2.4
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 1
|
2010-11-26 15:47:08 +01:00
|
|
|
CATEGORIES= net-p2p
|
|
|
|
MASTER_SITES= GOOGLE_CODE
|
|
|
|
DISTNAME= eiskaltdcpp-${DISTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= gelraen.ua@gmail.com
|
|
|
|
COMMENT= Shared data for EiskaltDC++ GUIs
|
|
|
|
|
2011-10-06 00:59:55 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2010-11-26 15:47:08 +01:00
|
|
|
PROJECTHOST= eiskaltdc
|
|
|
|
|
2011-10-06 00:59:55 +02:00
|
|
|
USE_XZ= yes
|
2010-11-26 15:47:08 +01:00
|
|
|
NO_BUILD= yes
|
2011-10-06 00:59:55 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2010-11-26 15:47:08 +01:00
|
|
|
|
|
|
|
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:
|
2011-10-06 00:59:55 +02:00
|
|
|
@${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
|
2010-11-26 15:47:08 +01:00
|
|
|
.if defined(WITH_EMOTICONS)
|
2011-10-06 00:59:55 +02:00
|
|
|
@${CP} -rv ${WRKSRC}/emoticons ${DATA_DIR}
|
2010-11-26 15:47:08 +01:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_EXAMPLES)
|
2011-10-06 00:59:55 +02:00
|
|
|
@${MKDIR} ${DATA_DIR}/examples
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${DATA_DIR}/examples
|
2010-11-26 15:47:08 +01:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_LUASCRIPTS)
|
2011-10-06 00:59:55 +02:00
|
|
|
@${CP} -rv ${WRKSRC}/luascripts ${DATA_DIR}
|
2010-11-26 15:47:08 +01:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SOUNDS)
|
2011-10-06 00:59:55 +02:00
|
|
|
@${CP} -rv ${WRKSRC}/sounds ${DATA_DIR}
|
2010-11-26 15:47:08 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|