The automatic truncation in gensolpkg doesn't work for packages which have the same package name for the first 5-6 chars. e.g. amanda-server and amanda-client would be named amanda and amanda. Now, we add a SVR4_PKGNAME and use amacl for amanda-client and amase for amanda-server. All svr4 packages also have a vendor tag, so we have to reserve some chars for this tag, which is normaly 3 or 4 chars. Thats why we can only use 6 or 5 chars for SVR4_PKGNAME. I used 5 for all the packages, to give the vendor tag enough room. All p5-* packages and a few other packages have now a SVR4_PKGNAME.
49 lines
1.5 KiB
Makefile
49 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2001/10/18 15:20:20 veego Exp $
|
|
|
|
DISTNAME= p5-perl-headers
|
|
PKGNAME= ${DISTNAME}-${OS_VERSION}
|
|
SVR4_PKGNAME= p5plh
|
|
CATEGORIES= devel perl5
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= jlam@netbsd.org
|
|
HOMEPAGE= http://language.perl.com/index.html
|
|
COMMENT= Perl header files
|
|
|
|
USE_PERL5= # defined
|
|
PERL5_PACKLIST= ${PERL5_SITEARCH}/.packlist.h2ph
|
|
|
|
EXTRACT_ONLY= # empty
|
|
WRKSRC= ${WRKDIR}
|
|
NO_CHECKSUM= # defined
|
|
NO_PATCH= # defined
|
|
NO_CONFIGURE= # defined
|
|
|
|
# Since this package will be named, for instance, p5-perl-headers-1.5.1,
|
|
# binary packages on a FTP server (where only "1.5" is used as the directory
|
|
# name) will be ambiguous. A user of 1.5 may mistakenly install the
|
|
# perl-headers-1.5.1 pkg by use of the automatic "best version" logic.
|
|
|
|
NO_BIN_ON_FTP= FTP servers do not distinguish A.B.X revisions of versions
|
|
|
|
do-build:
|
|
${MKDIR} ${WRKSRC}/h2ph
|
|
${RM} -f ${WRKSRC}/h2ph_log ${WRKSRC}/packlist
|
|
( cd /usr/include; ${PREFIX}/bin/h2ph -d ${WRKSRC}/h2ph -r -l . ) \
|
|
> ${WRKSRC}/h2ph_log
|
|
( ${ECHO} "${PERL5_SITEARCH}/_h2ph_pre.ph"; \
|
|
${CAT} ${WRKSRC}/h2ph_log \
|
|
| ${GREP} -- "->" \
|
|
| ${SED} -e "s,.*\./,${PERL5_SITEARCH}/,g" ) \
|
|
| ${SORT} -u \
|
|
> ${WRKSRC}/packlist
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PERL5_SITEARCH}
|
|
${CP} -R ${WRKSRC}/h2ph/* ${PERL5_SITEARCH}
|
|
${INSTALL_DATA} ${WRKSRC}/packlist ${PERL5_PACKLIST}
|
|
${CAT} ${PERL5_PACKLIST} | ${XARGS} ${CHMOD} a-w
|
|
${CAT} ${PERL5_PACKLIST} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|