summaryrefslogtreecommitdiff
path: root/x11/libdesktop-agnostic/Makefile
blob: cf821af1a89467d02939cd6961454729bc1f8af7 (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
56
57
58
59
60
61
62
63
# $NetBSD: Makefile,v 1.4 2012/03/09 12:34:25 wiz Exp $
#

DISTNAME=	libdesktop-agnostic-0.3.92
PKGREVISION=	2
CATEGORIES=	x11
MASTER_SITES=	https://launchpad.net/libdesktop-agnostic/0.4/0.3.92/+download/

MAINTAINER=	imil@NetBSD.org
HOMEPAGE=	https://launchpad.net/libdesktop-agnostic
COMMENT=	Desktop-agnostic library, apis and tools
LICENSE=	gnu-lgpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

# Needed fo launchpad
FETCH_USING=	curl

USE_TOOLS+=	intltool pkg-config

PKGCONFIG_OVERRIDE+=	data/desktop-agnostic.pc.in

CONFIGURE_ARGS=	--config-backends=keyfile,gconf	\
		--vfs-backends=gio		\
		--desktop-entry-backends=glib

PY_PATCHPLIST=	yes

EGDIR=			${PREFIX}/share/examples/libdesktop-agnostic
PKG_SYSCONFSUBDIR=	xdg

MAKE_DIRS+=		${EGDIR}
MAKE_DIRS+=		${PKG_SYSCONFDIR}/libdesktop-agnostic

CONF_FILES+=	${EGDIR}/desktop-agnostic.ini	\
		${PKG_SYSCONFDIR}/libdesktop-agnostic/desktop-agnostic.ini

WAF_ENV=	CC=${CC:Q} CXX=${CXX:Q} PREFIX=${PREFIX:Q} \
		CFLAGS=${CFLAGS:Q} CXXFLAGS=${CXXFLAGS:Q} \
		LINKFLAGS=${LDFLAGS:Q} DESTDIR=${DESTDIR:Q}

do-configure:
	cd ${WRKSRC} && env ${WAF_ENV} ./waf configure ${CONFIGURE_ARGS}

do-build:
	cd ${WRKSRC} && env ${WAF_ENV} ./waf

do-install:
	cd ${WRKSRC} && env ${WAF_ENV} ./waf install

post-install:
	${CHMOD} a+x ${DESTDIR}${PREFIX}/lib/desktop-agnostic/modules/*.so
	${CHMOD} a+x ${DESTDIR}${PREFIX}/lib/libdesktop-agnostic*.so.*
	${CHMOD} a+x ${DESTDIR}${PREFIX}/${PYSITELIB}/desktopagnostic/*.so

.include "../../lang/vala014/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../devel/GConf/buildlink3.mk"
.include "../../devel/py-gobject/buildlink3.mk"
.include "../../devel/gobject-introspection/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"