2011-05-26 22:31:47 +02:00
|
|
|
# $NetBSD: Makefile,v 1.390 2011/05/26 20:31:47 wiz Exp $
|
1998-08-08 00:11:40 +02:00
|
|
|
#
|
|
|
|
|
2010-03-11 21:54:19 +01:00
|
|
|
# Note: if you update the version number, please have a look at the
|
|
|
|
# changes between the CVS tag "pkglint_current" and HEAD.
|
|
|
|
# After updating, please re-set the CVS tag to HEAD.
|
2011-05-26 22:31:47 +02:00
|
|
|
DISTNAME= pkglint-4.99
|
2005-11-21 23:06:30 +01:00
|
|
|
CATEGORIES= pkgtools
|
2008-01-04 16:59:47 +01:00
|
|
|
MASTER_SITES= # none
|
|
|
|
DISTFILES= # none
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2005-04-12 03:07:44 +02:00
|
|
|
MAINTAINER= rillig@NetBSD.org
|
2007-10-07 14:59:11 +02:00
|
|
|
HOMEPAGE= http://www.NetBSD.org/docs/pkgsrc/
|
2008-01-04 16:59:47 +01:00
|
|
|
COMMENT= Verifier for NetBSD packages
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2005-11-21 23:06:30 +01:00
|
|
|
DEPENDS+= p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
|
2007-01-30 19:41:26 +01:00
|
|
|
DEPENDS+= p5-enum>=1.016:../../devel/p5-enum
|
2006-03-01 23:19:13 +01:00
|
|
|
DEPENDS+= p5-pkgsrc-Dewey>=1.0:../../pkgtools/p5-pkgsrc-Dewey
|
2001-06-20 15:53:05 +02:00
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
2006-12-15 18:35:20 +01:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2005-05-23 09:50:40 +02:00
|
|
|
NO_BUILD= yes
|
2006-06-09 12:27:09 +02:00
|
|
|
USE_LANGUAGES= # none
|
2007-12-07 12:47:52 +01:00
|
|
|
AUTO_MKDIRS= yes
|
2004-01-05 12:28:07 +01:00
|
|
|
|
2007-04-16 01:02:04 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2004-10-16 17:04:26 +02:00
|
|
|
SUBST_CLASSES+= pkglint
|
2005-05-24 23:24:30 +02:00
|
|
|
SUBST_STAGE.pkglint= post-configure
|
2007-01-06 14:31:26 +01:00
|
|
|
SUBST_FILES.pkglint+= pkglint.pl
|
2006-01-12 05:27:58 +01:00
|
|
|
SUBST_FILES.pkglint+= plist-clash.pl
|
2005-11-20 11:55:43 +01:00
|
|
|
.if defined(BATCH)
|
2006-02-25 16:56:24 +01:00
|
|
|
SUBST_SED.pkglint+= -e s\|@PKGSRCDIR@\|/usr/pkgsrc\|g
|
2005-11-20 11:55:43 +01:00
|
|
|
.else
|
2006-04-12 22:25:06 +02:00
|
|
|
SUBST_SED.pkglint+= -e s\|@PKGSRCDIR@\|${PKGSRCDIR}\|g
|
2005-11-20 11:55:43 +01:00
|
|
|
.endif
|
2006-04-12 22:25:06 +02:00
|
|
|
SUBST_SED.pkglint+= -e s\|@PREFIX@\|${PREFIX}\|g
|
2008-08-30 08:54:10 +02:00
|
|
|
SUBST_SED.pkglint+= -e s\|@DISTVER@\|${DISTNAME:S/pkglint-//}\|g
|
2006-02-25 16:56:24 +01:00
|
|
|
SUBST_SED.pkglint+= -e s\|@MAKE@\|${MAKE:Q}\|g
|
|
|
|
SUBST_SED.pkglint+= -e s\|@PERL@\|${PERL5:Q}\|g
|
2006-04-12 22:25:06 +02:00
|
|
|
SUBST_SED.pkglint+= -e s\|@DATADIR@\|${PREFIX}/share/pkglint\|g
|
1999-07-02 15:57:56 +02:00
|
|
|
|
2006-01-25 23:04:26 +01:00
|
|
|
# Note: This target is only intended for use by the pkglint author.
|
|
|
|
.PHONY: quick-install
|
|
|
|
quick-install:
|
2006-04-12 22:25:06 +02:00
|
|
|
${RM} -rf ${WRKSRC}
|
|
|
|
${MKDIR} ${WRKSRC}
|
2007-01-06 14:31:26 +01:00
|
|
|
${MAKE} do-extract subst-pkglint do-install selftest clean
|
2006-01-25 23:04:26 +01:00
|
|
|
|
2004-05-09 07:13:24 +02:00
|
|
|
do-extract:
|
2008-01-04 16:59:47 +01:00
|
|
|
cd ${FILESDIR} && ${CP} pkglint.0 pkglint.1 pkglint.pl plist-clash.pl ${WRKSRC}
|
2004-05-09 07:13:24 +02:00
|
|
|
|
1998-08-08 00:11:40 +02:00
|
|
|
do-install:
|
2006-12-15 18:35:20 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${DESTDIR}${PREFIX}/bin/pkglint
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${DESTDIR}${PREFIX}/bin/plist-clash
|
2007-09-29 15:39:22 +02:00
|
|
|
.if !empty(MANINSTALL:Mcatinstall)
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
|
|
|
|
.endif
|
2005-05-23 09:50:40 +02:00
|
|
|
.if !empty(MANINSTALL:Mmaninstall)
|
2006-12-15 18:35:20 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
2005-05-23 09:50:40 +02:00
|
|
|
.endif
|
2006-12-15 18:35:20 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/makevars.map ${DESTDIR}${PREFIX}/share/pkglint/
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/deprecated.map ${DESTDIR}${PREFIX}/share/pkglint/
|
2005-08-06 21:36:54 +02:00
|
|
|
|
2007-01-06 14:31:26 +01:00
|
|
|
selftest: .PHONY
|
2008-08-30 08:54:10 +02:00
|
|
|
${PREFIX}/bin/pkglint
|
2007-01-06 14:31:26 +01:00
|
|
|
|
1998-08-08 00:11:40 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|