diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-20 19:57:40 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-20 19:57:40 +0000 |
commit | a4d2df0fc57a5e20a4a1c9b9a87a855de632bd33 (patch) | |
tree | 056cb0f7ca7d66ea61b924127b92aa909fbf2309 /x11 | |
parent | c459aefcea0f6f1c0c8dd01c0c3423a7c5a56e6c (diff) | |
download | pkgsrc-a4d2df0fc57a5e20a4a1c9b9a87a855de632bd33.tar.gz |
Add buildlink.mk file for use by other package Makefiles.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/Xaw3d/buildlink.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/x11/Xaw3d/buildlink.mk b/x11/Xaw3d/buildlink.mk new file mode 100644 index 00000000000..c286ea85e2b --- /dev/null +++ b/x11/Xaw3d/buildlink.mk @@ -0,0 +1,39 @@ +# $NetBSD: buildlink.mk,v 1.1 2001/06/20 19:57:40 jlam Exp $ +# +# This Makefile fragment is included by packages that use Xaw3d. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define XAW3D_REQD to the version of Xaw3d desired. +# (2) Include this Makefile fragment in the package Makefile, +# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(XAW3D_BUILDLINK_MK) +XAW3D_BUILDLINK_MK= # defined + +XAW3D_REQD?= 1.5 +DEPENDS+= Xaw3d>=${XAW3D_REQD}:../../x11/Xaw3d + +BUILDLINK_PREFIX.Xaw3d= ${X11PREFIX} +BUILDLINK_FILES.Xaw3d= include/X11/X11/Xaw3d/* # for OpenWindows +BUILDLINK_FILES.Xaw3d+= include/X11/Xaw3d/* +BUILDLINK_FILES.Xaw3d+= lib/libXaw3d.* + +BUILDLINK_PREFIX.Xaw3d-libXaw= ${X11PREFIX} +BUILDLINK_FILES.Xaw3d-libXaw= lib/libXaw3d.* +BUILDLINK_TRANSFORM.Xaw3d-libXaw= -e "s|libXaw3d\.|libXaw.|g" + +BUILDLINK_TARGETS.Xaw3d+= Xaw3d-buildlink +BUILDLINK_TARGETS.Xaw3d+= Xaw3d-libXaw-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.Xaw3d} + +pre-configure: ${BUILDLINK_TARGETS.Xaw3d} +Xaw3d-buildlink: _BUILDLINK_USE +Xaw3d-libXaw-buildlink: _BUILDLINK_USE + +.include "../../mk/bsd.buildlink.mk" + +.endif # XAW3D_BUILDLINK_MK |