summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-13 22:34:28 +0000
committerjlam <jlam@pkgsrc.org>2004-08-13 22:34:28 +0000
commit8d575590f57af2896115d52c7ed3cf1ab9473658 (patch)
tree6695554016e719e75f54c2a0d82cff5f3adb90fa /pkgtools
parent1ec96931cf9fc187031f89b0a9683343927bb448 (diff)
downloadpkgsrc-8d575590f57af2896115d52c7ed3cf1ab9473658.tar.gz
Add a Makefile fragment that can be used in place of
libnbcompat/buildlink3.mk where it is included. This can be used to build a bootstrap package without needing to install libnbcompat.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/libnbcompat/inplace.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgtools/libnbcompat/inplace.mk b/pkgtools/libnbcompat/inplace.mk
new file mode 100644
index 00000000000..5750ae20727
--- /dev/null
+++ b/pkgtools/libnbcompat/inplace.mk
@@ -0,0 +1,27 @@
+# $NetBSD: inplace.mk,v 1.1 2004/08/13 22:34:28 jlam Exp $
+#
+# This Makefile fragment builds a working copy of libnbcompat inside
+# ${WRKDIR} and adds the appropriate paths to CPPFLAGS and LDFLAGS.
+# This can be used in place of libnbcompat/buildlink3.mk where it is
+# included by a bootstrap package Makefile.
+
+LIBNBCOMPAT_FILESDIR= ${.CURDIR}/../../pkgtools/libnbcompat/files
+LIBNBCOMPAT_SRCDIR= ${WRKDIR}/libnbcompat
+
+CPPFLAGS+= -I${LIBNBCOMPAT_SRCDIR}
+LDFLAGS+= -L${LIBNBCOMPAT_SRCDIR}
+LIBS+= -lnbcompat
+
+do-extract: libnbcompat-extract
+libnbcompat-extract:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ ${CP} -Rp ${LIBNBCOMPAT_FILESDIR} ${LIBNBCOMPAT_SRCDIR}
+
+pre-configure: libnbcompat-build
+libnbcompat-build:
+ ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD} \
+ cd ${LIBNBCOMPAT_SRCDIR} && ${SETENV} \
+ AWK="${AWK}" CC="${CC}" CFLAGS="${CFLAGS:M*}" \
+ CPPFLAGS="${CPPFLAGS:M*}" \
+ ${CONFIGURE_ENV:NLIBS=*} ${CONFIG_SHELL} \
+ ${CONFIGURE_SCRIPT} && ${MAKE_PROGRAM}