blob: 293a974fa517c3ab80e58d7a07deca3db5979396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.3 2001/02/16 14:38:55 wiz Exp $
DISTNAME= p5-perl-headers
PKGNAME= ${DISTNAME}-${OS_VERSION}
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
NO_WRKSUBDIR= # defined
NO_CHECKSUM= # defined
NO_PATCH= # defined
NO_CONFIGURE= # defined
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:
${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"
|