2011-09-20 17:04:24 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.81 2011/09/20 21:04:24 jasper Exp $
|
2001-04-07 03:58:42 -04:00
|
|
|
|
2007-07-30 13:02:11 -04:00
|
|
|
COMMENT= technical diagrams drawing tool
|
2000-09-10 17:56:04 -04:00
|
|
|
|
2009-06-01 17:17:39 -04:00
|
|
|
GNOME_PROJECT= dia
|
2010-03-20 12:53:22 -04:00
|
|
|
GNOME_VERSION= 0.97.1
|
2011-09-16 06:02:36 -04:00
|
|
|
REVISION= 8
|
2009-06-01 17:17:39 -04:00
|
|
|
|
2000-09-10 17:56:04 -04:00
|
|
|
CATEGORIES= graphics
|
|
|
|
|
2007-04-06 07:59:55 -04:00
|
|
|
HOMEPAGE= http://live.gnome.org/Dia/
|
2000-09-10 17:56:04 -04:00
|
|
|
|
2007-10-18 10:18:40 -04:00
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
# GPLv2
|
2000-09-10 17:56:04 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2007-10-18 10:18:40 -04:00
|
|
|
|
2011-09-12 08:07:24 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2009-06-01 17:17:39 -04:00
|
|
|
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
|
|
|
|
WANTLIB += Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat fontconfig
|
2010-10-11 04:11:24 -04:00
|
|
|
WANTLIB += freetype gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
|
2009-06-01 17:17:39 -04:00
|
|
|
WANTLIB += gthread-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
2009-08-10 02:29:51 -04:00
|
|
|
WANTLIB += pcre pixman-1 png pthread pthread-stubs xcb xml2 z
|
2010-09-30 03:21:18 -04:00
|
|
|
WANTLIB += xcb-render xcb-render-util gdk_pixbuf-2.0
|
2010-11-17 03:05:12 -05:00
|
|
|
WANTLIB += gdk-x11-2.0 gtk-x11-2.0 art_lgpl_2>=5 xslt>=3
|
2005-11-14 06:52:21 -05:00
|
|
|
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS= textproc/docbook-xsl
|
|
|
|
LIB_DEPENDS= x11/gtk+2 \
|
|
|
|
graphics/libart \
|
|
|
|
textproc/libxslt
|
2002-12-18 20:30:37 -05:00
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
MODULES= devel/gettext \
|
2009-06-01 17:17:39 -04:00
|
|
|
x11/gnome \
|
|
|
|
lang/python
|
2006-01-20 02:15:22 -05:00
|
|
|
|
2011-09-19 03:31:45 -04:00
|
|
|
MODGNOME_DESKTOP_FILE= Yes
|
2009-04-11 06:05:47 -04:00
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng \
|
|
|
|
-I${LOCALBASE}/include" \
|
2009-06-01 17:17:39 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2011-09-20 17:04:24 -04:00
|
|
|
CONFIGURE_ARGS= --with-cairo \
|
2009-06-01 17:17:39 -04:00
|
|
|
--enable-db2html=no \
|
|
|
|
--with-hardbooks=no
|
2010-10-18 17:50:38 -04:00
|
|
|
USE_GROFF = Yes
|
2000-09-10 17:56:04 -04:00
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
FLAVORS= gnome
|
2004-12-22 01:01:23 -05:00
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mgnome}
|
2008-05-16 07:55:29 -04:00
|
|
|
CONFIGURE_ARGS+=--enable-gnome \
|
2009-06-01 17:17:39 -04:00
|
|
|
--with-python \
|
|
|
|
--with-swig
|
2010-11-17 03:05:12 -05:00
|
|
|
BUILD_DEPENDS+= devel/swig
|
|
|
|
LIB_DEPENDS += x11/gnome/libgnomeui \
|
2009-06-01 17:17:39 -04:00
|
|
|
${MODPY_LIB_DEPENDS}
|
|
|
|
WANTLIB += ICE ORBit-2 ORBitCosNaming-2 SM bonobo-2 bonobo-activation
|
|
|
|
WANTLIB += bonoboui-2 crypto dbus-1 dbus-glib-1 gconf-2 gailutil
|
|
|
|
WANTLIB += gnome-2 gnome-keyring gnomecanvas-2 gnomevfs-2 popt ssl
|
2010-10-06 13:03:39 -04:00
|
|
|
WANTLIB += util canberra gcrypt gpg-error ltdl ogg vorbis vorbisfile
|
2010-11-09 04:14:31 -05:00
|
|
|
WANTLIB += ${MODPY_WANTLIB} gnomeui-2
|
2011-09-20 16:51:51 -04:00
|
|
|
MODGNOME_TOOLS= yelp
|
2004-12-22 01:01:23 -05:00
|
|
|
.else
|
2009-06-01 17:17:39 -04:00
|
|
|
# help is only installed and usable with yelp
|
|
|
|
PATCH_LIST= patch-* no_gnome-patch-*
|
2008-05-16 07:55:29 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-gnome \
|
2009-06-01 17:17:39 -04:00
|
|
|
--without-python \
|
|
|
|
--without-swig
|
2010-11-17 03:05:12 -05:00
|
|
|
RUN_DEPENDS+= devel/xdg-utils
|
2009-06-01 17:17:39 -04:00
|
|
|
MODPY_RUNDEP= No
|
2004-12-22 01:01:23 -05:00
|
|
|
.endif
|
|
|
|
|
2007-10-18 10:18:40 -04:00
|
|
|
pre-configure:
|
2009-06-01 17:17:39 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/app/commands.c \
|
|
|
|
${WRKSRC}/po-checktrans.py
|
2005-07-17 03:50:32 -04:00
|
|
|
|
2000-09-10 17:56:04 -04:00
|
|
|
.include <bsd.port.mk>
|