openbsd-ports/mail/mail-notification/Makefile
ajacoutot 973a6fb381 - tweak the way the gtk-update-icon-cache goo is run
gtk-update-icon-cache is part of gtk+2: adding gtk+2 to run_depends just
to update the icon cache (which only gtk apps can use) is overkill to
say the least!
As from now, each time icons are installed under %D/share/icons, we try
to execute gtk-update-icon-cache and if it is not there, we just ignore
the error.
What it means is that if you have gtk+2 installed, then it'll run fine
and your apps will be able to use the cache. Otherwise, it will silently
fails which is fine since it means none of your apps would have been
able to take advantage of the cache anyway.

discussed with jasper@
2008-04-17 08:10:09 +00:00

61 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2008/04/17 08:10:10 ajacoutot Exp $
COMMENT= mail notification for freedesktop.org-compliant system trays
DISTNAME= mail-notification-4.0
PKGNAME= ${DISTNAME}p2
CATEGORIES= mail
HOMEPAGE= http://www.nongnu.org/mailnotify/
MAINTAINER= Thomas Delaet <thomas@delaet.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= ICE ORBit-2 ORBitCosNaming-2 SM X11 Xau Xcursor Xdmcp \
Xcomposite Xdamage pcre \
Xext Xfixes Xi Xinerama Xrandr Xrender art_lgpl_2 atk-1.0 \
audiofile bonobo-2 bonobo-activation bonoboui-2 c cairo \
crypto dbus-1 dbus-glib-1 esd expat fam fontconfig \
freetype gailutil gconf-2 gdk-x11-2.0 gdk_pixbuf-2.0 \
glade-2.0 glib-2.0 glitz gmodule-2.0 gnome-2 gnome-desktop-2 \
gnome-keyring gnome-menu gnomecanvas-2 gnomeui-2 gnomevfs-2 \
gobject-2.0 gthread-2.0 gtk-x11-2.0 jpeg m pango-1.0 \
pangocairo-1.0 pangoft2-1.0 png popt pthread rpcsvc \
ssl startup-notification-1 stdc++ util xml2 z
MASTER_SITES= http://savannah.nongnu.org/download/mailnotify/
MODULES= devel/gettext
BUILD_DEPENDS= :scrollkeeper-*:textproc/scrollkeeper \
:p5-XML-Parser-*:textproc/p5-XML-Parser
RUN_DEPENDS= :scrollkeeper-*:textproc/scrollkeeper \
:gnome-icon-theme-*:x11/gnome/icon-theme \
:desktop-file-utils-*:devel/desktop-file-utils
LIB_DEPENDS= notify::devel/libnotify \
eel-2::x11/gnome/eel
USE_X11= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/mail-notification \
--disable-schemas-install \
--disable-evolution
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
post-patch:
@ln -s /usr/bin/true ${WRKDIR}/bin/scrollkeeper-update
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mail-notification
mv ${WRKINST}${SYSCONFDIR}/* ${PREFIX}/share/examples/mail-notification
.include <bsd.port.mk>
CONFIGURE_ARGS+= --sysconfdir="${SYSCONFDIR}/gnome"