openbsd-ports/x11/gnome/hamster-applet/Makefile
ajacoutot 8e6304f974 deve/gconf2 is about to loose its dependency on x11/gtk+2 so explicitely
register x11/gtk+2 for ports depending on gconf2 that don't have another
dependency that would bring it.

discussed with jasper@
2011-05-14 21:29:03 +00:00

66 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.35 2011/05/14 21:29:04 ajacoutot Exp $
COMMENT= time tracker applet for GNOME
BROKEN-sparc64= waf stalls during build
GNOME_PROJECT= hamster-applet
GNOME_VERSION= 2.32.0
REVISION= 3
CATEGORIES= productivity
HOMEPAGE= http://live.gnome.org/ProjectHamster
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 cairo expat ffi
WANTLIB += fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 gtk-x11-2.0
WANTLIB += m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre pixman-1
WANTLIB += png pthread-stubs xcb z gthread-2.0 xcb-render
WANTLIB += xcb-render-util
MODULES= devel/gconf2 \
devel/gettext \
devel/waf \
lang/python \
x11/gnome
MODGCONF2_SCHEMAS_DIR= hamster-applet
MODGCONF2_LIBDEP= No
LIB_DEPENDS= x11/gtk+2
# controlcenter2 is needed for custom keybindings
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= x11/gnome/controlcenter2 \
x11/gnome/py-gnome-desktop \
devel/py-xdg \
databases/py-sqlite2 \
x11/dbus-python
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/hamster-applet \
${WRKSRC}/src/hamster-time-tracker \
${WRKSRC}/src/hamster-cli \
${WRKSRC}/src/hamster-service
# Thank you for switching to waf, now you can cleanup our mess!
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/${SCHEMAS_INSTDIR}/
@mv ${PREFIX}/etc/gconf/schemas/* ${PREFIX}/${SCHEMAS_INSTDIR}/
@rm -fr ${PREFIX}/etc/gconf/schemas/
.include <bsd.port.mk>
# Need to override the defaults set by the gconf module
CONFIGURE_ARGS=