b97840c070
what we want. Instead, use another pattern to strip away lone "-l" in BUILDLINK_LDADD.*.
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.5 2008/02/27 21:32:45 jlam Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
PDCURSES_BUILDLINK3_MK:= ${PDCURSES_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= pdcurses
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npdcurses}
|
|
BUILDLINK_PACKAGES+= pdcurses
|
|
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/: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.
|
|
#
|
|
. if defined(_PKG_USE_CURSES)
|
|
BUILDLINK_INCDIRS.pdcurses+= include/xcurses
|
|
BUILDLINK_TRANSFORM+= l:curses:XCurses
|
|
. endif
|
|
|
|
.endif # PDCURSES_BUILDLINK3_MK
|
|
|
|
.include "../../mk/xaw.buildlink3.mk"
|
|
|
|
.include "../../x11/libICE/buildlink3.mk"
|
|
.include "../../x11/libSM/buildlink3.mk"
|
|
.include "../../x11/libX11/buildlink3.mk"
|
|
.include "../../x11/libXext/buildlink3.mk"
|
|
.include "../../x11/libXmu/buildlink3.mk"
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../x11/libXp/buildlink3.mk"
|
|
.include "../../x11/libXt/buildlink3.mk"
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|