diff options
author | kwm <kwm@FreeBSD.org> | 2013-10-18 22:37:58 +0800 |
---|---|---|
committer | kwm <kwm@FreeBSD.org> | 2013-10-18 22:37:58 +0800 |
commit | 90983950c26d1f151d590594bd967f2e69f486f5 (patch) | |
tree | c0b183e064ec28767364ce6834d482276179fa1f /graphics/inkscape/Makefile | |
parent | 6e8cf61826f86dfc820c001bc122fab6b26e14ad (diff) | |
download | freebsd-ports-gnome-90983950c26d1f151d590594bd967f2e69f486f5.tar.gz freebsd-ports-gnome-90983950c26d1f151d590594bd967f2e69f486f5.tar.zst freebsd-ports-gnome-90983950c26d1f151d590594bd967f2e69f486f5.zip |
Fix the build with clang and with libc++ [1]
Switch to new lib_depend syntax, stageify, USES=desktop-file-utils.
Quiet warning spam when building with clang.
Cleanup obsolete sed lines, rename patches with obsolete names.
Obtained from: inkscape launchpad bug 1232474 and 0.48.x stable branch [1]
Diffstat (limited to 'graphics/inkscape/Makefile')
-rw-r--r-- | graphics/inkscape/Makefile | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/graphics/inkscape/Makefile b/graphics/inkscape/Makefile index 9f71a6feda3e..a0959f3c5076 100644 --- a/graphics/inkscape/Makefile +++ b/graphics/inkscape/Makefile @@ -12,38 +12,41 @@ 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= popt:${PORTSDIR}/devel/popt \ - gtkmm-2.4:${PORTSDIR}/x11-toolkits/gtkmm24 \ - gc:${PORTSDIR}/devel/boehm-gc \ - gsl:${PORTSDIR}/math/gsl \ - gtkspell:${PORTSDIR}/textproc/gtkspell \ - lcms:${PORTSDIR}/graphics/lcms \ - wpg-0.2:${PORTSDIR}/graphics/libwpg \ - png15:${PORTSDIR}/graphics/png \ - Magick++:${PORTSDIR}/graphics/ImageMagick +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 \ + libpng15.so:${PORTSDIR}/graphics/png \ + libMagick++.so:${PORTSDIR}/graphics/ImageMagick RUN_DEPENDS= p5-XML-XQL>=0:${PORTSDIR}/textproc/p5-XML-XQL USE_BZIP2= yes -USE_GCC= any -WANT_GNOME= yes -USE_GNOME= gnomehack desktopfileutils intlhack libxslt -USES= gettext gmake perl5 +USE_GNOME= gtkmm24 intlhack libxslt +USES= desktop-file-utils gettext gmake pathfix perl5 shebangfix GNU_CONFIGURE= yes INSTALLS_ICONS= yes -CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -MAN1= inkscape.1 inkview.1 -NO_MANCOMPRESS= yes +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= GNOMEVFS POPPLER OPTIONS_DEFAULT=POPPLER POPPLER_DESC= PDF preview rendering GNOMEVFS_DESC= Use gnomevfs for loading files -NO_STAGE= yes .include <bsd.port.options.mk> +_CCVERSION!= ${CC} --version +.if ${_CCVERSION:Mclang} +CPPFLAGS+= -Wno-mismatched-tags +.endif + .if ${PORT_OPTIONS:MGNOMEVFS} USE_GNOME+= gnomevfs2 CONFIGURE_ARGS+= --with-gnome-vfs @@ -52,26 +55,19 @@ CONFIGURE_ARGS+= --without-gnome-vfs .endif .if ${PORT_OPTIONS:MPOPPLER} -LIB_DEPENDS+= poppler-glib:${PORTSDIR}/graphics/poppler-glib +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|ieefp.h|ieeefp.h|' \ - ${WRKSRC}/src/2geom/bezier-utils.cpp @${REINPLACE_CMD} -e 's|libpng >= 1.2|libpng15 >= 1.2|g' \ -e 's|-ldl||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.mk> |