2001-06-07 06:25:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2001/06/07 04:25:33 jlam Exp $
|
1998-12-02 03:42:05 +01:00
|
|
|
|
2001-06-07 06:25:31 +02:00
|
|
|
.include "../../lang/perl5/Makefile.common"
|
1998-12-02 03:42:05 +01:00
|
|
|
|
2001-06-07 06:25:31 +02:00
|
|
|
PKGNAME= libperl-${PERL5_VERS}
|
|
|
|
PERL5_PKG_VERS= # empty
|
|
|
|
CATEGORIES+= lang devel
|
1998-12-02 03:42:05 +01:00
|
|
|
|
2001-06-07 06:25:31 +02:00
|
|
|
MAINTAINER= jlam@netbsd.org
|
|
|
|
HOMEPAGE= http://language.perl.com/index.html
|
|
|
|
COMMENT= Perl DynaLoader as a shared object
|
2000-08-30 21:04:04 +02:00
|
|
|
|
2001-06-07 06:25:31 +02:00
|
|
|
USE_PERL5= # defined
|
|
|
|
PERL_REQD= ${PERL5_DIST_VERS}
|
2001-05-11 16:52:21 +02:00
|
|
|
|
2001-05-20 07:21:45 +02:00
|
|
|
EXTRACT_ELEMENTS= ${DISTNAME}/ext/DynaLoader
|
|
|
|
WRKSRC= ${WRKDIR}/${EXTRACT_ELEMENTS}
|
1998-12-02 03:42:05 +01:00
|
|
|
|
2000-05-16 16:46:44 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2001-06-07 06:25:31 +02:00
|
|
|
MKPIC?= yes
|
|
|
|
|
2001-05-20 07:21:45 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
2001-06-07 06:25:31 +02:00
|
|
|
.if !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so)
|
|
|
|
MKPIC= no
|
2001-05-20 07:21:45 +02:00
|
|
|
.endif
|
2001-05-18 15:52:49 +02:00
|
|
|
.endif
|
|
|
|
|
2001-05-20 07:21:45 +02:00
|
|
|
.if ${MKPIC} == "no"
|
2001-06-07 06:25:31 +02:00
|
|
|
IGNORE= ${PKGNAME} needs shared objects
|
2000-05-16 16:46:44 +02:00
|
|
|
.endif
|
2000-08-30 21:04:04 +02:00
|
|
|
|
2001-05-20 07:21:45 +02:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
|
|
|
|
|
|
|
|
do-build:
|
2001-06-07 06:25:31 +02:00
|
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
|
|
|
${MAKE_PROGRAM} -f ${MAKEFILE} DynaLoader.o
|
2000-09-07 06:37:54 +02:00
|
|
|
|
|
|
|
do-install:
|
2001-05-20 07:21:45 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/DynaLoader.o ${PERL5_ARCHLIB}/DynaLoader_pic.o
|
1998-12-02 03:42:05 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|