1 # $NetBSD: Makefile,v 1.428 2013/03/26 15:11:36 schmonz Exp $
3 # Note: if you update the version number, please have a look at the
4 # changes between the CVS tag "pkglint_current" and HEAD.
5 # After updating, please re-set the CVS tag to HEAD.
6 DISTNAME
= pkglint-4.129
12 HOMEPAGE
= http
://www.NetBSD.org
/docs
/pkgsrc
/
13 COMMENT
= Verifier for NetBSD packages
15 DEPENDS
+= p5-Digest-SHA1-
[0-9]*:..
/..
/security
/p5-Digest-SHA1
16 DEPENDS
+= p5-enum
>=1.016:..
/..
/devel
/p5-enum
17 DEPENDS
+= p5-pkgsrc-Dewey
>=1.0:..
/..
/pkgtools
/p5-pkgsrc-Dewey
19 BUILD_DEPENDS
+= p5-Test-Deep-
[0-9]*:..
/..
/devel
/p5-Test-Deep
20 BUILD_DEPENDS
+= p5-Test-Trap-
[0-9]*:..
/..
/devel
/p5-Test-Trap
22 PKG_INSTALLATION_TYPES
= overwrite pkgviews
30 .
include "../../mk/bsd.prefs.mk"
32 SUBST_CLASSES
+= pkglint
33 SUBST_STAGE.pkglint
= post-configure
34 SUBST_FILES.pkglint
+= build.pl pkglint.pl pkglint.t plist-clash.pl
36 SUBST_SED.pkglint
+= -e s\|@PKGSRCDIR@\|
/usr
/pkgsrc\|g
38 SUBST_SED.pkglint
+= -e s\|@PKGSRCDIR@\|
${PKGSRCDIR}\|g
40 SUBST_SED.pkglint
+= -e s\|@PREFIX@\|
${PREFIX}\|g
41 SUBST_SED.pkglint
+= -e s\|@DISTVER@\|
${DISTNAME
:S
/pkglint-
//}\|g
42 SUBST_SED.pkglint
+= -e s\|@MAKE@\|
${MAKE
:Q
}\|g
43 SUBST_SED.pkglint
+= -e s\|@PERL@\|
${PERL5
:Q
}\|g
44 SUBST_SED.pkglint
+= -e s\|@DATADIR@\|
${FILESDIR}\|g
46 SUBST_CLASSES
+= mappaths
47 SUBST_STAGE.mappaths
= pre-install
48 SUBST_FILES.mappaths
+= pkglint.pl
49 SUBST_SED.mappaths
+= -e s\|
${FILESDIR}\|
${PREFIX}/share
/pkglint\|g
51 # Note: This target is only intended for use by the pkglint author.
56 ${MAKE} do-extract subst-pkglint do-build do-install selftest
clean
59 cd
${FILESDIR} && ${CP} build.pl pkglint
.0 pkglint
.1 pkglint.pl pkglint.t plist-clash.pl
${WRKSRC}
60 mkdir
${WRKSRC}/PkgLint
61 cd
${FILESDIR} && ${CP} PkgLint
/*.pm
${WRKSRC}/PkgLint
64 cd
${WRKSRC} && ${PERL5} build.pl
< pkglint.pl
> pkglint.pl.inlined \
65 && mv pkglint.pl.inlined pkglint.pl
68 cd
${WRKSRC} && prove pkglint.t
71 ${INSTALL_SCRIPT} ${WRKSRC}/pkglint.pl
${DESTDIR}${PREFIX}/bin
/pkglint
72 ${INSTALL_SCRIPT} ${WRKSRC}/plist-clash.pl
${DESTDIR}${PREFIX}/bin
/plist-clash
73 .if
!empty
(MANINSTALL
:Mcatinstall
)
74 ${INSTALL_MAN} ${WRKSRC}/pkglint
.0 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1
76 .if
!empty
(MANINSTALL
:Mmaninstall
)
77 ${INSTALL_MAN} ${WRKSRC}/pkglint
.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
79 ${INSTALL_DATA} ${FILESDIR}/makevars.map
${DESTDIR}${PREFIX}/share
/pkglint
/
80 ${INSTALL_DATA} ${FILESDIR}/deprecated.map
${DESTDIR}${PREFIX}/share
/pkglint
/
85 .
include "../../mk/bsd.pkg.mk"