2010-03-20 12:53:22 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.62 2010/03/20 16:53:22 ajacoutot 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
|
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
|
|
|
|
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
|
|
|
|
WANTLIB += freetype gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0
|
|
|
|
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
|
2005-11-14 06:52:21 -05:00
|
|
|
|
2009-06-01 17:17:39 -04:00
|
|
|
BUILD_DEPENDS= ::textproc/docbook-xsl
|
2006-09-18 07:50:39 -04:00
|
|
|
LIB_DEPENDS= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2 \
|
2006-08-02 06:10:35 -04:00
|
|
|
art_lgpl_2.>=5::graphics/libart \
|
2009-06-01 17:17:39 -04:00
|
|
|
xslt.>=3::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
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
USE_X11= Yes
|
2009-06-01 17:17:39 -04:00
|
|
|
DESKTOP_FILES= 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"
|
2008-05-16 07:55:29 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2009-06-01 17:17:39 -04:00
|
|
|
--with-cairo \
|
|
|
|
--enable-db2html=no \
|
|
|
|
--with-hardbooks=no
|
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
|
|
|
|
BUILD_DEPENDS+= ::devel/swig
|
2008-05-16 07:55:29 -04:00
|
|
|
LIB_DEPENDS+= gnomeui-2::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
|
2009-06-28 17:46:38 -04:00
|
|
|
WANTLIB += util avahi-client avahi-common avahi-glib
|
2009-06-01 17:17:39 -04:00
|
|
|
MODGNOME_HELP_FILES= Yes
|
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
|
2009-04-11 06:05:47 -04: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>
|