2013-03-20 02:52:58 +01:00
|
|
|
# Created by: saper@system.pl
|
1999-11-25 15:52:51 +01:00
|
|
|
# $FreeBSD$
|
2007-10-25 01:37:25 +02:00
|
|
|
# $MCom: ports/graphics/dia/Makefile,v 1.16 2007/10/11 02:49:12 mezz Exp $
|
1999-11-25 15:52:51 +01:00
|
|
|
|
2000-04-13 08:28:28 +02:00
|
|
|
PORTNAME= dia
|
2014-12-11 17:46:54 +01:00
|
|
|
PORTVERSION= 0.97.3
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 1
|
2003-10-20 06:59:17 +02:00
|
|
|
PORTEPOCH= 1
|
2003-04-04 09:21:03 +02:00
|
|
|
CATEGORIES= graphics gnome
|
2009-02-02 02:36:16 +01:00
|
|
|
MASTER_SITES= GNOME
|
2003-04-04 09:21:03 +02:00
|
|
|
DIST_SUBDIR= gnome2
|
1999-11-25 15:52:51 +01:00
|
|
|
|
2013-04-17 13:25:52 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Diagram creation program, similar to Visio
|
1999-11-25 15:52:51 +01:00
|
|
|
|
2014-04-11 17:27:54 +02:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2001-05-21 04:35:30 +02:00
|
|
|
|
2014-06-03 02:33:52 +02:00
|
|
|
USES= desktop-file-utils gettext gmake libtool pathfix \
|
2014-04-23 15:25:16 +02:00
|
|
|
pkgconfig tar:xz
|
2013-04-17 13:25:52 +02:00
|
|
|
USE_GNOME= gtk20 gnomeprefix libxslt libartlgpl2 intlhack
|
2009-07-10 18:35:26 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-08-29 19:48:05 +02:00
|
|
|
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2019-04-06 23:19:33 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib `pkg-config --libs gmodule-2.0`
|
2013-03-20 02:52:58 +01:00
|
|
|
CONFIGURE_ARGS= --disable-gnome
|
2014-04-11 17:27:54 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2013-03-20 02:52:58 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
DOCS_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:textproc/docbook-xsl
|
2013-04-17 13:25:52 +02:00
|
|
|
.include <bsd.port.options.mk>
|
1999-11-25 15:52:51 +01:00
|
|
|
|
2014-12-11 17:46:54 +01:00
|
|
|
#.if ${ARCH} == "i386"
|
2016-04-01 16:00:51 +02:00
|
|
|
#LIB_DEPENDS+= libEMF.so:graphics/libemf
|
2014-12-11 17:46:54 +01:00
|
|
|
#CONFIGURE_ARGS+= --enable-libemf
|
|
|
|
#PLIST_SUB+= WMF=""
|
|
|
|
#.else
|
2010-02-07 08:57:26 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-libemf
|
|
|
|
PLIST_SUB+= WMF="@comment "
|
2014-12-11 17:46:54 +01:00
|
|
|
#.endif
|
2009-07-20 17:53:34 +02:00
|
|
|
|
2003-06-16 01:33:45 +02:00
|
|
|
post-patch:
|
2007-10-25 01:37:25 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/lib/intl.c
|
2013-04-17 13:25:52 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|glib/gstrfuncs.h>|glib.h>|g' \
|
|
|
|
-e 's|glib/gtestutils.h|glib.h|g' \
|
2013-03-08 11:51:34 +01:00
|
|
|
${WRKSRC}/objects/custom/shape_typeinfo.c \
|
|
|
|
${WRKSRC}/tests/test-objects.c \
|
|
|
|
${WRKSRC}/tests/test-boundingbox.c
|
2003-06-16 01:33:45 +02:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in | \
|
|
|
|
${XARGS} ${REINPLACE_CMD} -e \
|
2015-03-25 21:09:42 +01:00
|
|
|
's,\(^GTK_LIBS.*\),\1 -lpthread,'
|
2007-02-04 02:50:32 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl| ; \
|
2015-03-25 21:09:42 +01:00
|
|
|
s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g ; \
|
2013-12-07 10:11:54 +01:00
|
|
|
s|-lstdc++||g' ${WRKSRC}/configure
|
2006-07-10 07:03:21 +02:00
|
|
|
|
2014-04-11 17:27:54 +02:00
|
|
|
.include <bsd.port.mk>
|