aboutsummaryrefslogtreecommitdiff
path: root/devel/libpeas/Makefile
blob: d5ca70809512feaa9a1f8f3d2a2a518d94eaab58 (plain) (blame)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	libpeas
PORTVERSION=	1.12.1
PORTREVISION?=	2
CATEGORIES=	devel gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome3

MAINTAINER=	gnome@FreeBSD.org
COMMENT?=	Next evolution of the Gedit plugins engine

BUILD_DEPENDS=	valac:${PORTSDIR}/lang/vala

LIBPEAS_SLAVE?=	no

.if ${LIBPEAS_SLAVE} == no
PORTSCOUT=	limitw:1,even
.else
LIB_DEPENDS+=	libpeas-1.0.so:${PORTSDIR}/devel/libpeas
PORTSCOUT=	ignore:1
.endif

USES=		gettext gmake libtool pathfix pkgconfig tar:xz
USE_GNOME=	gtk30 intlhack introspection:build
USE_LDCONFIG=	yes
INSTALLS_ICONS=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip
CONFIGURE_ARGS+=--disable-glade-catalog
PLIST=          ${.CURDIR}/pkg-plist

.if ${LIBPEAS_SLAVE} == no
OPTIONS_SUB=	yes
OPTIONS_DEFINE=	SEED
OPTIONS_DEFAULT=SEED
SEED_DESC=	JavaScript support based on webkit-gtk3
SEED_LIB_DEPENDS=	libseed-gtk3.so:${PORTSDIR}/devel/seed
SEED_CONFIGURE_ENABLE=	seed
.else
CONFIGURE_ARGS+=	--disable-seed
.endif

.if ${LIBPEAS_SLAVE} == python2
USES+=		python:2
USE_GNOME+=	pygobject3
.else
CONFIGURE_ARGS+=	--disable-python2
.endif

.if ${LIBPEAS_SLAVE} == python3
USES+=		python:3
USE_GNOME+=	py3gobject3
.else
CONFIGURE_ARGS+=	--disable-python3
.endif

# lua needs lua 5.1 and devel/lua-lgi. The latter is build for lua 5.2 however..
CONFIGURE_ARGS+=	--disable-lua5.1 --disable-luajit

.include <bsd.port.mk>