summaryrefslogtreecommitdiff
path: root/textproc/stardict2-quick/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 13:34:26 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-28 13:34:26 +0000
commit3c7a47e55d9348d678f15ff74a48391b1eab2f7e (patch)
treee91490c76e95cdb25f944f5dc050e3259fb0e4a9 /textproc/stardict2-quick/Makefile
parentdevel/py-tox: Update to 1.4.3 (diff)
Convert textproc to new options framework
Notes
Notes: svn path=/head/; revision=316718
Diffstat (limited to '')
-rw-r--r--textproc/stardict2-quick/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/textproc/stardict2-quick/Makefile b/textproc/stardict2-quick/Makefile
index cf438e40784d..79a20651b6d4 100644
--- a/textproc/stardict2-quick/Makefile
+++ b/textproc/stardict2-quick/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: stardict-quick
-# Date created: 16 Dec 2004
-# Whom: Timur I. Bakeyev <timur@gnome.org>
-#
+# Created by: Timur I. Bakeyev <timur@gnome.org>
# $FreeBSD$
-#
PORTNAME= stardict
PORTVERSION= 2.4.2
@@ -43,16 +39,19 @@ DICTIONARIES= afr-eng afr-swe bul-swe dan-deu dan-eng dan-fin dan-fra \
swe-spa swe-swa swe-wel wel-swe
.if !defined(DICT_PACK)
-OPTIONS= ALL "All dictionaries" on
+OPTIONS_DEFINE= ALL
+OPTIONS_DEFAULT= ALL
+ALL_DESC= All dictionaries
.for dict in ${DICTIONARIES}
-OPTIONS+= ${dict:U:S|-|_|g} "${dict} dictionary" off
+OPTIONS_DEFINE+= ${dict:U:S|-|_|g}
+${dict:U:S|-|_|g}_DESC= ${dict} dictionary
.endfor
.endif
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.for dict in ${DICTIONARIES}
-.if defined(WITH_ALL) || defined(WITH_${dict:U:S|-|_|g})
+.if ${PORT_OPTIONS:MALL} || ${PORT_OPTIONS:M${dict:U:S|-|_|g}}
INSTALL_DICTIONARIES+= ${dict}
.endif
.endfor
@@ -79,4 +78,4 @@ post-install:
@${ECHO_CMD} "@unexec ${RMDIR} %D/${DICTDIR} 2>/dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@unexec ${RMDIR} %D/${STARDICT_DIR} 2>/dev/null || true" >> ${TMPPLIST}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>