43 lines
994 B
Makefile
43 lines
994 B
Makefile
# $NetBSD: Makefile,v 1.33 2004/05/09 02:26:14 snj Exp $
|
|
|
|
.include "../../lang/perl5/Makefile.common"
|
|
|
|
PKGNAME= libperl-${PERL5_DIST_VERS}
|
|
SVR4_PKGNAME= lperl
|
|
CATEGORIES+= lang devel
|
|
|
|
MAINTAINER= jlam@NetBSD.org
|
|
HOMEPAGE= http://language.perl.com/index.html
|
|
COMMENT= Perl DynaLoader as a shared object
|
|
|
|
CONFLICTS+= perl>=5.8
|
|
|
|
WRKSRC= ${WRKDIR}/${EXTRACT_ELEMENTS}
|
|
USE_BUILDLINK3= yes
|
|
EXTRACT_ELEMENTS= ${DISTNAME}/ext/DynaLoader
|
|
|
|
BUILDLINK_DEPENDS.perl= perl-${PERL5_DIST_VERS}{,nb*}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
MKPIC?= yes
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
. if !exists(/usr/libexec/ld.elf_so) && !exists(/usr/libexec/ld.so)
|
|
MKPIC= no
|
|
. endif
|
|
.endif
|
|
|
|
.if ${MKPIC} == "no"
|
|
PKG_FAIL_REASON= "${PKGNAME} needs shared objects"
|
|
.endif
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} \
|
|
${MAKE_PROGRAM} -f ${MAKEFILE} DynaLoader.o
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/DynaLoader.o ${PERL5_ARCHLIB}/DynaLoader_pic.o
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|