2000-08-21 23:01:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.10 2000/08/21 21:01:31 hubertf Exp $
|
1998-12-02 03:42:05 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= perl5.004_04
|
|
|
|
PKGNAME= libperl-5.00404
|
|
|
|
CATEGORIES= lang devel perl5
|
|
|
|
MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/src/5.0/ \
|
|
|
|
ftp://ftp.cdrom.com/pub/perl/CPAN/src/5.0/
|
|
|
|
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://language.perl.com/index.html
|
|
|
|
|
|
|
|
USE_PERL5= yes
|
|
|
|
|
2000-05-16 16:46:44 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
1998-12-02 03:42:05 +01:00
|
|
|
.if exists(/usr/libexec/ld.elf_so)
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST-elf
|
|
|
|
.elif exists(/usr/libexec/ld.so)
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST-aout
|
|
|
|
.else
|
2000-08-21 23:01:29 +02:00
|
|
|
IGNORE= "${PKGNAME} needs shared object support"
|
1998-12-02 03:42:05 +01:00
|
|
|
.endif
|
2000-05-16 16:46:44 +02:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
|
|
|
PLIST_SRC= ${PKGDIR}/PLIST-elf
|
|
|
|
.endif
|
1998-12-02 03:42:05 +01:00
|
|
|
PATCHDIR= ../perl5/patches
|
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= PREFIX=${PREFIX}
|
2000-03-27 10:54:53 +02:00
|
|
|
CONFIGURE_SCRIPT= ./Configure
|
1999-02-04 23:16:00 +01:00
|
|
|
CONFIGURE_ARGS+= -sde -Dprefix=${PREFIX} -Duseshrplib=true \
|
1999-05-11 09:49:55 +02:00
|
|
|
-Darchname=${MACHINE_ARCH}-${LOWER_OPSYS} \
|
|
|
|
-Dusemymalloc=false
|
2000-05-16 16:46:44 +02:00
|
|
|
.if ${OPSYS} == "SunOS"
|
|
|
|
CONFIGURE_ARGS+= -Dcc="${CC}"
|
|
|
|
.endif
|
1998-12-02 03:42:05 +01:00
|
|
|
MAKE_ENV+= LD_LIBRARY_PATH=${WRKSRC}
|
|
|
|
ALL_TARGET= perl
|
|
|
|
|
1998-12-02 23:15:02 +01:00
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC}/ext/DynaLoader && ${RM} DynaLoader.o && \
|
|
|
|
${MAKE} DynaLoader.o && ${MV} DynaLoader.o DynaLoader_pic.o
|
|
|
|
|
1998-12-02 03:42:05 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libperl.so* \
|
1999-05-11 09:49:55 +02:00
|
|
|
${PREFIX}/lib/perl5/${MACHINE_ARCH}-${LOWER_OPSYS}/5.00404/CORE/
|
1998-12-02 03:42:05 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/perl ${PREFIX}/bin/soperl
|
1998-12-02 23:15:02 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/ext/DynaLoader/DynaLoader_pic.o \
|
1999-05-11 09:49:55 +02:00
|
|
|
${PREFIX}/lib/perl5/${MACHINE_ARCH}-${LOWER_OPSYS}/5.00404/
|
1998-12-02 03:42:05 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|