6c632be065
used by packages that need curses. From curses.buildlink3.mk: CURSES_DEFAULT This value represents the type of curses we wish to use on the system. Setting this to "curses" means that the system curses implementation is fine. Possible: curses, ncurses, pdcurses + Move all code to detect a built-in version of curses into a curses.builtin.mk file. + Add code to {n,pd}curses/buildlink3.mk so make the headers and libraries usable as <curses.h> and -lcurses if _PKG_USE_CURSES is defined. _PKG_USE_CURSES is only defined by curses.buildlink3.mk. + Improve the detection of native ncurses in ncurses/builtin.mk and allow headers and libraries to be usable as <ncurses.h> and -lncurses.
40 lines
1.2 KiB
Makefile
40 lines
1.2 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.2 2008/02/25 04:19:34 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_LDADD.pdcurses?= -lXCurses
|
|
|
|
# _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/+$//}
|