summaryrefslogtreecommitdiffstats
path: root/devel/libpeas/Makefile
blob: bf6d2b49afd5715fcd1005b26d557a545751c7b3 (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
65
66
67
68
69
70
71
72
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#   $MCom$

PORTNAME=   libpeas
PORTVERSION=    1.6.1
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

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

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

USE_XZ=     yes
USE_PYTHON= 2.5+
USE_LDCONFIG=   yes
USES=       gettext gmake pathfix pkgconfig
USE_GNOME=  gtk30 ltverhack introspection:build
INSTALLS_ICONS= yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ARGS+=--disable-glade-catalog

OPTIONS_DEFINE= PYTHON JS
OPTIONS_DEFAULT=PYTHON JS GJS
OPTIONS_MULTI=  JS
OPTIONS_MULTI_JS=SEED GJS
JS_DESC=JavaScript plugin support
SEED_DESC=  JavaScript support based on webkit-gtk3
GJS_DESC=   JavaScript support based on spidermonkey

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSEED}
CONFIGURE_ARGS+=--enable-seed=yes
LIB_DEPENDS=    libseed-gtk3.so:${PORTSDIR}/devel/seed
PLIST_SUB+= SEED=""
.else
CONFIGURE_ARGS+=--enable-seed=no
PLIST_SUB+= SEED="@comment "
.endif

.if ${PORT_OPTIONS:MPYTHON}
CONFIGURE_ARGS+=--enable-python
USE_GNOME+= pygobject3
PLIST_SUB+= PYTHONS=""
.else
CONFIGURE_ARGS+=--enable-python=no
PLIST_SUB+= PYTHONS="@comment "
.endif

.if ${PORT_OPTIONS:MGJS}
CONFIGURE_ARGS+=--enable-gjs
BUILD_DEPENDS+= gjs>=1.32.0:${PORTSDIR}/lang/gjs
LIB_DEPENDS+=   libgjs.so:${PORTSDIR}/lang/gjs
PLIST_SUB+= GJS=""
.else
CONFIGURE_ARGS+=--enable-gjs=no
PLIST_SUB+= GJS="@comment "
.endif

PLIST_SUB+= VALA="@comment "

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so*
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpeas-1.0/loaders/lib*.so
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/peas-demo/plugins/*/*.so

.include <bsd.port.mk>