diff options
author | jlam <jlam@pkgsrc.org> | 2004-08-13 22:34:28 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-08-13 22:34:28 +0000 |
commit | 2663de39e4d371323b5c9b5c95c0bd9d793e35b1 (patch) | |
tree | 6695554016e719e75f54c2a0d82cff5f3adb90fa /pkgtools | |
parent | 4b5a63d68bcd60e06d47c8338a54955ec3d9ea07 (diff) | |
download | pkgsrc-2663de39e4d371323b5c9b5c95c0bd9d793e35b1.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.mk | 27 |
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} |