summaryrefslogtreecommitdiff
path: root/lang/libperl/Makefile
blob: 865ca63fe05a1140a2d464e0565db79b77b74297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# $NetBSD: Makefile,v 1.36 2005/06/16 06:58:00 jlam 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}
EXTRACT_ELEMENTS=	${DISTNAME}/ext/DynaLoader

BUILDLINK_DEPENDS.perl=		perl-${PERL5_DIST_VERS}{,nb*}
BUILDLINK_PKGSRCDIR.perl=	../../lang/perl5

.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_DIR} ${PERL5_ARCHLIB}
	${INSTALL_DATA} ${WRKSRC}/DynaLoader.o ${PERL5_ARCHLIB}/DynaLoader_pic.o

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"