1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/graphics/dia/Makefile
Tijl Coosemans 5d48443269 - Remove libtool hacks and patches that are now handled by USES=libtool
- Remove CONFIG_SHELL from CONFIGURE_ENV because bsd.port.mk handles that
2015-04-18 09:47:29 +00:00

59 lines
1.7 KiB
Makefile

# Created by: saper@system.pl
# $FreeBSD$
# $MCom: ports/graphics/dia/Makefile,v 1.16 2007/10/11 02:49:12 mezz Exp $
PORTNAME= dia
PORTVERSION= 0.97.3
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Diagram creation program, similar to Visio
OPTIONS_DEFINE= DOCS
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
USES= desktop-file-utils gettext gmake libtool pathfix \
pkgconfig tar:xz
USE_GNOME= gtk20 gnomeprefix libxslt libartlgpl2 intlhack
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --disable-gnome
INSTALL_TARGET= install-strip
DOCS_BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
.include <bsd.port.options.mk>
#.if ${ARCH} == "i386"
#LIB_DEPENDS+= libEMF.so:${PORTSDIR}/graphics/libemf
#CONFIGURE_ARGS+= --enable-libemf
#PLIST_SUB+= WMF=""
#.else
CONFIGURE_ARGS+= --disable-libemf
PLIST_SUB+= WMF="@comment "
#.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/lib/intl.c
@${REINPLACE_CMD} -e 's|glib/gstrfuncs.h>|glib.h>|g' \
-e 's|glib/gtestutils.h|glib.h|g' \
${WRKSRC}/objects/custom/shape_typeinfo.c \
${WRKSRC}/tests/test-objects.c \
${WRKSRC}/tests/test-boundingbox.c
@${FIND} ${WRKSRC} -name Makefile.in | \
${XARGS} ${REINPLACE_CMD} -e \
's,\(^GTK_LIBS.*\),\1 -lpthread,'
@${REINPLACE_CMD} -e 's|http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl| ; \
s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g ; \
s|-lstdc++||g' ${WRKSRC}/configure
.include <bsd.port.mk>