[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pbulk

File: [cvs.NetBSD.org] / pkgsrc / pkgtools / pbulk / Makefile (download)

Revision 1.60, Wed Feb 24 22:54:54 2010 UTC (10 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2010Q1-base, pkgsrc-2010Q1
Changes since 1.59: +2 -2 lines

pbulk-0.46: Use stage-install instead of install.
[Change in pbulk-0.45, but be explicit here]

# $NetBSD: Makefile,v 1.60 2010/02/24 22:54:54 joerg Exp $

DISTNAME=	pbulk-0.46
COMMENT=	Modular bulk build framework

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../pkgtools/pbulk/Makefile.common"

USE_TOOLS+=	awk:run bzip2:run digest:run gzip:run make:run \
		mail:run sed:run tar:run
DEPENDS+=	rsync-[0-9]*:../../net/rsync
DEPENDS+=	pbulk-base>=0.38:../../pkgtools/pbulk-base

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD" && ${MAKE} == "/usr/bin/make"
TARGET_MAKE=	${MAKE}
.else
TARGET_MAKE=	$${prefix}/bin/bmake
.endif

NEATO=		${PREFIX}/bin/neato

SUBST_CLASSES+=		tools
SUBST_STAGE.tools=	post-patch
SUBST_MESSAGE.tools=	Fixing references to tools
SUBST_FILES.tools=	pbulk.conf scripts/build scripts/build-client-start \
	scripts/bulkbuild scripts/bulkbuild-rebuild scripts/bulkbuild-restart \
	scripts/client-clean \
	scripts/pkg-build scripts/pkg-up-to-date scripts/pre-build \
	scripts/report scripts/scan scripts/scan-client-start scripts/upload \
	scripts/compute-packages.awk scripts/create-broken-graph.awk \
	scripts/create-report-html.awk scripts/create-report-txt.awk \
	scripts/create-report.awk
SUBST_VARS.tools=	AWK BZIP2 CHOWN DIGEST GZIP_CMD MAIL_CMD NEATO \
			PBULK_CONFIG PBULK_CONFIG_VERSION PKG_ADD_CMD \
			PKG_DELETE_CMD PKG_INFO_CMD PREFIX SED SH TAR \
			TARGET_MAKE

CONF_FILES+=	share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf

PBULK_CONFIG=		${PKG_SYSCONFDIR}/pbulk.conf
PBULK_CONFIG_VERSION=	0.34

INSTALLATION_DIRS=	bin libexec/pbulk share/examples/pbulk
USE_BSD_MAKEFILE=	yes

BUILD_DIRS=	scripts

do-extract:
	${CP} -r ${FILESDIR}/pbulk ${WRKDIR}

post-install:
	${INSTALL_DATA} ${WRKSRC}/pbulk.conf ${DESTDIR}${PREFIX}/share/examples/pbulk/pbulk.conf

.include "../../mk/bsd.pkg.mk"