1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/graphics/dia/Makefile
Edwin Groothuis 090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00

80 lines
2.1 KiB
Makefile

# New ports collection makefile for: dia
# Date created: 21 December 1999
# Whom: saper@system.pl
#
# $FreeBSD$
# $MCom: ports/graphics/dia/Makefile,v 1.16 2007/10/11 02:49:12 mezz Exp $
#
PORTNAME= dia
DISTVERSION= 0.96.1
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
DIST_SUBDIR= gnome2
MAINTAINER?= gnome@FreeBSD.org
COMMENT= Diagram creation program, similar to Visio
BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
USE_BZIP2= yes
USE_GMAKE= yes
USE_GNOME= gtk20 gnomehack gnomeprefix libxslt libartlgpl2 intlhack \
desktopfileutils
WANT_GNOME= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl" \
LOCALBASE="${LOCALBASE}"
MAN1= dia.1
.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 ${HAVE_GNOME:Mlibgnomeui}!=""
USE_GNOME+= libgnomeui
CONFIGURE_ARGS+= --enable-gnome --enable-bonobo
PKGNAMESUFFIX= -gnome
GNOME_ENABLED= yes
.else
CONFIGURE_ARGS+= --disable-gnome --disable-bonobo
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/lib/intl.c
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]pkgdatadir[)]/help|(datadir)/gnome/help/dia|g ; \
s|[(]datadir[)]/help|(datadir)/gnome/help|g'
.ifndef (GNOME_ENABLED)
@${FIND} ${WRKSRC} -name Makefile.in | \
${XARGS} ${REINPLACE_CMD} -e \
's,\(^GTK_LIBS.*\),\1 ${PTHREAD_LIBS}, ; \
s,\(^GTK_CFLAGS = \),\1 ${PTHREAD_CFLAGS} ,'
.endif
pre-configure:
@${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' \
${WRKSRC}/configure
post-install:
@${INSTALL_DATA} ${WRKSRC}/dia.xpm ${PREFIX}/share/dia/
@-update-desktop-database
.include <bsd.port.post.mk>