From 494bd7de134d5fb96cdca2c32bd6a29398b9df0b Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 10 May 2013 16:44:26 +0000 Subject: Convert to new options framework --- net-p2p/eiskaltdcpp-data/Makefile | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'net-p2p/eiskaltdcpp-data') diff --git a/net-p2p/eiskaltdcpp-data/Makefile b/net-p2p/eiskaltdcpp-data/Makefile index 6f482d79f4c0..df61dd54c47f 100644 --- a/net-p2p/eiskaltdcpp-data/Makefile +++ b/net-p2p/eiskaltdcpp-data/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: net-p2p/eiskaltdc -# Date created: 28 Aug 2009 -# Whom: Stas Timokhin -# +# Created by: Stas Timokhin # $FreeBSD$ -# PORTNAME= eiskaltdcpp-data PORTVERSION= 2.2.4 @@ -23,34 +19,36 @@ 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 +OPTIONS_DEFINE= EMOTICONS EXAMPLES LUASCRIPTS SOUND +OPTIONS_DEFAULT= EMOTICONS SOUNDS +EMOTICONS_DESC= Install emoticons +EXAMPLES_DESC= Install script examples +LUASCRIPTS_DESC= Install lua script examples +SOUNDS_DESC= Install sound files .include DATA_DIR= ${PREFIX}/share/eiskaltdcpp -.if defined(WITH_EMOTICONS) +.if ${PORT_OPTIONS:MEMOTICONS} PLIST_SUB+= EMOTICONS="" .else PLIST_SUB+= EMOTICONS="@comment " .endif -.if defined(WITH_EXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} PLIST_SUB+= EXAMPLES="" .else PLIST_SUB+= EXAMPLES="@comment " .endif -.if defined(WITH_LUASCRIPTS) +.if ${PORT_OPTIONS:MLUASCRIPTS} PLIST_SUB+= LUASCRIPTS="" .else PLIST_SUB+= LUASCRIPTS="@comment " .endif -.if defined(WITH_SOUNDS) +.if ${PORT_OPTIONS:MSOUNDS} PLIST_SUB+= SOUNDS="" .else PLIST_SUB+= SOUNDS="@comment " @@ -63,17 +61,17 @@ do-install: @${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) +.if ${PORT_OPTIONS:MEMOTICONS} @${CP} -rv ${WRKSRC}/emoticons ${DATA_DIR} .endif -.if defined(WITH_EXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${DATA_DIR}/examples @${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${DATA_DIR}/examples .endif -.if defined(WITH_LUASCRIPTS) +.if ${PORT_OPTIONS:MLUASCRIPTS} @${CP} -rv ${WRKSRC}/luascripts ${DATA_DIR} .endif -.if defined(WITH_SOUNDS) +.if ${PORT_OPTIONS:MSOUNDS} @${CP} -rv ${WRKSRC}/sounds ${DATA_DIR} .endif -- cgit v1.2.3