1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/graphics/dia/Makefile
Alex Kozlov 83f02b963c - Convert USE_GETTEXT to USES (part 4)
Approved by:	portmgr (bapt)
2013-04-26 10:44:28 +00:00

79 lines
2.1 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
DISTVERSION= 0.97.2
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Diagram creation program, similar to Visio
LIB_DEPENDS= popt:${PORTSDIR}/devel/popt \
png15:${PORTSDIR}/graphics/png
USES= pathfix desktop-file-utils gettext
USE_XZ= yes
USE_GMAKE= yes
USE_GNOME= gtk20 gnomeprefix libxslt libartlgpl2 intlhack
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -lintl" \
LOCALBASE="${LOCALBASE}"
CPPFLAGS+= -I${LOCALBASE}/include
CONFIGURE_ARGS= --disable-gnome
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
MAN1= dia.1
MANLANG= "" fr
.endif
#.if !defined(WITHOUT_PYTHON)
#USE_PYTHON= yes
#USE_GNOME+= pygtk2
#CONFIGURE_ARGS= --with-python
#PLIST_SUB+= PYTHON=""
#.else
#PLIST_SUB+= PYTHON="@comment "
#.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
LIB_DEPENDS+= EMF:${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
.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/SUBDIRS/s|data doc tests|data tests|g' \
${WRKSRC}/Makefile.in
.endif
@${FIND} ${WRKSRC} -name Makefile.in | \
${XARGS} ${REINPLACE_CMD} -e \
's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
s,\(^GTK_CFLAGS = \),\1 ${PTHREAD_CFLAGS} ,'
@${REINPLACE_CMD} -e 's|http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl|${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl| ; \
s|echo aout|echo elf|g ; s|/usr/include/libEMF|${LOCALBASE}/include/libEMF|g' \
${WRKSRC}/configure
.include <bsd.port.post.mk>