2004-05-09 04:26:14 +02:00
|
|
|
# $NetBSD: Makefile,v 1.33 2004/05/09 02:26:14 snj 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-12-03 08:55:43 +01:00
|
|
|
PKGNAME= libperl-${PERL5_DIST_VERS}
|
2001-10-18 17:20:01 +02:00
|
|
|
SVR4_PKGNAME= lperl
|
2001-06-07 06:25:31 +02:00
|
|
|
CATEGORIES+= lang devel
|
1998-12-02 03:42:05 +01:00
|
|
|
|
2003-07-17 23:41:05 +02:00
|
|
|
MAINTAINER= jlam@NetBSD.org
|
2001-06-07 06:25:31 +02:00
|
|
|
HOMEPAGE= http://language.perl.com/index.html
|
|
|
|
COMMENT= Perl DynaLoader as a shared object
|
2000-08-30 21:04:04 +02:00
|
|
|
|
2004-03-22 17:45:18 +01:00
|
|
|
CONFLICTS+= perl>=5.8
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${EXTRACT_ELEMENTS}
|
2004-05-09 04:26:14 +02:00
|
|
|
USE_BUILDLINK3= yes
|
2001-05-20 07:21:45 +02:00
|
|
|
EXTRACT_ELEMENTS= ${DISTNAME}/ext/DynaLoader
|
1998-12-02 03:42:05 +01:00
|
|
|
|
2004-03-22 17:45:18 +01:00
|
|
|
BUILDLINK_DEPENDS.perl= perl-${PERL5_DIST_VERS}{,nb*}
|
2002-07-23 00:00:49 +02: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"
|
2002-11-15 01:26:44 +01:00
|
|
|
. if !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so)
|
2001-06-07 06:25:31 +02:00
|
|
|
MKPIC= no
|
2002-11-15 01:26:44 +01:00
|
|
|
. endif
|
2001-05-18 15:52:49 +02:00
|
|
|
.endif
|
|
|
|
|
2001-05-20 07:21:45 +02:00
|
|
|
.if ${MKPIC} == "no"
|
2002-12-07 03:38:52 +01:00
|
|
|
PKG_FAIL_REASON= "${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-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
|
|
|
|
2002-11-15 01:26:44 +01:00
|
|
|
.include "../../lang/perl5/module.mk"
|
1998-12-02 03:42:05 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|