1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

- Use !${PORT_OPTIONS:Mfoo} instead of empty(PORT_OPTIONS:Mfoo)

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-08-25 16:14:58 +00:00
parent fecac8453d
commit 20c1eacf2b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325358
10 changed files with 14 additions and 14 deletions

View File

@ -31,7 +31,7 @@ PORTDOCS= *
.endif
post-patch:
.if empty(PORT_OPTIONS:MDOCS) || empty(PORT_OPTIONS:MDOXYGEN)
.if !${PORT_OPTIONS:MDOCS} || !${PORT_OPTIONS:MDOXYGEN}
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| doc||' ${WRKSRC}/Makefile.in
.endif

View File

@ -34,7 +34,7 @@ MAN1= ktremotemgr.1 \
.include <bsd.port.options.mk>
post-patch:
.if empty(PORT_OPTIONS:MDOCS)
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
.endif

View File

@ -77,7 +77,7 @@ PLIST_SUB+= RUBY="@comment "
post-patch:
# do not install rdoc
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' ${WRKSRC}/ruby/Makefile.in
.if empty(PORT_OPTIONS:MDOCS)
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docdataDATA install-dist_exampledataDATA ||' ${WRKSRC}/lua/Makefile.in ${WRKSRC}/php/Makefile.in ${WRKSRC}/python/Makefile.in
@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-dist_docdataDATA||; 799 s|install-dist_exampledataDATA ||' ${WRKSRC}/ruby/Makefile.in
.endif

View File

@ -33,12 +33,12 @@ MAN1= xapian-check.1 \
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MSSE2)
.if !${PORT_OPTIONS:MSSE2}
CONFIGURE_ARGS+=--disable-sse
.endif
post-patch:
.if empty(PORT_OPTIONS:MDOCS)
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| docs||' ${WRKSRC}/Makefile.in
.endif

View File

@ -33,10 +33,10 @@ post-patch:
-e '/^exampledir = / s|(docdir)/example|(datadir)/examples/${PORTNAME}|' \
-e '/^example[a-z]*dir = / s|(docdir)/example/|(exampledir)/|' \
${WRKSRC}/doc/Makefile.in
.if empty(PORT_OPTIONS:MDOCS)
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^install-data-am:/ s| install-docDATA||' ${WRKSRC}/Makefile.in
.endif
.if empty(PORT_OPTIONS:MEXAMPLES)
.if !${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} \
-e '/^install-data-am:/ s| install-exampleDATA install-examplesrcDATA||' \
-e 's|install-exampletestsDATA ||' \

View File

@ -47,10 +47,10 @@ PLIST_SUB+= TIFFICC="@comment "
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| python samples||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|^testcms_LDFLAGS = .*$$|& -static|' ${WRKSRC}/testbed/Makefile.in
.if empty(PORT_OPTIONS:MJPEGICC)
.if !${PORT_OPTIONS:MJPEGICC}
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| jpegicc||' ${WRKSRC}/Makefile.in
.endif
.if empty(PORT_OPTIONS:MTIFFICC)
.if !${PORT_OPTIONS:MTIFFICC}
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| tifficc||' ${WRKSRC}/Makefile.in
.endif

View File

@ -52,10 +52,10 @@ PLIST_SUB+= TIFFICC="@comment "
.endif
post-patch:
.if empty(PORT_OPTIONS:MJPEGICC)
.if !${PORT_OPTIONS:MJPEGICC}
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| utils/jpgicc||' ${WRKSRC}/Makefile.in
.endif
.if empty(PORT_OPTIONS:MTIFFICC)
.if !${PORT_OPTIONS:MTIFFICC}
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| utils/tificc||' ${WRKSRC}/Makefile.in
.endif

View File

@ -35,7 +35,7 @@ MAKE_ENV+= PCRE_CFLAGS="" PCRE_LIBS=""
.endif
post-patch:
.if empty(PORT_OPTIONS:MEXAMPLES)
.if !${PORT_OPTIONS:MEXAMPLES}
@${REINPLACE_CMD} -e '/^install:/ s| install-examples||' ${WRKSRC}/Makefile
.endif

View File

@ -31,7 +31,7 @@ MAN3= XML::XML2JSON.3
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MJSON_SYCK) && empty(PORT_OPTIONS:MJSON_XS) && empty(PORT_OPTIONS:MJSON) && empty(PORT_OPTIONS:MJSON_DWIW)
.if !${PORT_OPTIONS:MJSON_SYCK} && !${PORT_OPTIONS:MJSON_XS} && !${PORT_OPTIONS:MJSON} && !${PORT_OPTIONS:MJSON_DWIW}
IGNORE= you must choose at least one JSON module
.endif

View File

@ -50,7 +50,7 @@ post-patch:
-e '/^dist_sysconf_DATA = /d' \
-e '/^pkglibbindir = / s| = .*$$| = ${WWWDIR}/cgi-bin|' \
${WRKSRC}/Makefile.in
.if empty(PORT_OPTIONS:MDOCS)
.if !${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| docs||' ${WRKSRC}/Makefile.in
.endif