1 # $NetBSD: Makefile,v 1.67 2012/10/06 13:06:31 ryoon Exp $
9 MAINTAINER
= pkgsrc-users@NetBSD.org
10 HOMEPAGE
= http
://www.NetBSD.org
/docs
/pkgsrc
/creating.html
11 COMMENT
= Tool to automate initial steps in building a package
14 PKG_INSTALLATION_TYPES
= overwrite pkgviews
23 cd
${FILESDIR} && cp
*.pl
*.pm
${WRKSRC}/
25 .
include "../../mk/bsd.prefs.mk"
28 SUBST_STAGE.up
= do-configure
29 SUBST_FILES.up
= url2pkg.pl MakeMaker.pm
30 SUBST_SED.up
= -e
's,@MAKE@,'${MAKE
:Q
}',g'
31 SUBST_SED.up
+= -e
's,@PERL@,${PERL5},g'
32 SUBST_SED.up
+= -e
's,@PERLLIBDIR@,${PREFIX}/lib/url2pkg,g'
34 SUBST_SED.up
+= -e
's,@PKGSRCDIR@,/usr/pkgsrc,g'
36 SUBST_SED.up
+= -e
's,@PKGSRCDIR@,${PKGSRCDIR},g'
40 ${INSTALL_SCRIPT} ${WRKSRC}/url2pkg.pl
${DESTDIR}${PREFIX}/bin
/url2pkg
41 ${INSTALL_MAN} ${FILESDIR}/url2pkg
.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
42 ${INSTALL_DATA} ${WRKSRC}/MakeMaker.pm
${DESTDIR}${PREFIX}/lib
/url2pkg
/ExtUtils
/
44 .
include "../../mk/bsd.pkg.mk"