summaryrefslogtreecommitdiff
path: root/devel/libappindicator/Makefile
blob: 1f7cb1b22f72cbf0169e002519182be5d707c1bc (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
45
46
47
48
49
50
51
52
53
54
55
PORTNAME=	libappindicator
PORTVERSION=	${MAJOR_VER}.${SNAPSHOT_VER:S/.//g}.${PATCH_VER:S/ubuntu//}
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	http://archive.ubuntu.com/ubuntu/pool/main/liba/${PORTNAME}/
DISTNAME=	${PORTNAME}_${MAJOR_VER}+${SNAPSHOT_VER}.orig

PATCH_SITES=		${MASTER_SITES}
PATCHFILES=		${PORTNAME}_${MAJOR_VER}+${SNAPSHOT_VER}-${PATCH_VER}.diff.gz
PATCH_DIST_STRIP=	-p1

MAINTAINER=	tagattie@FreeBSD.org
COMMENT=	KSNI App Indicator library

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gnome-autogen.sh:devel/gnome-common \
		gtkdocize:textproc/gtk-doc \
		gsed:textproc/gsed
LIB_DEPENDS=	libdbus-glib-1.so:devel/dbus-glib \
		libdbusmenu-gtk3.so:devel/libdbusmenu

USES=		autoreconf:build gmake gnome libtool pkgconfig
USE_LDCONFIG=	yes
USE_GNOME=	cairo gdkpixbuf2 gtk30

OPTIONS_DEFINE=		VAPI
OPTIONS_DEFAULT=	VAPI
OPTIONS_SUB=		yes

VAPI_BUILD_DEPENDS=	vala>=0:lang/vala
VAPI_CONFIGURE_ENV_OFF=	ac_cv_path_VALA_API_GEN= \
			ac_cv_path_VALAC=

NO_WRKSUBDIR=	yes

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--enable-gtk-doc \
		--with-gtk=3
INSTALL_TARGET=	install-strip
CONFIGURE_ENV+=	ac_cv_path_SED=${LOCALBASE}/bin/gsed

MAJOR_VER=	12.10.1
SNAPSHOT_VER=	18.04.20180322.1
PATCH_VER=	0ubuntu5

post-patch:
	@${REINPLACE_CMD} -e 's,has_mono=true,has_mono=disabled,' \
		${WRKSRC}/configure.ac

pre-configure:
	cd ${WRKSRC} && ${SETENV} NOCONFIGURE=yes ${SH} ./autogen.sh

.include <bsd.port.mk>