1 # $NetBSD: Makefile,v 1.22 2013/01/26 21:39:20 adam Exp $
6 MASTER_SITES
= http
://tint2.googlecode.com
/files
/
9 MAINTAINER
= fernandotcl@gmail.com
10 HOMEPAGE
= http
://code.google.com
/p
/tint2
/
11 COMMENT
= Tint2 is a simple panel
/taskbar
14 USE_LANGUAGES
= c c
++ # XXX CMake. pkg does not really need c++
16 USE_TOOLS
+= gmake pkg-config
18 INSTALLATION_DIRS
= share
/examples
/tint2
19 OWN_DIRS
= ${PKG_SYSCONFDIR}/xdg
/tint2
20 CONF_FILES
= ${PREFIX}/share
/examples
/tint2
/tint2rc \
21 ${PKG_SYSCONFDIR}/xdg
/tint2
/tint2rc
23 REPLACE_PYTHON
+= src
/tint2conf
/tintwizard.py
25 CMAKE_OPTS
+= -DCMAKE_INSTALL_PREFIX
=${PREFIX}
26 CMAKE_OPTS
+= -DSYSCONFDIR
=${PKG_SYSCONFDIR}
27 CMAKE_OPTS
+= -DMANDIR
=${PKGMANDIR}
28 # Below rpath fix is copypasted from graphics/vtk.
29 CMAKE_OPTS
+= -DCMAKE_INSTALL_RPATH
:STRING
=${PREFIX}/lib
:${X11BASE}/lib
${LIBABISUFFIX
:Q
} \
30 CMAKE_OPTS
+= -DCMAKE_SKIP_BUILD_RPATH
:BOOL
=ON \
31 CMAKE_OPTS
+= -DCMAKE_BUILD_WITH_INSTALL_RPATH
:BOOL
=ON \
32 CMAKE_OPTS
+= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH
:BOOL
=ON
34 .
include "../../mk/bsd.prefs.mk"
35 .if
${OPSYS} == "Linux"
36 CMAKE_OPTS
+= -DENABLE_BATTERY
=ON
38 CMAKE_OPTS
+= -DENABLE_BATTERY
=OFF
42 cd
${WRKSRC} && ${PREFIX}/bin
/cmake
${CMAKE_OPTS} .
45 ${INSTALL_DATA} ${WRKSRC}/sample
/tint2rc \
46 ${DESTDIR}${PREFIX}/share
/examples
/tint2
48 .
include "../../devel/cmake/buildlink3.mk"
49 .
include "../../graphics/imlib2/buildlink3.mk"
50 .
include "../../lang/python/application.mk"
51 .
include "../../sysutils/desktop-file-utils/desktopdb.mk"
52 .
include "../../x11/gtk2/buildlink3.mk"
53 .
include "../../x11/libXcomposite/buildlink3.mk"
54 .
include "../../x11/libXdamage/buildlink3.mk"
55 .
include "../../x11/libXinerama/buildlink3.mk"
56 .
include "../../x11/libXrandr/buildlink3.mk"
57 .
include "../../x11/py-gtk2/buildlink3.mk"
58 .
include "../../mk/bsd.pkg.mk"