summaryrefslogtreecommitdiff
path: root/x11/tint2/Makefile
blob: cde3f267b3adb1b9e1837ed332ee2a502d742f2a (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
# $NetBSD: Makefile,v 1.38 2016/08/03 10:23:38 adam Exp $

DISTNAME=		tint2-0.11
PKGREVISION=		25
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
PYTHON_VERSIONS_INCOMPATIBLE=	34 35 # py-gtk2

# XXX: why not use normal CMAKE_ARGS infrastructure?
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

OPSYSVARS+=		CMAKE_OPTS
CMAKE_OPTS.Linux=	-DENABLE_BATTERY=ON
CMAKE_OPTS.*=		-DENABLE_BATTERY=OFF

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"