freebsd-ports/graphics/inkscape/Makefile
Joe Marcus Clarke ae52bc8089 Presenting GNOME 2.26 for FreeBSD. See
http://library.gnome.org/misc/release-notes/2.26/ for a list of what's new.
On the FreeBSD front, we introduced a port of libxul 1.9 as an alternative
for Firefox 2.0 as a Gecko provider.  Almost all of the Gecko consumers
can make use of this provider by setting:

WITH_GECKO=libxul

The GNOME 2.26 port was done by ahze, kwm, marcus, and mezz with
contributions by Joseph S. Atkinson, Peter Wemm, Eric L. Chen,
Martin Matuska, Craig Butler, and Pawel Worach.
2009-04-10 05:56:28 +00:00

73 lines
1.9 KiB
Makefile

# New ports collection makefile for: inkscape
# Date created: 17 Nov 2003
# Whom: Alexander Nedotsukov <bland@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= inkscape
PORTVERSION= 0.46
PORTREVISION= 5
CATEGORIES= graphics gnome
MASTER_SITES= SF
MAINTAINER= gnome@FreeBSD.org
COMMENT= A program seeks to become a full featured open source SVG editor
BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24 \
gc.1:${PORTSDIR}/devel/boehm-gc \
gtkspell.0:${PORTSDIR}/textproc/gtkspell \
lcms.1:${PORTSDIR}/graphics/lcms \
Magick++.2:${PORTSDIR}/graphics/ImageMagick
RUN_DEPENDS= ${SITE_PERL}/XML/XQL.pm:${PORTSDIR}/textproc/p5-XML-XQL
USE_BZIP2= yes
USE_GMAKE= yes
WANT_GNOME= yes
USE_GNOME= gnomehack desktopfileutils intlhack libxslt
USE_GETTEXT= yes
GNU_CONFIGURE= yes
USE_PERL5= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
MAN1= inkscape.1
MAN1_EN= inkview.1
MANLANG= "" fr
OPTIONS= POPPLER "Enable libpoppler-cairo for rendering PDF preview" off
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomevfs2} != ""
USE_GNOME+= gnomevfs2
CONFIGURE_ARGS+= --with-gnome-vfs
.else
CONFIGURE_ARGS+= --without-gnome-vfs
.endif
.if defined(WITH_POPPLER)
LIB_DEPENDS+= poppler-glib.4:${PORTSDIR}/graphics/poppler-gtk
CONFIGURE_ARGS+= --enable-poppler-cairo
.else
CONFIGURE_ARGS+= --disable-poppler-cairo
.endif
post-patch:
@${REINPLACE_CMD} -e 's|ieefp.h|ieeefp.h|' \
${WRKSRC}/src/2geom/bezier-utils.cpp
@${REINPLACE_CMD} -e 's|libpng >= 1.2|libpng12 >= 1.2|g' \
${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "*.h" -o -name "*.cpp" | ${XARGS} \
${REINPLACE_CMD} -e 's|glib/gmessages.h|glib/gtestutils.h|g'
.if !defined(WITH_POPPLER)
@${REINPLACE_CMD} -e 's|poppler|pdisable|g' \
${WRKSRC}/configure
.endif
post-install:
@-update-desktop-database
.include <bsd.port.post.mk>