summaryrefslogtreecommitdiff
path: root/databases/postgresql-plperl/Makefile
blob: 29d8fd10b687a8132f9fa62fd85caad1baabfcc2 (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
# $NetBSD: Makefile,v 1.5 2001/12/03 08:06:27 jlam Exp $

.include "../../databases/postgresql/Makefile.common"
.include "../../databases/postgresql/Makefile.ssl"

PKGNAME=		postgresql-plperl-${PG_BASE_VERS}
COMMENT=		PL/Perl procedural language for the PostgreSQL backend

BUILDLINK_DEPENDS.postgresql-lib=	postgresql-lib>=${PG_BASE_VERS}
DEPENDS+=		postgresql-server>=${PG_BASE_VERS}:../../databases/postgresql-server
DEPENDS+=		libperl>=${LIBPERL5_REQD}:../../lang/libperl

USE_BUILDLINK_ONLY=	YES
LIBPERL5_REQD=		${PERL5_REQD}

CONFIGURE_ARGS+=	--with-perl
CONFIGURE_ENV+=		PERL="${PERL5}"

.if (${OBJECT_FMT} == "ELF")
MAKE_ENV+=		RPATH_LDFLAGS="-Wl,-R${PERL5_ARCHLIB}/CORE"
.else
MAKE_ENV+=		RPATH_LDFLAGS="-R${PERL5_ARCHLIB}/CORE"
.endif

DIRS_TO_BUILD=		src/pl/plperl

do-build:
.for DIR in ${DIRS_TO_BUILD}
	cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV}			\
		${MAKE_PROGRAM} ${MAKE_FLAGS} ${ALL_TARGET}
.endfor

do-install:
.for DIR in ${DIRS_TO_BUILD}
	cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV}			\
		${MAKE_PROGRAM} ${MAKE_FLAGS} ${INSTALL_TARGET}
.endfor

.include "../../databases/postgresql-lib/buildlink.mk"
.include "../../lang/perl5/buildlink.mk"
.include "../../mk/bsd.pkg.mk"