summaryrefslogtreecommitdiff
path: root/x11/tint2/Makefile
blob: b9cf1e8d1fd2706fab66b99da35469862b2d9454 (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
# $NetBSD: Makefile,v 1.24 2013/06/03 10:06:25 wiz Exp $

DISTNAME=		tint2-0.11
PKGREVISION=		16
CATEGORIES=		x11
MASTER_SITES=		http://tint2.googlecode.com/files/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		fernandotcl@gmail.com
HOMEPAGE=		http://code.google.com/p/tint2/
COMMENT=		Tint2 is a simple panel/taskbar
LICENSE=		gnu-gpl-v2

USE_LANGUAGES=		c c++ # XXX CMake. pkg does not really need c++
USE_LIBTOOL=		yes
USE_TOOLS+=		gmake pkg-config

INSTALLATION_DIRS=	share/examples/tint2
OWN_DIRS=		${PKG_SYSCONFDIR}/xdg/tint2
CONF_FILES=		${PREFIX}/share/examples/tint2/tint2rc \
				${PKG_SYSCONFDIR}/xdg/tint2/tint2rc

REPLACE_PYTHON+=	src/tint2conf/tintwizard.py

CMAKE_OPTS+=	-DCMAKE_INSTALL_PREFIX=${PREFIX}
CMAKE_OPTS+=	-DSYSCONFDIR=${PKG_SYSCONFDIR}
CMAKE_OPTS+=	-DMANDIR=${PKGMANDIR}
# Below rpath fix is copypasted from graphics/vtk.
CMAKE_OPTS+=	-DCMAKE_INSTALL_RPATH:STRING=${PREFIX}/lib:${X11BASE}/lib${LIBABISUFFIX:Q}	\
CMAKE_OPTS+=	-DCMAKE_SKIP_BUILD_RPATH:BOOL=ON		\
CMAKE_OPTS+=	-DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON	\
CMAKE_OPTS+=	-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
CMAKE_OPTS+=		-DENABLE_BATTERY=ON
.else
CMAKE_OPTS+=		-DENABLE_BATTERY=OFF
.endif

do-configure:
	cd ${WRKSRC} && ${PREFIX}/bin/cmake ${CMAKE_OPTS} .

post-install:
	${INSTALL_DATA} ${WRKSRC}/sample/tint2rc \
		${DESTDIR}${PREFIX}/share/examples/tint2

.include "../../devel/cmake/buildlink3.mk"
.include "../../graphics/imlib2/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXcomposite/buildlink3.mk"
.include "../../x11/libXdamage/buildlink3.mk"
.include "../../x11/libXinerama/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"