diff options
author | sbd <sbd@pkgsrc.org> | 2011-12-18 23:08:29 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2011-12-18 23:08:29 +0000 |
commit | faf08758cab262b744f7c5a29b63d0ba741b90f0 (patch) | |
tree | 140a115a5dcbbec010f81f13827b4332ba8224e7 /games | |
parent | ab624e808ff15229d22b6ffc4caec9eb5b69b8e2 (diff) | |
download | pkgsrc-faf08758cab262b744f7c5a29b63d0ba741b90f0.tar.gz |
Only add --cextra/--lextra to CONFIGURE_ARGS if CFLAGS/LDFLAGS are non empty.
Diffstat (limited to 'games')
-rw-r--r-- | games/netris/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/netris/Makefile b/games/netris/Makefile index c6e0ace51cc..a25878fb3cf 100644 --- a/games/netris/Makefile +++ b/games/netris/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2011/12/17 10:15:44 sbd Exp $ +# $NetBSD: Makefile,v 1.15 2011/12/18 23:08:29 sbd Exp $ # DISTNAME= netris-0.52 @@ -20,8 +20,8 @@ PKG_DESTDIR_SUPPORT= user-destdir USE_TOOLS+= gmake HAS_CONFIGURE= YES CONFIGURE_SCRIPT= ./Configure -CONFIGURE_ARGS+= --cextra ${CFLAGS:Q} -CONFIGURE_ARGS+= --lextra ${LDFLAGS:Q} +CONFIGURE_ARGS+= ${!empty(CFLAGS):?--cextra ${CFLAGS:Q}:} +CONFIGURE_ARGS+= ${!empty(LDFLAGS):?--lextra ${LDFLAGS:Q}:} .include "options.mk" |