2004-12-25 14:58:21 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2004/12/25 19:58:21 marcm Exp $
|
2003-01-31 13:42:04 -05:00
|
|
|
|
2003-08-07 10:20:34 -04:00
|
|
|
COMMENT= "applets for use with the GNOME panel"
|
|
|
|
COMMENT-battstat= "GNOME applet for monitoring battery level"
|
2003-01-31 13:42:04 -05:00
|
|
|
|
2004-12-10 15:36:42 -05:00
|
|
|
VERSION= 2.8.2
|
2003-01-31 13:42:04 -05:00
|
|
|
DISTNAME= gnome-applets-${VERSION}
|
2004-12-25 14:58:21 -05:00
|
|
|
PKGNAME= gnome-applets2-${VERSION}p0
|
2004-11-21 05:34:59 -05:00
|
|
|
PKGNAME-battstat= gnome-applets2-battstat-${VERSION}p0
|
2003-01-31 13:42:04 -05:00
|
|
|
CATEGORIES= x11 x11/gnome
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.gnome.org
|
|
|
|
MAINTAINER= Marc Matteo <marcm@openbsd.org>
|
|
|
|
|
2004-12-10 15:36:42 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-applets/2.8/}
|
2003-01-31 13:42:04 -05:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
# LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-25 14:58:21 -05:00
|
|
|
WANTLIB= ICE ORBit-2 ORBitCosNaming-2 SM X11 Xcursor Xext Xft \
|
|
|
|
Xinerama Xrender art_lgpl_2 atk-1.0.0.0 audiofile bonobo-2 \
|
|
|
|
bonobo-activation bonoboui-2 c crypto esd fontconfig \
|
|
|
|
freetype gconf-2 gdk-x11-2.0.0.0 gdk_pixbuf-2.0.0.0 \
|
|
|
|
glade-2.0.0.0 glib-2.0.0.0 gmodule-2.0.0.0 gnome-2 \
|
|
|
|
gnome-keyring gnomecanvas-2 gnomeui-2 gnomevfs-2 \
|
|
|
|
gobject-2.0.0.0 gstreamer-0.8.5.0 gthread-2.0.0.0 gtk-x11-2.0.0.0 \
|
|
|
|
jpeg kvm m pango-1.0.0.0 pangoft2-1.0.0.0 pangox-1.0.0.0 \
|
|
|
|
pangoxft-1.0.0.0 popt pthread ssl xkbfile xml2 z
|
2003-01-31 13:42:04 -05:00
|
|
|
|
2004-08-10 06:56:42 -04:00
|
|
|
MODULES= devel/gettext
|
2003-01-31 13:42:04 -05:00
|
|
|
|
2004-08-01 02:12:42 -04:00
|
|
|
BUILD_DEPENDS= :pkgconfig-*:devel/pkgconfig \
|
2004-09-15 00:12:55 -04:00
|
|
|
:scrollkeeper-*:textproc/scrollkeeper \
|
|
|
|
:p5-XML-Parser-*:textproc/p5-XML-Parser
|
2004-08-01 02:12:42 -04:00
|
|
|
RUN_DEPENDS= :scrollkeeper-*:textproc/scrollkeeper
|
2003-01-31 13:42:04 -05:00
|
|
|
LIB_DEPENDS= panel-applet-2.0::x11/gnome/panel \
|
2004-08-01 02:12:42 -04:00
|
|
|
gailutil.17::x11/gnome/gail \
|
2004-12-25 14:58:21 -05:00
|
|
|
gstinterfaces-0.8.1.0::devel/gstreamer-plugins \
|
2004-08-01 02:12:42 -04:00
|
|
|
gtop-2.0.3.0::devel/libgtop2 \
|
|
|
|
xklavier::x11/gnome/libxklavier
|
2003-01-31 13:42:04 -05:00
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_battstat
|
2004-12-25 14:58:21 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
2003-01-31 13:42:04 -05:00
|
|
|
# Only i386 and macppc have the headers for the battstat applet
|
|
|
|
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "powerpc"
|
2004-12-25 14:58:21 -05:00
|
|
|
FLAVOR+= no_battstat
|
2003-01-31 13:42:04 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
MULTI_PACKAGES=
|
2004-12-25 14:58:21 -05:00
|
|
|
.if ${FLAVOR:L:Mno_battstat}
|
|
|
|
CONFIGURE_ARGS+= --disable-battstat
|
|
|
|
.else
|
2003-01-31 13:42:04 -05:00
|
|
|
MULTI_PACKAGES+= -battstat
|
|
|
|
.endif
|
|
|
|
SUBPACKAGE?=
|
|
|
|
|
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
2003-06-12 16:06:12 -04:00
|
|
|
CONFIGURE_STYLE= gnu old
|
2004-10-17 00:41:19 -04:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir="${SYSCONFDIR}/gnome"
|
2004-06-22 23:26:11 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-schemas-install
|
2003-01-31 13:42:04 -05:00
|
|
|
CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/gnome-applets2
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
|
|
|
.if defined(PACKAGING)
|
|
|
|
. if ${SUBPACKAGE} == "-battstat"
|
|
|
|
ONLY_FOR_ARCHS= i386 powerpc
|
|
|
|
LIB_DEPENDS= panel-applet-2.0::x11/gnome/panel
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@ln -s /usr/bin/true ${WRKDIR}/bin/scrollkeeper-update
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-applets2; \
|
2004-10-17 00:41:19 -04:00
|
|
|
cp -Rp ${WRKINST}/${SYSCONFDIR}/gnome/* ${PREFIX}/share/examples/gnome-applets2/
|
2003-01-31 13:42:04 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|