pkgsrc/x11/tint2/Makefile
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

59 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.30 2014/01/25 10:30:32 wiz Exp $
DISTNAME= tint2-0.11
PKGREVISION= 21
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= 33 # py-gtk2
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"