diff options
Diffstat (limited to 'graphics/librsvg2/Makefile')
-rw-r--r-- | graphics/librsvg2/Makefile | 61 |
1 files changed, 56 insertions, 5 deletions
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile index 898342b91..7d20d665d 100644 --- a/graphics/librsvg2/Makefile +++ b/graphics/librsvg2/Makefile @@ -6,10 +6,10 @@ # PORTNAME= librsvg2 -PORTVERSION= 2.7.2 +PORTVERSION= 2.8.0 CATEGORIES= graphics gnome MASTER_SITES= ${MASTER_SITE_GNOME} -MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.7 +MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.8 DISTNAME= librsvg-${PORTVERSION} DIST_SUBDIR= gnome2 @@ -26,9 +26,9 @@ USE_BZIP2= yes USE_GMAKE= yes USE_X_PREFIX= yes INSTALLS_SHLIB= yes -USE_INC_LIBTOOL_VER=13 +USE_LIBTOOL_VER=15 USE_REINPLACE= yes -USE_GNOME= gnomehack gnomeprefix lthack libartlgpl2 libgsf gnomevfs2 +USE_GNOME= gnomehack gnomeprefix libartlgpl2 libgsf gnomevfs2 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_ARGS= --with-svgz \ @@ -44,8 +44,59 @@ PLIST_SUB= GTK_VERSION=${GTK_VERSION} MAN1= rsvg.1 +OPTIONS= MOZILLA_PLUGIN "Enable the RSVG browser plug-in" no + +.include <bsd.port.pre.mk> + +.if defined(WITH_MOZILLA_PLUGIN) +.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox" +BUILD_DEPENDS+= ${X11BASE}/lib/firefox/lib/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox +RUN_DEPENDS+= ${X11BASE}/lib/firefox/lib/pkgconfig/firefox-plugin.pc:${PORTSDIR}/www/firefox +.else +BUILD_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} +RUN_DEPENDS+= ${X11BASE}/libdata/pkgconfig/mozilla-plugin${HEADERS_SUFX}.pc:${PORTSDIR}/www/mozilla${HEADERS_SUFX} +.endif + +HEADERS_SUFX= + +.if !defined(WITH_MOZILLA) +HEADERS_SUFX= +.else +.if ${WITH_MOZILLA}=="mozilla" +HEADERS_SUFX= +.else +.if ${WITH_MOZILLA}=="mozilla-devel" +HEADERS_SUFX= -devel +.else +.if ${WITH_MOZILLA}=="firefox" +CONFIGURE_ENV+= PKG_CONFIG_PATH=${X11BASE}/lib/firefox/lib/pkgconfig +.endif +.endif +.endif +.endif +PLIST_SUB+= PLUGIN="" +.else +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in +PLIST_SUB+= PLUGIN="@comment " +.endif + post-patch: @${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \ ${WRKSRC}/librsvg-2.0.pc.in +.if defined(WITH_MOZILLA_PLUGIN) +.if defined(WITH_MOZILLA) && ${WITH_MOZILLA}=="firefox" + @${REINPLACE_CMD} -e 's|mozilla-|firefox-|g' ${WRKSRC}/configure +.else + @${REINPLACE_CMD} -e 's|mozilla-plugin|mozilla-plugin${HEADERS_SUFX}|g' \ + ${WRKSRC}/configure +.endif +.endif + +.if defined(WITH_MOZILLA_PLUGIN) +post-install: + ${MKDIR} ${PREFIX}/lib/browser_plugins + ${INSTALL_PROGRAM} ${WRKSRC}/moz-plugin/.libs/libmozsvgdec.so \ + ${PREFIX}/lib/browser_plugins +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |