summaryrefslogtreecommitdiffstats
path: root/devel/glade/Makefile
blob: 13027b907bf65bcd5d94f8fdce8f194dd2cbe211 (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
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports-experimental/trunk/devel/glade/Makefile 19525 2014-04-15 07:00:19Z gusi $

PORTNAME=   glade
PORTVERSION=    3.18.2
CATEGORIES= devel gnome
MASTER_SITES=   GNOME
DIST_SUBDIR=    gnome3

MAINTAINER= gnome@FreeBSD.org
COMMENT=    User interface builder for GTK+ 3

BUILD_DEPENDS=  itstool:${PORTSDIR}/textproc/itstool

CONFLICTS=  glade3-3.*

USES=       desktop-file-utils gettext gmake libtool:keepla \
        pathfix pkgconfig tar:xz
USE_GNOME=  gtk30 gnomeprefix gnomedocutils introspection:build
INSTALLS_ICONS= yes
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include -Wno-error=format-nonliteral
LDFLAGS+=   -L${LOCALBASE}/lib

DOCSDIR=    ${PREFIX}/share/doc/gladeui-2

OPTIONS_DEFINE= PYTHON
OPTIONS_DEFAULT=PYTHON

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= 3
USE_GNOME+= py3gobject3
PLIST_SUB+= PYTHON:=""
CONFIGURE_ARGS+=--enable-python
.else
CONFIGURE_ARGS+=--disable-python
PLIST_SUB+= PYTHON:="@comment "
.endif

.include <bsd.port.mk>