pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat Add a Makefile fragment that can ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b955bc4086d
branches:  trunk
changeset: 479408:3b955bc4086d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Aug 13 22:34:28 2004 +0000

description:
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:

 pkgtools/libnbcompat/inplace.mk |  27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diffs (31 lines):

diff -r d8f8186931b9 -r 3b955bc4086d pkgtools/libnbcompat/inplace.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/pkgtools/libnbcompat/inplace.mk   Fri Aug 13 22:34:28 2004 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index