pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk If FOO is empty, then ${FOO:S/^/-l/} has a value of...
details: https://anonhg.NetBSD.org/pkgsrc/rev/961033a9a280
branches: trunk
changeset: 539109:961033a9a280
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Feb 27 21:32:45 2008 +0000
description:
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:
devel/ncurses/buildlink3.mk | 5 +++--
devel/pdcurses/buildlink3.mk | 7 ++++---
mk/curses.buildlink3.mk | 4 ++--
mk/termlib.buildlink3.mk | 4 ++--
4 files changed, 11 insertions(+), 9 deletions(-)
diffs (77 lines):
diff -r 85b01008fc04 -r 961033a9a280 devel/ncurses/buildlink3.mk
--- a/devel/ncurses/buildlink3.mk Wed Feb 27 20:43:14 2008 +0000
+++ b/devel/ncurses/buildlink3.mk Wed Feb 27 21:32:45 2008 +0000
@@ -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_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.
diff -r 85b01008fc04 -r 961033a9a280 devel/pdcurses/buildlink3.mk
--- a/devel/pdcurses/buildlink3.mk Wed Feb 27 20:43:14 2008 +0000
+++ b/devel/pdcurses/buildlink3.mk Wed Feb 27 21:32:45 2008 +0000
@@ -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 @@
.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.
diff -r 85b01008fc04 -r 961033a9a280 mk/curses.buildlink3.mk
--- a/mk/curses.buildlink3.mk Wed Feb 27 20:43:14 2008 +0000
+++ b/mk/curses.buildlink3.mk Wed Feb 27 21:32:45 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: curses.buildlink3.mk,v 1.10 2008/02/27 15:26:34 jlam Exp $
+# $NetBSD: curses.buildlink3.mk,v 1.11 2008/02/27 21:32:45 jlam Exp $
#
# This Makefile fragment is meant to be included by packages that require
# any curses implementation instead of one particular one. The available
@@ -87,7 +87,7 @@
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ncurses}
BUILDLINK_PACKAGES+= curses
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}curses
-BUILDLINK_LDADD.curses?= ${BUILDLINK_LIBNAME.curses:S/^/-l/}
+BUILDLINK_LDADD.curses?= ${BUILDLINK_LIBNAME.curses:S/^/-l/:S/^-l$//}
BUILDLINK_BUILTIN_MK.curses= ../../mk/curses.builtin.mk
.elif ${CURSES_TYPE} == "ncurses"
USE_NCURSES= yes
diff -r 85b01008fc04 -r 961033a9a280 mk/termlib.buildlink3.mk
--- a/mk/termlib.buildlink3.mk Wed Feb 27 20:43:14 2008 +0000
+++ b/mk/termlib.buildlink3.mk Wed Feb 27 21:32:45 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: termlib.buildlink3.mk,v 1.3 2008/02/27 17:36:34 jlam Exp $
+# $NetBSD: termlib.buildlink3.mk,v 1.4 2008/02/27 21:32:45 jlam Exp $
#
# This Makefile fragment is meant to be included by packages that require
# a basic termlib implementation.
@@ -40,7 +40,7 @@
BUILDLINK_PACKAGES+= termlib
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}termlib
BUILDLINK_LIBNAME.termlib?= ${BUILTIN_LIBNAME.termlib}
-BUILDLINK_LDADD.termlib?= ${BUILDLINK_LIBNAME.termlib:S/^/-l/}
+BUILDLINK_LDADD.termlib?= ${BUILDLINK_LIBNAME.termlib:S/^/-l/:S/^-l$//}
BUILDLINK_BUILTIN_MK.termlib= ../../mk/termlib.builtin.mk
.elif ${TERMLIB_TYPE} == "curses"
. include "../../mk/curses.buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index