Fix bad usage of empty()

This commit is contained in:
Ganael LAPLANCHE 2012-06-15 07:05:45 +00:00
parent b2d80d553c
commit ecd4ac353a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299317
2 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= hso
PORTVERSION= 20081023
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= comms kld
MASTER_SITES= http://www.shapeshifter.se/pub/hso/
PKGNAMESUFFIX= -kmod
@ -54,7 +54,7 @@ PLIST_SUB+= PL_DEVD=""
.else
PLIST_SUB+= PL_DEVD="@comment "
.endif
.if empty(${PORT_OPTIONS:MDEBUG})
.if empty(PORT_OPTIONS:MDEBUG)
EXTRA_PATCHES+= ${PATCHDIR}/HSO-NODEBUG-patch-Makefile
.endif
@ -65,7 +65,7 @@ IGNORE= requires FreeBSD 7.0 or superior
.endif
post-patch:
.if !empty(${PORT_OPTIONS:MHSOCTL}) && empty(${PORT_OPTIONS:MDEBUG})
.if !empty(PORT_OPTIONS:MHSOCTL) && empty(PORT_OPTIONS:MDEBUG)
@${PATCH} -d ${WRKSRC_HSOCTL} < ${PATCHDIR}/HSOCTL-NODEBUG-patch-Makefile
.endif

View file

@ -7,7 +7,7 @@
PORTNAME= uhso
PORTVERSION= 20100416
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= comms kld
MASTER_SITES= http://www.shapeshifter.se/pub/hso/
PKGNAMESUFFIX= -kmod
@ -54,12 +54,12 @@ MAN1= uhsoctl.1
PLIST_SUB+= PL_UHSOCTL="@comment "
.endif
.if empty(${PORT_OPTIONS:MDEBUG})
.if empty(PORT_OPTIONS:MDEBUG)
EXTRA_PATCHES+= ${PATCHDIR}/UHSO-NODEBUG-patch-Makefile
.endif
post-patch:
.if !empty(${PORT_OPTIONS:MUHSOCTL}) && !empty(${PORT_OPTIONS:MDEBUG})
.if !empty(PORT_OPTIONS:MUHSOCTL) && !empty(PORT_OPTIONS:MDEBUG)
@${PATCH} -d ${WRKSRC_UHSOCTL} < ${PATCHDIR}/UHSOCTL-DEBUG-patch-Makefile
.endif