summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2012-04-28 05:55:10 +0000
committerdholland <dholland@pkgsrc.org>2012-04-28 05:55:10 +0000
commitf8cfae2d2986048f3900e5b45137588b0cee19d8 (patch)
tree62e9d2ffb452883dbee4854c8824b0e96ffba274 /chat
parent041b748bfd29152a9eb599dd761325c837ac2f47 (diff)
downloadpkgsrc-f8cfae2d2986048f3900e5b45137588b0cee19d8.tar.gz
Cope with CFLAGS and/or LDFLAGS being empty too. I don't entirely
understand what goes on without this change, but I was definitely getting "-cflags -lflags -Wl..." as configure arguments, and now it works.
Diffstat (limited to 'chat')
-rw-r--r--chat/ircservices/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/chat/ircservices/Makefile b/chat/ircservices/Makefile
index 0a9a58db6c3..139c542acf2 100644
--- a/chat/ircservices/Makefile
+++ b/chat/ircservices/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2012/04/25 12:20:48 obache Exp $
+# $NetBSD: Makefile,v 1.40 2012/04/28 05:55:10 dholland Exp $
#
DISTNAME= ircservices-5.0.64
@@ -28,8 +28,8 @@ BUILD_DEFS= VARBASE
CONFIGURE_ARGS+= -prefix ${PREFIX:Q}
CONFIGURE_ARGS+= -cc ${CC:Q}
-CONFIGURE_ARGS+= -cflags ${CFLAGS:Q}
-CONFIGURE_ARGS+= -lflags ${LDFLAGS:Q}
+CONFIGURE_ARGS+= ${empty(CFLAGS):?:-cflags ${CFLAGS:Q}}
+CONFIGURE_ARGS+= ${empty(LDFLAGS):?:-lflags ${LDFLAGS:Q}}
CONFIGURE_ARGS+= ${empty(LIBS):?:-libs ${LIBS:Q}}
SUBST_CLASSES+= install