summaryrefslogtreecommitdiff
path: root/games/netris
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2011-12-18 23:08:29 +0000
committersbd <sbd@pkgsrc.org>2011-12-18 23:08:29 +0000
commit3dc6d7340c5cbf6a3a737f26bb325b7096fb9413 (patch)
tree140a115a5dcbbec010f81f13827b4332ba8224e7 /games/netris
parente9c4e00d16552b98a36922e4fee7a131125ffe35 (diff)
downloadpkgsrc-3dc6d7340c5cbf6a3a737f26bb325b7096fb9413.tar.gz
Only add --cextra/--lextra to CONFIGURE_ARGS if CFLAGS/LDFLAGS are non empty.
Diffstat (limited to 'games/netris')
-rw-r--r--games/netris/Makefile6
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"