2008-10-30 13:10:41 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.55 2008/10/30 17:10:41 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
|
|
|
|
2007-04-06 06:10:01 -04:00
|
|
|
DISTNAME= dia-0.96.1
|
2008-10-30 13:10:41 -04:00
|
|
|
PKGNAME= ${DISTNAME}p10
|
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>
|
|
|
|
|
2007-04-06 06:10:01 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/dia/0.96/}
|
2000-09-10 17:56:04 -04:00
|
|
|
|
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
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes \
|
|
|
|
Xi Xinerama Xrandr Xrender atk-1.0 c cairo expat \
|
|
|
|
fontconfig freetype glib-2.0 glitz gmodule-2.0 \
|
|
|
|
gobject-2.0 gthread-2.0 m pango-1.0 pangocairo-1.0 \
|
2008-10-03 07:39:01 -04:00
|
|
|
pangoft2-1.0 pcre pixman-1 png pthread z
|
2005-11-14 06:52:21 -05:00
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
BUILD_DEPENDS= ::textproc/xmlto \
|
2007-10-18 10:18:40 -04:00
|
|
|
::textproc/docbook
|
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 \
|
2002-12-18 20:30:37 -05:00
|
|
|
popt::devel/popt \
|
2008-10-03 07:39:01 -04:00
|
|
|
xml2.>=10::textproc/libxml \
|
2006-08-02 06:10:35 -04:00
|
|
|
xslt.>=1::textproc/libxslt
|
2008-10-30 13:10:41 -04:00
|
|
|
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils \
|
|
|
|
::devel/xdg-utils
|
2002-12-18 20:30:37 -05:00
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
MODULES= devel/gettext \
|
|
|
|
textproc/intltool
|
2006-01-20 02:15:22 -05:00
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
2002-12-18 20:30:37 -05:00
|
|
|
|
2008-05-16 07:55:29 -04:00
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/libpng \
|
|
|
|
-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
LOCALBASE=${LOCALBASE}
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--without-cairo \
|
|
|
|
--without-python
|
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 \
|
|
|
|
--with-gnomeprint
|
|
|
|
LIB_DEPENDS+= gnomeui-2::x11/gnome/libgnomeui \
|
|
|
|
gnomeprint-2-2::x11/gnome/libgnomeprint
|
|
|
|
WANTLIB+= ICE ORBit-2 ORBitCosNaming-2 SM audiofile bonobo-2 \
|
|
|
|
bonobo-activation bonoboui-2 crypto dbus-1 dbus-glib-1 \
|
|
|
|
esd gailutil gconf-2 gnome-2 gnome-keyring \
|
|
|
|
gnomecanvas-2 gnomevfs-2 jpeg ssl util
|
2008-05-26 12:29:26 -04:00
|
|
|
RUN_DEPENDS+= :yelp-*:x11/gnome/yelp
|
2004-12-22 01:01:23 -05:00
|
|
|
.else
|
2008-05-16 07:55:29 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-gnome \
|
|
|
|
--without-gnomeprint
|
2004-12-22 01:01:23 -05:00
|
|
|
.endif
|
|
|
|
|
2007-10-18 10:18:40 -04:00
|
|
|
pre-configure:
|
2008-05-16 07:55:29 -04:00
|
|
|
${SUBST_CMD} ${WRKSRC}/app/commands.c
|
2007-10-18 10:18:40 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dia/html/{en,pl}
|
|
|
|
xmlto -o ${PREFIX}/share/doc/dia/html/en html ${WRKSRC}/doc/en/dia.xml
|
|
|
|
xmlto -o ${PREFIX}/share/doc/dia/html/pl html ${WRKSRC}/doc/pl/dia.xml
|
|
|
|
@cd ${PREFIX}/share/doc/dia/html && ln -s en C
|
2005-07-17 03:50:32 -04:00
|
|
|
|
2000-09-10 17:56:04 -04:00
|
|
|
.include <bsd.port.mk>
|