2000-08-30 21:46:47 +02:00
|
|
|
# $NetBSD: Makefile,v 1.30 2000/08/30 19:46:47 jlam Exp $
|
1997-10-06 16:51:03 +02:00
|
|
|
# FreeBSD Id: Makefile,v 1.20 1997/07/18 06:16:44 markm Exp
|
|
|
|
#
|
|
|
|
|
2000-08-30 20:42:23 +02:00
|
|
|
DISTNAME= perl-${PERL_VERSION}
|
|
|
|
PKGNAME= perl-${PERL_VERSION}nb2
|
|
|
|
PERL_VERSION= 5.6.0
|
1998-04-20 13:56:17 +02:00
|
|
|
CATEGORIES= lang devel perl5
|
2000-08-30 20:42:23 +02:00
|
|
|
MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/src/5.0/maint/ \
|
|
|
|
ftp://ftp.cdrom.com/pub/perl/CPAN/src/5.0/maint/
|
1997-10-06 16:51:03 +02:00
|
|
|
|
1998-04-20 13:56:17 +02:00
|
|
|
MAINTAINER= packages@netbsd.org
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://language.perl.com/index.html
|
1997-10-06 16:51:03 +02:00
|
|
|
|
2000-08-30 20:42:23 +02:00
|
|
|
HAS_CONFIGURE= # defined
|
1998-08-15 03:37:19 +02:00
|
|
|
CONFIGURE_ENV+= PREFIX=${PREFIX}
|
2000-03-27 10:54:53 +02:00
|
|
|
CONFIGURE_SCRIPT= ./Configure
|
1999-04-27 18:44:15 +02:00
|
|
|
CONFIGURE_ARGS+= -sde -Dprefix=${PREFIX} -Doptimize="${CFLAGS}" \
|
1999-05-05 00:39:57 +02:00
|
|
|
-Darchname=${MACHINE_ARCH}-${LOWER_OPSYS} \
|
1999-08-31 20:51:35 +02:00
|
|
|
-Dcc=gcc -Dusemymalloc=false
|
1998-12-01 03:47:18 +01:00
|
|
|
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}
|
1997-10-06 16:51:03 +02:00
|
|
|
|
2000-08-30 20:42:23 +02:00
|
|
|
.if exists(/usr/libexec/ld.so) || exists(/usr/libexec/ld.elf_so)
|
|
|
|
CONFIGURE_ARGS+= -Duseshrplib=true
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= -Duseshrplib=false
|
|
|
|
.endif
|
2000-08-30 21:46:47 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2000-08-30 20:42:23 +02:00
|
|
|
|
1999-08-13 22:37:25 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
1999-08-31 20:51:35 +02:00
|
|
|
MAKE_ENV+= CFLAGS=
|
1999-08-13 22:37:25 +02:00
|
|
|
.endif
|
|
|
|
|
2000-08-30 21:46:47 +02:00
|
|
|
PERL5_PACKLIST= ${PREFIX}/lib/perl5/${PERL_VERSION}/${MACHINE_ARCH}-${LOWER_OPSYS}/.packlist
|
|
|
|
|
1997-10-06 16:51:03 +02:00
|
|
|
test:
|
2000-08-30 20:42:23 +02:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} test
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
cd ${WRKSRC}/ext/DynaLoader/hints && ${CP} -f openbsd.pl netbsd.pl
|
|
|
|
|
|
|
|
# Remove several modules which are externally available and don't need to be
|
|
|
|
# part of the base perl distribution.
|
|
|
|
#
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}/ext; ${RM} -rf Data Devel GDBM_File
|
|
|
|
cd ${WRKSRC}/lib; ${RM} -rf CGI CGI.pm
|
|
|
|
cd ${WRKSRC}/utils; ${RM} -f dprofpp.PL
|
1997-10-06 16:51:03 +02:00
|
|
|
|
|
|
|
post-install:
|
1998-03-16 07:56:19 +01:00
|
|
|
@strip ${PREFIX}/bin/a2p
|
1997-10-06 17:27:55 +02:00
|
|
|
@strip ${PREFIX}/bin/perl
|
2000-08-30 21:46:47 +02:00
|
|
|
${RMDIR} -p ${PREFIX}/lib/perl5/site_perl/${PERL_VERSION}/${MACHINE_ARCH}-${LOWER_OPSYS} 2>/dev/null || ${TRUE}
|
1998-10-03 05:14:23 +02:00
|
|
|
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|