summaryrefslogtreecommitdiff
path: root/pkgtools/perl-mk/Makefile
blob: 8a0ff68da48541c89474685c04d286c1409494c0 (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.2 2001/02/26 07:27:27 jlam Exp $
#

DISTNAME=	perl-mk-1.0
CATEGORIES=	pkgtools
MASTER_SITES=	# empty
DISTFILES=	# empty

MAINTAINER=	wiz@netbsd.org
COMMENT=	Note installed perl version for bsd.pkg.mk speedup

# for backwards compatibility, and since we want to be included by the
# perl meta-package, we can't just use USE_PERL
DEPENDS+=	perl-{5.0*,5.6.0nb[12],base-5.[6-9]*}:../../lang/perl5-base

EXTRACT_ONLY=	# empty
NO_CHECKSUM=	# defined
NO_CONFIGURE=	# defined
NO_PATCH=	# defined
NO_BUILD=	# defined

MKPATH=		${PREFIX}/share/mk
PLIST_SUBST+=	MKPATH="share/mk"

do-install:
	${ECHO} PERL5_SITELIB=${PERL5_SITELIB} > ${MKPATH}/bsd.perl.mk
	${ECHO} PERL5_SITEARCH=${PERL5_SITEARCH} >> ${MKPATH}/bsd.perl.mk
	${ECHO} PERL5_ARCHLIB=${PERL5_ARCHLIB} >> ${MKPATH}/bsd.perl.mk

.include "../../mk/bsd.pkg.mk"

# needs PERL5 defined from bsd.pkg.mk
.if !defined(PERL5_SITELIB)
PERL5_SITELIB!=		eval `${PERL5} -V:installsitelib 2>/dev/null`; \
			${ECHO} $${installsitelib}
.endif
.if !defined(PERL5_SITEARCH)
PERL5_SITEARCH!=	eval `${PERL5} -V:installsitearch 2>/dev/null`; \
			${ECHO} $${installsitearch}
.endif
.if !defined(PERL5_ARCHLIB)
PERL5_ARCHLIB!=		eval `${PERL5} -V:installarchlib 2>/dev/null`; \
			${ECHO} $${installarchlib}
.endif