2013-09-12 13:18:40 +02:00
|
|
|
# $NetBSD: Makefile,v 1.434 2013/09/12 11:18:41 jperkin 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.
|
2013-08-15 19:57:44 +02:00
|
|
|
DISTNAME= pkglint-4.132
|
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
|
|
|
|
2012-08-05 11:55:54 +02:00
|
|
|
OWNER= wiz@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
|
|
|
|
2013-03-26 16:10:31 +01:00
|
|
|
BUILD_DEPENDS+= p5-Test-Deep-[0-9]*:../../devel/p5-Test-Deep
|
2013-01-19 23:51:11 +01:00
|
|
|
BUILD_DEPENDS+= p5-Test-Trap-[0-9]*:../../devel/p5-Test-Trap
|
|
|
|
|
2004-01-05 12:28:07 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
1998-08-08 00:11:40 +02:00
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2011-06-16 00:22:28 +02:00
|
|
|
NO_CHECKSUM= yes
|
2006-06-09 12:27:09 +02:00
|
|
|
USE_LANGUAGES= # none
|
2013-03-26 16:09:35 +01:00
|
|
|
USE_TOOLS+= perl
|
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
|
2013-03-26 16:08:28 +01:00
|
|
|
SUBST_FILES.pkglint+= build.pl pkglint.pl pkglint.t 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
|
2013-03-26 16:09:35 +01:00
|
|
|
SUBST_SED.pkglint+= -e s\|@DATADIR@\|${FILESDIR}\|g
|
|
|
|
|
|
|
|
SUBST_CLASSES+= mappaths
|
|
|
|
SUBST_STAGE.mappaths= pre-install
|
|
|
|
SUBST_FILES.mappaths+= pkglint.pl
|
|
|
|
SUBST_SED.mappaths+= -e s\|${FILESDIR}\|${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}
|
2013-03-26 16:08:28 +01:00
|
|
|
${MAKE} do-extract subst-pkglint do-build do-install selftest clean
|
2006-01-25 23:04:26 +01:00
|
|
|
|
2004-05-09 07:13:24 +02:00
|
|
|
do-extract:
|
2013-03-26 16:08:28 +01:00
|
|
|
cd ${FILESDIR} && ${CP} build.pl pkglint.0 pkglint.1 pkglint.pl pkglint.t plist-clash.pl ${WRKSRC}
|
|
|
|
mkdir ${WRKSRC}/PkgLint
|
|
|
|
cd ${FILESDIR} && ${CP} PkgLint/*.pm ${WRKSRC}/PkgLint
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${PERL5} build.pl < pkglint.pl > pkglint.pl.inlined \
|
|
|
|
&& mv pkglint.pl.inlined pkglint.pl
|
2013-01-19 23:51:11 +01:00
|
|
|
|
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && prove pkglint.t
|
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)
|
2013-09-12 13:18:40 +02:00
|
|
|
. if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/pkglint.1
|
|
|
|
. else
|
2007-09-29 15:39:22 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/pkglint.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
|
2013-09-12 13:18:40 +02:00
|
|
|
. endif
|
2007-09-29 15:39:22 +02:00
|
|
|
.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"
|