pkgsrc/x11/gnome-applets/Makefile
drochner 95522bad91 update to 2.20.0
This switches to the new gnome-2.20 branch.
2007-11-05 19:23:31 +00:00

118 lines
4.1 KiB
Makefile

# $NetBSD: Makefile,v 1.53 2007/11/05 19:23:31 drochner Exp $
#
DISTNAME= gnome-applets-2.20.0
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gnome-applets/2.20/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnome.org/
COMMENT= GNOME2 panel applets
BUILD_DEPENDS+= gst-plugins0.10-esound>=0.10.0:../../audio/gst-plugins0.10-esound
BUILD_DEPENDS+= gst-plugins0.10-oss>=0.10.0:../../audio/gst-plugins0.10-oss
GNU_CONFIGURE= yes
USE_DIRS+= gnome2-1.5
USE_TOOLS+= gmake intltool msgfmt pkg-config
USE_PKGLOCALEDIR= yes
USE_LIBTOOL= yes
PKG_OPTIONS_VAR= PKG_OPTIONS.gnome-applets
PKG_SUPPORTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
PKGCONFIG_OVERRIDE+= libgswitchit/gswitchit.pc.in
PKGCONFIG_OVERRIDE+= libgweather/gweather.pc.in
EGDIR= ${PREFIX}/share/examples/gnome-applets
GCONF_SCHEMAS= charpick.schemas
GCONF_SCHEMAS+= drivemount.schemas
GCONF_SCHEMAS+= geyes.schemas
#GCONF_SCHEMAS+= gswitchit.schemas
GCONF_SCHEMAS+= gweather.schemas
GCONF_SCHEMAS+= mixer.schemas
GCONF_SCHEMAS+= multiload.schemas
GCONF_SCHEMAS+= stickynotes.schemas
.include "../../mk/bsd.prefs.mk"
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else
CONFIGURE_ARGS+= --disable-ipv6
.endif
.if ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD" || ${OPSYS} == "OpenBSD" || \
(${OPSYS} == "NetBSD" && exists(/usr/include/machine/apmvar.h))
GCONF_SCHEMAS+= battstat.schemas
PLIST_SUBST+= BATTSTAT=
CONF_FILES+= ${EGDIR}/sound/events/battstat_applet.soundlist \
${PKG_SYSCONFDIR}/sound/events/battstat_applet.soundlist
.else
PLIST_SUBST+= BATTSTAT="@comment "
CONFIGURE_ARGS+= --disable-battstat
.endif
PRINT_PLIST_AWK+= /[Bb]attstat/ { print "$${BATTSTAT}"$$0; next; }
PRINT_PLIST_AWK+= /examples/ { print "$${BATTSTAT}"$$0; next; }
.if ${OPSYS} == "Linux" && exists(/usr/include/cpufreq.h)
GCONF_SCHEMAS+= cpufreq-applet.schemas
PLIST_SUBST+= CPUFREQ=
.else
PLIST_SUBST+= CPUFREQ="@comment "
CONFIGURE_ARGS+= --disable-cpufreq
.endif
PRINT_PLIST_AWK+= /[Cc][Pp][Uu][Ff]req/ { print "$${CPUFREQ}"$$0; next; }
.include "../../devel/GConf/schemas.mk"
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.6.0
BUILDLINK_API_DEPENDS.libglade+= libglade>=2.4.0
BUILDLINK_API_DEPENDS.gstreamer0.10+= gstreamer0.10>=0.10.2
BUILDLINK_API_DEPENDS.gst-plugins0.10-base+= gst-plugins0.10-base>=0.10.2
BUILDLINK_API_DEPENDS.gnome-icon-theme+= gnome-icon-theme>=2.16.0
BUILDLINK_API_DEPENDS.gnome-vfs+= gnome-vfs>=2.16.0
BUILDLINK_API_DEPENDS.gnome-panel+= gnome-panel>=2.13.4
BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.6.0
PY_PATCHPLIST= yes
PYTHON_PATCH_SCRIPTS+= invest-applet/invest/invest-applet.py
PYTHON_PATCH_SCRIPTS+= invest-applet/invest/invest-chart
.include "../../devel/gail/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libglade/buildlink3.mk"
.include "../../devel/libgnome/buildlink3.mk"
.include "../../devel/libgnomeui/buildlink3.mk"
.include "../../devel/libwnck/buildlink3.mk"
.include "../../fonts/gucharmap/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
.include "../../multimedia/gstreamer0.10/buildlink3.mk"
.include "../../multimedia/gst-plugins0.10-base/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../sysutils/gnome-vfs/buildlink3.mk"
.include "../../sysutils/libgtop/buildlink3.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
.include "../../textproc/gnome-doc-utils/buildlink3.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../x11/gnome-control-center/buildlink3.mk"
.include "../../x11/gnome-desktop/buildlink3.mk"
.include "../../x11/gnome-panel/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libxklavier/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../x11/py-gnome2/buildlink3.mk"
.include "../../x11/py-gnome2-desktop/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"