summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-08-14 02:33:51 +0000
committerjlam <jlam@pkgsrc.org>2004-08-14 02:33:51 +0000
commite2418fd787a6d6bd06e14b9bc754d921e6217455 (patch)
treedb2bde5b2c79444cd21c55b36010e739bd91d740 /pkgtools/pkg_install/Makefile
parent896e92919d92caabe78eedb30fa6c2c72448c4f0 (diff)
downloadpkgsrc-e2418fd787a6d6bd06e14b9bc754d921e6217455.tar.gz
Convert to use libnbcompat/inplace.mk.
Diffstat (limited to 'pkgtools/pkg_install/Makefile')
-rw-r--r--pkgtools/pkg_install/Makefile19
1 files changed, 2 insertions, 17 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index 3da68bdccc4..b132f2ce752 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.102 2004/08/09 06:21:24 jlam Exp $
+# $NetBSD: Makefile,v 1.103 2004/08/14 02:33:51 jlam Exp $
# Notes to package maintainers:
#
@@ -45,13 +45,6 @@ USE_DIGEST= no
PLIST_SUBST+= MANDIR=${MANDIR}
PLIST_SUBST+= PKG_TOOLS_BIN=${PKG_TOOLS_BIN}
-LIBNBCOMPAT_FILESDIR= ${.CURDIR}/../../pkgtools/libnbcompat/files
-LIBNBCOMPAT_SRCDIR= ${WRKDIR}/libnbcompat
-
-CPPFLAGS+= -I${LIBNBCOMPAT_SRCDIR}
-LDFLAGS+= -L${LIBNBCOMPAT_SRCDIR}
-LIBS+= -lnbcompat
-
CPPFLAGS+= -DDEF_UMASK=${DEF_UMASK}
MAKE_ENV+= MACHINE_ARCH="${MACHINE_ARCH}"
@@ -67,17 +60,8 @@ VERSION!= ${AWK} -F '"' '/PKGTOOLS_VERSION/ {print $$2}' \
${FILESDIR}/lib/version.h
do-extract:
- @${CP} -Rp ${LIBNBCOMPAT_FILESDIR} ${LIBNBCOMPAT_SRCDIR}
@${CP} -Rp ${FILESDIR} ${WRKSRC}
-pre-configure:
- ${_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}
-
post-install:
if [ ! -f ${PKG_DBDIR}/pkgdb.byfile.db ]; then \
if [ ! -d ${PKG_DBDIR} ]; then \
@@ -86,6 +70,7 @@ post-install:
${PKG_ADMIN} rebuild; \
fi
+.include "../../pkgtools/libnbcompat/inplace.mk"
.include "../../mk/bsd.pkg.mk"
PREFIX:= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}