5eda607514
Don't try to remove a non-existing file if no package had an error during the build.
73 lines
2 KiB
Makefile
73 lines
2 KiB
Makefile
# $NetBSD: Makefile,v 1.27 2008/01/17 19:25:33 joerg Exp $
|
|
|
|
DISTNAME= pbulk-0.21
|
|
CATEGORIES= pkgtools
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= joerg@NetBSD.org
|
|
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
|
|
COMMENT= Modular bulk build framework
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/pbulk
|
|
EXTRACT_ONLY= # empty
|
|
NO_CHECKSUM= YES
|
|
|
|
USE_FEATURES= nbcompat
|
|
USE_TOOLS+= awk:run bzip2:run digest:run gzip:run ident:run make:run \
|
|
mail:run tar:run
|
|
DEPENDS+= rsync-[0-9]*:../../net/rsync
|
|
|
|
.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/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 DIGEST GZIP_CMD IDENT MAIL_CMD NEATO \
|
|
PBULK_CONFIG PKG_INFO PREFIX SH TAR TARGET_MAKE
|
|
|
|
CONF_FILES+= share/examples/pbulk/pbulk.conf ${PKG_SYSCONFDIR}/pbulk.conf
|
|
|
|
PBULK_CONFIG= ${PKG_SYSCONFDIR}/pbulk.conf
|
|
|
|
INSTALLATION_DIRS= bin libexec/pbulk \
|
|
${PKGMANDIR}/cat1 ${PKGMANDIR}/man1 \
|
|
share/examples/pbulk
|
|
USE_BSD_MAKEFILE= yes
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
do-extract:
|
|
${CP} -r ${FILESDIR}/pbulk ${WRKDIR}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/pbulk.conf ${DESTDIR}${PREFIX}/share/examples/pbulk/pbulk.conf
|
|
|
|
.if ${OPSYS} == "SunOS"
|
|
LDADD+= -lsocket -lresolv
|
|
MAKE_ENV+= LDADD=${LDADD:Q}
|
|
.endif
|
|
|
|
.if ${OPSYS} == "Linux"
|
|
CPPFLAGS+= -D_GNU_SOURCE
|
|
.endif
|
|
|
|
.include "../../devel/libevent/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|