openbsd-ports/x11/gnome/applets2/Makefile

98 lines
3.0 KiB
Makefile
Raw Normal View History

2011-05-15 05:23:01 -04:00
# $OpenBSD: Makefile,v 1.106 2011/05/15 09:23:01 jasper Exp $
COMMENT-main= applets for use with the GNOME panel
COMMENT-battstat= GNOME applet for monitoring battery level
GNOME_PROJECT= gnome-applets
GNOME_VERSION= 2.32.1.1
2010-07-13 16:37:02 -04:00
PKGNAME-main= gnome-applets2-${VERSION}
2010-04-23 09:58:34 -04:00
PKGNAME-battstat= gnome-applets2-battstat-${VERSION}
2011-05-15 05:23:01 -04:00
REVISION-main= 2
REVISION-battstat= 1
CATEGORIES= x11
# LGPLv2/GFDLv1.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo dbus-1 dbus-glib-1
WANTLIB += expat fontconfig notify freetype gdk-x11-2.0 gdk_pixbuf-2.0
2010-10-11 04:11:24 -04:00
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
WANTLIB += pixman-1 png pthread pthread-stubs xcb z xcb-render
WANTLIB += panel-applet-3 GL Xxf86vm drm xcb-shm
MODULES= devel/gettext \
lang/python \
x11/gnome \
devel/gconf2
MODGNOME_HELP_FILES= Yes
BUILD_DEPENDS= ${RUN_DEPENDS}
2010-11-22 03:36:47 -05:00
RUN_DEPENDS= x11/gnome/icon-theme>=2.15.91 \
x11/gnome/py-gnome-desktop>=2.32.0
MODPY_RUNDEP= No
LIB_DEPENDS= devel/libnotify>=0.7.2 \
2010-11-22 03:36:47 -05:00
x11/gnome/panel>=2.32.0.2
2006-11-26 06:35:12 -05:00
LIB_DEPENDS-main= ${LIB_DEPENDS} \
2010-11-22 03:36:47 -05:00
multimedia/gstreamer-0.10/core \
multimedia/gstreamer-0.10/plugins-base \
devel/libgtop2 \
2011-05-15 05:23:01 -04:00
x11/gnome/gucharmap,gtk2
# clicking on the multiload-applet will attempt to start gnome-system-monitor
2010-11-22 03:36:47 -05:00
RUN_DEPENDS+= x11/gnome/system-monitor
MULTI_PACKAGES= -main -battstat
ONLY_FOR_ARCHS-battstat = ${APM_ARCHS}
2010-11-22 03:36:47 -05:00
RUN_DEPENDS-battstat= ${BUILD_PKGPATH},-main
MODGCONF2_SCHEMAS_DIR= gnome-applets2
2010-04-23 09:58:34 -04:00
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-mixer-applet \
--disable-networkmanager
# polkit support is only for cpufreq which we don't support
CONFIGURE_ARGS+= --disable-frequency-selector \
--disable-suid \
--disable-polkit
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
WANTLIB-main += ${WANTLIB} gstbase-0.10 gstreamer-0.10 gucharmap XRes
WANTLIB-main += kvm gcrypt gnome-desktop-2 gnutls gpg-error gweather
WANTLIB-main += execinfo xcb-atom xcb-aux xcb-event soup-2.4
WANTLIB-main += startup-notification-1 tasn1 wnck-1 gnome-keyring proxy
WANTLIB-main += soup-gnome-2.4 sqlite3 gstaudio-0.10 art_lgpl_2
WANTLIB-main += gstinterfaces-0.10 gtop-2.0 ICE ORBitCosNaming-2 SM
WANTLIB-main += bonobo-2 bonobo-activation bonoboui-2 canberra crypto
WANTLIB-main += gailutil gnome-2 gnomecanvas-2 gnomevfs-2 ltdl ogg
WANTLIB-main += panel-applet-2 popt ssl util vorbis vorbisfile xml2
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/gnome-applets2
pre-configure:
${SUBST_CMD} ${WRKSRC}/configure \
2008-11-27 08:42:19 -05:00
${WRKSRC}/invest-applet/invest/invest-chart \
${WRKSRC}/invest-applet/invest/invest-applet.py
.include <bsd.port.mk>
.for m in ${MACHINE_ARCH} ${MACHINE}
. if ${APM_ARCHS:L:M$m}
ENABLE_BATTSTAT=Yes
. endif
.endfor
.if !defined(ENABLE_BATTSTAT)
CONFIGURE_ARGS+= --disable-battstat
.endif