openbsd-ports/mail/mail-notification/Makefile

61 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.10 2007/01/04 20:19:54 steven Exp $
COMMENT= "mail notification for freedesktop.org-compliant system trays"
DISTNAME= mail-notification-1.0
PKGNAME= ${DISTNAME}p3
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
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
LIB_DEPENDS+= eel-2::x11/gnome/eel
USE_X11= Yes
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --sysconfdir="${CONFDIR}"
CONFIGURE_ARGS+= --disable-schemas-install \
--with-gconf-schema-file-dir=${LOCALBASE}/share/schemas/mail-notification \
--disable-mime --disable-sasl --disable-gmail
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFDIR= ${SYSCONFDIR}/gnome
SUBST_VARS= CONFDIR
WANTLIB= pthread ICE c z xml2 X11 Xext Xrender cairo glitz png \
SM popt fontconfig crypto freetype ssl m art_lgpl_2 \
atk-1.0 bonobo-2 bonobo-activation bonoboui-2 \
gconf-2 gdk-x11-2.0 ORBit-2 gailutil gnomeui-2 \
gdk_pixbuf-2.0 glade-2.0 glib-2.0 \
gmodule-2.0 gnome-2 gnomecanvas-2 gnomevfs-2 \
gobject-2.0 gthread-2.0 gtk-x11-2.0 \
pango-1.0 pangoft2-1.0 pangocairo-1.0
post-patch:
@ln -s /usr/bin/true ${WRKDIR}/bin/scrollkeeper-update
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mail-notification
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/sound/events/mail-notification.soundlist \
${PREFIX}/share/examples/mail-notification.soundlist
${INSTALL_DATA_DIR} ${PREFIX}/share/schemas/mail-notification
${INSTALL_DATA} ${WRKSRC}/data/mail-notification.schemas \
${PREFIX}/share/schemas/mail-notification/
.include <bsd.port.mk>