summaryrefslogtreecommitdiff
path: root/security/libprelude-perl/Makefile
blob: 8d4714b0cb21d7f94b62aeeae802f8b7fbc4b7f3 (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.6 2012/07/05 16:07:18 drochner Exp $

PKGNAME=		libprelude-perl-${VERSION}
PKGREVISION=		4
COMMENT=		Perl bindings to LibPrelude

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../security/libprelude/Makefile.common"

CONFIGURE_ARGS+=	--with-perl=${PERL5:Q}
CONFIGURE_ARGS+=	--with-perl-installdirs=vendor
USE_TOOLS+=		perl:run
PERL5_PACKLIST=		auto/Prelude/.packlist
PERL5_PACKLIST+=	auto/PreludeEasy/.packlist
PERL5_CONFIGURE=	no
# something overrides USE_LANGUAGES from Makefile.common so repeat this here
USE_LANGUAGES=		c c++

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

PLIST_SRC=

BUILD_DIRS=		bindings/low-level/perl bindings/perl

PKG_OPTIONS_VAR=	PKG_OPTIONS.libprelude
PKG_SUPPORTED_OPTIONS=	debug

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mdebug)
CFLAGS=			-O0 -ggdb
.endif

do-build:
	cd ${WRKSRC}/bindings && ${MAKE} perl-build
	cd ${WRKSRC}/bindings/low-level && ${MAKE} perl-build

.include "../../devel/libltdl/convenience.mk"
.include "../../security/gnutls/buildlink3.mk"
.include "../../security/gnutls/libgnutls-config.mk"
.include "../../security/libprelude/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"