openbsd-ports/x11/gnome/applets2/Makefile
todd c1d533b841 Import gnome-applets2-2.0.4
--
The gnome-applets package provides panel applets which enhance your
GNOME experience.

From marcm for gnome2
2003-01-31 18:42:04 +00:00

73 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2003/01/31 18:42:04 todd Exp $
COMMENT= "applets for use with the GNOME2 panel"
COMMENT-battstat= "Gnome2 applet for monitoring battery level"
VERSION= 2.0.4
DISTNAME= gnome-applets-${VERSION}
PKGNAME= gnome-applets2-${VERSION}
PKGNAME-battstat= gnome-applets2-battstat-${VERSION}
CATEGORIES= x11 x11/gnome
HOMEPAGE= http://www.gnome.org
MAINTAINER= Marc Matteo <marcm@openbsd.org>
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-applets/2.0/}
EXTRACT_SUFX= .tar.bz2
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MODULES= gettext
BUILD_DEPENDS= :pkgconfig->=0.12.0p1:devel/pkgconfig \
:scrollkeeper->=0.3.11:textproc/scrollkeeper
RUN_DEPENDS= :scrollkeeper->=0.3.11:textproc/scrollkeeper
LIB_DEPENDS= panel-applet-2.0::x11/gnome/panel \
gailutil.17::x11/gnome/gail \
gtop-2.0.0.0,gtop_common-2.0.0.0,gtop_sysdeps-2.0.0.0::devel/libgtop2
MAKE_ENV+= GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
PSEUDO_FLAVORS= no_battstat
# Only i386 and macppc have the headers for the battstat applet
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "powerpc"
FLAVOR?= no_battstat
.else
FLAVOR?=
.endif
MULTI_PACKAGES=
.if !${FLAVOR:L:Mno_battstat}
MULTI_PACKAGES+= -battstat
.endif
SUBPACKAGE?=
USE_X11= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
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
.if !${FLAVOR:L:Mno_battstat}
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnome-applets2; \
cp -Rp ${WRKINST}/${SYSCONFDIR}/* ${PREFIX}/share/examples/gnome-applets2/
.endif
.include <bsd.port.mk>