Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / pkgtools / url2pkg / Makefile
blob4476e22624e8f10289cf9bbd8e8abd100ddba07f
1 # $NetBSD: Makefile,v 1.67 2012/10/06 13:06:31 ryoon Exp $
4 DISTNAME= url2pkg-2.17
5 CATEGORIES= pkgtools
6 MASTER_SITES= # none
7 DISTFILES= # none
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
12 LICENSE= original-bsd
14 PKG_INSTALLATION_TYPES= overwrite pkgviews
16 WRKSRC= ${WRKDIR}
17 NO_BUILD= yes
18 USE_LANGUAGES= # none
19 USE_TOOLS+= perl:run
20 AUTO_MKDIRS= yes
22 do-extract:
23 cd ${FILESDIR} && cp *.pl *.pm ${WRKSRC}/
25 .include "../../mk/bsd.prefs.mk"
27 SUBST_CLASSES+= up
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'
33 .if defined(BATCH)
34 SUBST_SED.up+= -e 's,@PKGSRCDIR@,/usr/pkgsrc,g'
35 .else
36 SUBST_SED.up+= -e 's,@PKGSRCDIR@,${PKGSRCDIR},g'
37 .endif
39 do-install:
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"