diff options
author | John Marino <marino@FreeBSD.org> | 2016-08-18 06:02:13 +0000 |
---|---|---|
committer | John Marino <marino@FreeBSD.org> | 2016-08-18 06:02:13 +0000 |
commit | 28823d803cdbd3bda95d0d9abbc98ddc66ec72bc (patch) | |
tree | 5f42409dd945a341494c5eb5f13aec3a246a5e6d /x11-themes | |
parent | ee0c1f2e36c580c46ffda29a45d1dd8786417e21 (diff) |
Notes
Diffstat (limited to 'x11-themes')
-rw-r--r-- | x11-themes/slim-themes/Makefile | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/x11-themes/slim-themes/Makefile b/x11-themes/slim-themes/Makefile index 6a81b4a8171b..e90f5b8aa7a8 100644 --- a/x11-themes/slim-themes/Makefile +++ b/x11-themes/slim-themes/Makefile @@ -3,6 +3,7 @@ PORTNAME= slim-themes PORTVERSION= 1.0.1 +PORTREVISION= 1 CATEGORIES= x11-themes MASTER_SITES= http://dist.codelabs.ru/fbsd/ports/slim-themes/:new_themes \ http://dist.codelabs.ru/fbsd/ports/slim-themes/:old_themes \ @@ -12,11 +13,6 @@ DISTFILES= MAINTAINER= rea@FreeBSD.org COMMENT= Theme pack for SLiM login app -# But that's not all, see below. -OPTIONS_DEFINE= ALL_THEMES -OPTIONS_DEFAULT= ALL_THEMES -ALL_THEMES_DESC= Include all themes - NO_BUILD= yes NO_WRKSUBDIR= yes SHAREMODE= 644 @@ -24,6 +20,11 @@ THEMEDIR_REL= share/slim/themes THEMEDIR= ${PREFIX}/${THEMEDIR_REL} PLIST_SUB+= THEMEDIR=${THEMEDIR_REL} +OPTIONS_DEFINE= # empty +OPTIONS_MULTI= THEME # enforces at least one choice +OPTIONS_SUB= yes +THEME_DESC= Available SLiM Themes + # Format is 'variable name%description%archive name%unpacked dir%dest # dir%master site tag' # I am substituting ' ' -> '+' because make in 6.x isn't able to properly @@ -67,34 +68,23 @@ ${n}_DIST:= ${d}:${mtag} .endif ${n}_SDIR:= ${sdir} ${n}_DDIR:= ${ddir} -OPTIONS_DEFINE:= ${OPTIONS_DEFINE} ${n} +OPTIONS_MULTI_THEME:= ${OPTIONS_MULTI_THEME} ${n} A+= ${n} ${n}_DESC:= ${desc} NEWTHEMES:= ${ALLTHEMES} ${n} ALLTHEMES:= ${NEWTHEMES} .endfor # t in ${THEMELIST} -.include <bsd.port.pre.mk> +OPTIONS_DEFAULT= ${OPTIONS_MULTI_THEME} + +.include <bsd.port.options.mk> .for n in ${ALLTHEMES} -.if ${PORT_OPTIONS:MALL_THEMES} || ${PORT_OPTIONS:M${n}} -.if ! ${PORT_OPTIONS:M${n}} -PORT_OPTIONS+= ${n} -.endif +. if ${PORT_OPTIONS:M${n}} NEWDISTFILES:= ${DISTFILES} ${${n}_DIST} DISTFILES:= ${NEWDISTFILES} -SEEN_THEMES= yes -NEWPLIST_SUB:= ${PLIST_SUB} ${n}="" -PLIST_SUB:= ${NEWPLIST_SUB} -.else -NEWPLIST_SUB:= ${PLIST_SUB} ${n}="@comment " -PLIST_SUB:= ${NEWPLIST_SUB} -.endif # ${PORT_OPTIONS:MALL_THEMES} || ${PORT_OPTIONS:M${n}} -.endfor # n in ${THEMELIST} - -.if !defined(SEEN_THEMES) -IGNORE= at least one theme must be selected -.endif +. endif +.endfor .if ${PORT_OPTIONS:MPARALLEL_DIMS} EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-parallel-dimensions-slim.theme @@ -114,4 +104,4 @@ do-install: .endif # ${PORT_OPTIONS:M${n}} .endfor # t in ${THEMELIST} -.include <bsd.port.post.mk> +.include <bsd.port.mk> |