2005-12-18 16:20:21 +01:00
|
|
|
# $NetBSD: Makefile,v 1.317 2005/12/18 15:20:21 rillig Exp $
|
1998-08-08 00:11:40 +02:00
|
|
|
#
|
|
|
|
|
2005-12-08 11:57:59 +01:00
|
|
|
DISTNAME= pkglint-4.49
|
2005-11-21 23:06:30 +01:00
|
|
|
CATEGORIES= pkgtools
|
2001-10-31 19:39:26 +01:00
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2005-04-12 03:07:44 +02:00
|
|
|
MAINTAINER= rillig@NetBSD.org
|
2005-05-23 09:50:40 +02:00
|
|
|
HOMEPAGE= http://www.netbsd.org/Documentation/pkgsrc/
|
2001-10-31 19:39:26 +01:00
|
|
|
COMMENT= Verifier for NetBSD packages and complete pkgsrc tree
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2005-12-18 16:20:21 +01:00
|
|
|
DEPENDS+= digest>=20010101:../../pkgtools/digest
|
2005-11-21 23:06:30 +01:00
|
|
|
DEPENDS+= p5-Digest-SHA1-[0-9]*:../../security/p5-Digest-SHA1
|
2001-06-20 15:53:05 +02:00
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2005-07-15 22:14:02 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2004-01-05 12:28:07 +01:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
1998-08-08 00:11:40 +02:00
|
|
|
NO_CHECKSUM= yes
|
2005-05-23 09:50:40 +02:00
|
|
|
NO_BUILD= yes
|
2004-02-19 22:22:02 +01:00
|
|
|
USE_LANGUAGES= # empty
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2005-02-12 11:59:20 +01:00
|
|
|
INSTALLATION_DIRS= bin man/cat1 man/man1 share/pkglint
|
2004-01-05 12:28:07 +01:00
|
|
|
|
2004-10-16 17:04:26 +02:00
|
|
|
SUBST_CLASSES+= pkglint
|
2005-05-24 23:24:30 +02:00
|
|
|
SUBST_STAGE.pkglint= post-configure
|
2004-10-16 17:04:26 +02:00
|
|
|
SUBST_FILES.pkglint+= lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl
|
|
|
|
SUBST_FILES.pkglint+= pkglint.0 pkglint.1 pkglint.pl
|
2005-11-20 11:55:43 +01:00
|
|
|
.if defined(BATCH)
|
|
|
|
SUBST_SED.pkglint+= -e 's|@PKGSRCDIR@|/usr/pkgsrc|g'
|
|
|
|
.else
|
|
|
|
SUBST_SED.pkglint+= -e 's|@PKGSRCDIR@|${PKGSRCDIR}|g'
|
|
|
|
.endif
|
2004-10-16 17:04:26 +02:00
|
|
|
SUBST_SED.pkglint+= -e 's|@PREFIX@|${PREFIX}|g'
|
2005-05-24 23:24:30 +02:00
|
|
|
SUBST_SED.pkglint+= -e 's|@DISTVER@|${DISTNAME:S/pkglint-//}|g'
|
2004-10-16 17:04:26 +02:00
|
|
|
SUBST_SED.pkglint+= -e 's|@MAKE@|${MAKE}|g'
|
|
|
|
SUBST_SED.pkglint+= -e 's|@PERL@|${PERL5}|g'
|
2005-02-12 11:59:20 +01:00
|
|
|
SUBST_SED.pkglint+= -e 's|@DATADIR@|${PREFIX}/share/pkglint|g'
|
1999-07-02 15:57:56 +02:00
|
|
|
|
2004-04-11 20:29:34 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2003-01-27 18:59:01 +01:00
|
|
|
|
2004-05-09 07:13:24 +02:00
|
|
|
do-extract:
|
2005-11-10 15:30:56 +01:00
|
|
|
.for f in lintpkgsrc.0 lintpkgsrc.1 lintpkgsrc.pl pkglint.0 pkglint.1 pkglint.pl plist-clash.pl
|
2005-07-05 03:09:17 +02:00
|
|
|
@${CP} ${FILESDIR}/${f} ${WRKSRC}/${f}
|
2004-05-09 07:13:24 +02:00
|
|
|
.endfor
|
|
|
|
|
1998-08-08 00:11:40 +02:00
|
|
|
do-install:
|
2004-04-11 20:29:34 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl ${PREFIX}/bin/pkglint
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/lintpkgsrc.pl ${PREFIX}/bin/lintpkgsrc
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl ${PREFIX}/bin/plist-clash
|
1999-04-19 09:32:09 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.0 ${PREFIX}/man/cat1
|
2005-05-23 09:50:40 +02:00
|
|
|
.if !empty(MANINSTALL:Mmaninstall)
|
1999-04-19 09:32:09 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/lintpkgsrc.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkglint.1 ${PREFIX}/man/man1
|
2005-05-23 09:50:40 +02:00
|
|
|
.endif
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${PREFIX}/man/cat1
|
2005-02-12 11:59:20 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/makevars.map ${PREFIX}/share/pkglint/
|
2005-05-07 17:10:24 +02:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/deprecated.map ${PREFIX}/share/pkglint/
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2005-08-06 21:36:54 +02:00
|
|
|
post-install:
|
2005-11-15 02:55:53 +01:00
|
|
|
${PREFIX}/bin/pkglint -q 1>&2
|
2005-08-06 21:36:54 +02:00
|
|
|
|
1998-08-08 00:11:40 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|