diff options
author | jlam <jlam@pkgsrc.org> | 2008-02-27 21:32:45 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-02-27 21:32:45 +0000 |
commit | d3dd72ada606c080e19336489ab1f7f4d9eee27c (patch) | |
tree | 4df64a26e77e3cfa706e239c1981ac8787dad444 /devel/ncurses | |
parent | d2c2c0645610511983c60396a511beb49a739813 (diff) | |
download | pkgsrc-d3dd72ada606c080e19336489ab1f7f4d9eee27c.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/ncurses')
-rw-r--r-- | devel/ncurses/buildlink3.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/devel/ncurses/buildlink3.mk b/devel/ncurses/buildlink3.mk index 0b80496084f..ba66ad0c8c6 100644 --- a/devel/ncurses/buildlink3.mk +++ b/devel/ncurses/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.31 2008/02/27 06:10:25 jlam Exp $ +# $NetBSD: buildlink3.mk,v 1.32 2008/02/27 21:32:45 jlam Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ NCURSES_BUILDLINK3_MK:= ${NCURSES_BUILDLINK3_MK}+ @@ -15,8 +15,9 @@ BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}ncurses BUILDLINK_API_DEPENDS.ncurses+= ncurses>=5.3nb1 BUILDLINK_ABI_DEPENDS.ncurses+= ncurses>=5.4nb1 BUILDLINK_PKGSRCDIR.ncurses?= ../../devel/ncurses + BUILDLINK_LIBNAME.ncurses= ncurses -BUILDLINK_LDADD.ncurses?= ${BUILDLINK_LIBNAME.ncurses:S/^/-l/} +BUILDLINK_LDADD.ncurses?= ${BUILDLINK_LIBNAME.ncurses:S/^/-l/:S/^-l$//} # Many packages expect the ncurses headers and libraries to be usable as # <curses.h> and -lcurses. |