pkgsrc/pkgtools/pkg_notify/Makefile
jlam 3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00

44 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2005/07/16 01:19:17 jlam Exp $
#
DISTNAME= pkg_notify-0.4.2
CATEGORIES= pkgtools
MASTER_SITES= http://imil.net/NetBSD/
MAINTAINER= imil@gcu.info
HOMEPAGE= http://imil.net/
COMMENT= Notifies package maintainer when a new version is available
DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww
PKG_INSTALLATION_TYPES= overwrite pkgviews
NO_BUILD= yes
NO_CONFIGURE= yes
USE_TOOLS+= perl:run
USE_PKGINSTALL= yes
WRKSRC= ${WRKDIR}/pkg_notify
EXAMPLEDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EXAMPLEDIR}/${PKGBASE}.list \
${PKG_SYSCONFDIR}/${PKGBASE}.list
SUBST_CLASSES+= pkg_notify
SUBST_MESSAGE.pkg_notify= "Setting up hardcoded path."
SUBST_STAGE.pkg_notify= post-patch
SUBST_FILES.pkg_notify= pkg_notify
SUBST_SED.pkg_notify= -e 's|/usr/pkgsrc|${PKGSRCDIR}|' \
-e 's|/usr/pkg|${LOCALBASE}|g' \
-e 's|/usr/bin/make|${MAKE}|g' \
-e 's|/usr/pkg/bin/perl|${PERL5}|g'
INSTALLATION_DIRS= bin
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pkg_notify ${PREFIX}/bin
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA} ${WRKSRC}/${PKGBASE}.list ${EXAMPLEDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PKGBASE}
.include "../../mk/bsd.pkg.mk"