Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / tint2 / Makefile
blobc3b0cd57f50ea5fcb0ca7c2a7aaebcd2f8727ed6
1 # $NetBSD: Makefile,v 1.22 2013/01/26 21:39:20 adam Exp $
3 DISTNAME= tint2-0.11
4 PKGREVISION= 15
5 CATEGORIES= x11
6 MASTER_SITES= http://tint2.googlecode.com/files/
7 EXTRACT_SUFX= .tar.bz2
9 MAINTAINER= fernandotcl@gmail.com
10 HOMEPAGE= http://code.google.com/p/tint2/
11 COMMENT= Tint2 is a simple panel/taskbar
12 LICENSE= gnu-gpl-v2
14 USE_LANGUAGES= c c++ # XXX CMake. pkg does not really need c++
15 USE_LIBTOOL= yes
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
37 .else
38 CMAKE_OPTS+= -DENABLE_BATTERY=OFF
39 .endif
41 do-configure:
42 cd ${WRKSRC} && ${PREFIX}/bin/cmake ${CMAKE_OPTS} .
44 post-install:
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"