summaryrefslogtreecommitdiff
path: root/wm/compiz/Makefile
blob: 51bc913148eb53caa273a70b53ce00e727509961 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# $NetBSD: Makefile,v 1.78 2014/08/22 11:24:27 wiz Exp $
#

PKGVER=		0.8.8
DISTNAME=	compiz-${PKGVER}
PKGREVISION=	12
CATEGORIES=	wm x11
MASTER_SITES=	http://releases.compiz.org/${PKGVER}/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://compiz.org/
COMMENT=	Compositing window manager
LICENSE=	mit

GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake intltool msgfmt msgmerge pkg-config xgettext
USE_PKGLOCALEDIR=	yes
USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes

COMPIZ_GCONF_SCHEMAS+=		compiz-annotate.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-blur.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-clone.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-commands.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-core.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-cube.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-dbus.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-decoration.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-fade.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-fs.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-gconf.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-glib.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-gnomecompat.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-ini.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-inotify.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-kconfig.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-minimize.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-move.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-obs.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-place.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-png.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-regex.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-resize.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-rotate.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-scale.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-screenshot.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-svg.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-switcher.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-video.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-water.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-wobbly.schemas
COMPIZ_GCONF_SCHEMAS+=		compiz-zoom.schemas
GCONF_SCHEMAS+=		gwd.schemas
GCONF_SCHEMAS+=		${COMPIZ_GCONF_SCHEMAS}

PKGCONFIG_OVERRIDE+=	compiz.pc.in
PKGCONFIG_OVERRIDE+=	libdecoration/libdecoration.pc.in

SUBST_CLASSES+=		paths
SUBST_FILES.paths=	metadata/decoration.xml.in
SUBST_SED.paths=	-e 's,@PREFIX@,${PREFIX},g'
SUBST_STAGE.paths=	post-patch

.include "options.mk"

BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:M*}

post-install:
.for schema in ${COMPIZ_GCONF_SCHEMAS}
	${INSTALL_DATA} ${WRKSRC}/metadata/${schema} ${DESTDIR}${PREFIX}/share/gconf/schemas
.endfor

# this is as much as needed for the basic window decorator
BUILDLINK_DEPMETHOD.pango=	build
.include "../../devel/pango/buildlink3.mk"
.include "../../graphics/cairo/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../devel/libwnck/buildlink3.mk"

# While we don't use threads, we link against libpthread because
# some plugins do it. Same for dlopen.
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"

.include "../../audio/libcanberra/buildlink3.mk"
.include "../../devel/GConf/schemas.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../x11/libXcomposite/buildlink3.mk"
.include "../../x11/libXfixes/buildlink3.mk"
.include "../../x11/libXdamage/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXxf86vm/buildlink3.mk"
.include "../../x11/libdrm/buildlink3.mk"
.include "../../x11/libICE/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/startup-notification/buildlink3.mk"
BUILDLINK_API_DEPENDS.libXrender+=	libXrender>=0.9.3
.include "../../x11/libXrender/buildlink3.mk"
.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"