pkgsrc/pkgtools/pkg_comp/Makefile
agc 0e9ef95c9a Update pkg_comp to 1.38nb1
pkgsrc uses the "BUILD_TARGET" definition internally as the primary
target for building in a package's WRKDIR.  It defaults to "all".
So pkgsrc cd's to ${WRKDIR} and does a "make ${BUILD_TARGET}"

pkg_comp also wants to use the same "BUILD_TARGET" definition
internally for itself to guide the builds for making binary packages.
It's done at a higher level than the pkgsrc definition.  It defaults
to "package".

The use of the same name for two different purposes can cause
pkg_comp to fail to build packages. This commit renames the pkg_comp
definition to be "BUILD_PKG_COMP_TARGET".

With this change in place, my pkg_comp builds now complete successfully.

Bump PKGREVISION for the BUILD_PKG_COMP_TARGET fix
2015-11-21 23:10:27 +00:00

23 lines
549 B
Makefile

# $NetBSD: Makefile,v 1.55 2015/11/21 23:10:27 agc Exp $
PKGNAME= pkg_comp-1.38
PKGREVISION= 1
CATEGORIES= pkgtools
MAINTAINER= jmmv@NetBSD.org
COMMENT= Build packages inside a chroot jail
LICENSE= modified-bsd
ONLY_FOR_PLATFORM= NetBSD-*-*
WRKSRC= ${WRKDIR}
NO_CONFIGURE= YES
NO_BUILD= YES
INSTALLATION_DIRS= ${PKGMANDIR}/man8 sbin
do-install:
${INSTALL_SCRIPT} ${FILESDIR}/pkg_comp.sh ${DESTDIR}${PREFIX}/sbin/pkg_comp
${INSTALL_MAN} ${FILESDIR}/pkg_comp.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/pkg_comp.8
.include "../../mk/bsd.pkg.mk"