bb89f80c35
- Normalize the ImageMagick library name so it stays the same regardless of what the 16-bit and HDRI option are set to [1]. Teach cmake to look for the new name. Bump ports that link to the libraries due to this. - As a result do away with the "HALFSUPPORTED" option block, and list 16-bit and HDRI with the other options. - ImageMagick ships a basic SVG plugin when not using librsvg2 for SVG support. This basic SVG plugin needs libxml2 to work [2]. Make libxml2 a mandatory dependency (instead of only when the SVG option was selected). - Don't touch .keep files in the modules directory, there files there so it useless. PR: 194949 [1] PR: 195227 [2] Requested by: many [1] Submitted by: software-freebsd@interfasys.ch [2]
65 lines
1.8 KiB
Makefile
65 lines
1.8 KiB
Makefile
# Created by: Alexander Nedotsukov <bland@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= inkscape
|
|
PORTVERSION= 0.48.5
|
|
PORTREVISION= 3
|
|
CATEGORIES= graphics gnome
|
|
MASTER_SITES= SF
|
|
MASTER_SITE_SUBDIR=${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION}
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Full featured open source SVG editor
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/concept_check.hpp:${PORTSDIR}/devel/boost-libs
|
|
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt \
|
|
libgc.so:${PORTSDIR}/devel/boehm-gc \
|
|
libgsl.so:${PORTSDIR}/math/gsl \
|
|
libgtkspell.so:${PORTSDIR}/textproc/gtkspell \
|
|
liblcms.so:${PORTSDIR}/graphics/lcms \
|
|
libwpg-0.2.so:${PORTSDIR}/graphics/libwpg \
|
|
libpng.so:${PORTSDIR}/graphics/png \
|
|
libMagick++-6.so:${PORTSDIR}/graphics/ImageMagick
|
|
RUN_DEPENDS= p5-XML-XQL>=0:${PORTSDIR}/textproc/p5-XML-XQL
|
|
|
|
USE_GNOME= gtkmm24 intlhack libxslt
|
|
USES= desktop-file-utils gettext gmake libtool pathfix perl5 \
|
|
pkgconfig shebangfix tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
INSTALLS_ICONS= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS= --without-gnome-vfs
|
|
|
|
python_OLD_CMD?=/usr/bin/env python
|
|
python_CMD?= ${LOCALBASE}/bin/python2
|
|
SHEBANG_FILES= cxxtest/cxxtestgen.pl share/extensions/*.p[lm] \
|
|
share/extensions/*.py
|
|
|
|
OPTIONS_DEFINE= POPPLER
|
|
OPTIONS_DEFAULT=POPPLER
|
|
POPPLER_DESC= PDF preview rendering
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
_CCVERSION!= ${CC} --version
|
|
.if ${_CCVERSION:Mclang}
|
|
CPPFLAGS+= -Wno-mismatched-tags
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPOPPLER}
|
|
LIB_DEPENDS+= libpoppler-glib.so:${PORTSDIR}/graphics/poppler-glib
|
|
CONFIGURE_ARGS+= --enable-poppler-cairo
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-poppler-cairo=no
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-ldl||g' \
|
|
${WRKSRC}/configure
|
|
.if ! ${PORT_OPTIONS:MPOPPLER}
|
|
@${REINPLACE_CMD} -e 's|poppler|pdisable|g' \
|
|
${WRKSRC}/configure
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|