summaryrefslogtreecommitdiff
path: root/devel/pdcurses
diff options
context:
space:
mode:
authorjlam <jlam>2008-02-27 21:32:45 +0000
committerjlam <jlam>2008-02-27 21:32:45 +0000
commit42555699e8115b8c3ead4273eb55471a74796e5a (patch)
tree4df64a26e77e3cfa706e239c1981ac8787dad444 /devel/pdcurses
parent6afc1052423fce32fdb7e3cc3695a050a8b749de (diff)
downloadpkgsrc-42555699e8115b8c3ead4273eb55471a74796e5a.tar.gz
If FOO is empty, then ${FOO:S/^/-l/} has a value of "-l". This is not
what we want. Instead, use another pattern to strip away lone "-l" in BUILDLINK_LDADD.*.
Diffstat (limited to 'devel/pdcurses')
-rw-r--r--devel/pdcurses/buildlink3.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/pdcurses/buildlink3.mk b/devel/pdcurses/buildlink3.mk
index 177d05bc5e5..42042b44d5b 100644
--- a/devel/pdcurses/buildlink3.mk
+++ b/devel/pdcurses/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2008/02/27 06:10:25 jlam Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2008/02/27 21:32:45 jlam Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PDCURSES_BUILDLINK3_MK:= ${PDCURSES_BUILDLINK3_MK}+
@@ -14,8 +14,9 @@ BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}pdcurses
.if !empty(PDCURSES_BUILDLINK3_MK:M+)
BUILDLINK_API_DEPENDS.pdcurses+= pdcurses>=3.3
BUILDLINK_PKGSRCDIR.pdcurses?= ../../devel/pdcurses
-BUILDLINK_LIBNAME.pdcurses= XCurses
-BUILDLINK_LDADD.pdcurses?= ${BUILDLINK_LIBNAME.pdcurses:S/^/-l/}
+
+BUILDLINK_LIBNAME.pdcurses= XCurses
+BUILDLINK_LDADD.pdcurses?= ${BUILDLINK_LIBNAME.pdcurses:S/^/-l/:S/^-l$//}
# _PKG_USE_CURSES is defined by curses.buildlink3.mk to indicate that
# the headers and libraries should be usable as <curses.h> and -lcurses.