aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2005-11-29 21:48:50 +0000
committerMichael Johnson <ahze@FreeBSD.org>2005-11-29 21:48:50 +0000
commit971399278a82b0896ee000eb3a90ccafe8b50bb1 (patch)
treeb17bbb94b4ba55f316e197ea74431d8440c3debb
parent2167ec15212bcea6216bae23221db4a6f78fe101 (diff)
downloadports-971399278a82b0896ee000eb3a90ccafe8b50bb1.tar.gz
ports-971399278a82b0896ee000eb3a90ccafe8b50bb1.zip
Notes
-rw-r--r--graphics/librsvg2/Makefile27
1 files changed, 4 insertions, 23 deletions
diff --git a/graphics/librsvg2/Makefile b/graphics/librsvg2/Makefile
index 5b3dd6dc7008..440a43ec3a4e 100644
--- a/graphics/librsvg2/Makefile
+++ b/graphics/librsvg2/Makefile
@@ -8,7 +8,7 @@
PORTNAME= librsvg2
PORTVERSION= 2.12.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME:S/2$//}/2.12
@@ -51,27 +51,8 @@ OPTIONS= MOZILLA_PLUGIN "Enable the SVG browser plug-in" no
.include <bsd.port.pre.mk>
.if defined(WITH_MOZILLA_PLUGIN)
-WITH_MOZILLA?= firefox
-
-.if ${WITH_MOZILLA}=="firefox"
-MOZILLA= firefox
-HEADERS_SUFX=
-.elif ${WITH_MOZILLA}=="mozilla"
-MOZILLA= mozilla
-HEADERS_SUFX=
-.elif ${WITH_MOZILLA}=="mozilla-devel"
-MOZILLA= mozilla
-HEADERS_SUFX= -devel
-.else
-BROKEN= "Unknown Gecko source specified (${WITH_MOZILLA})"
-.endif
-
-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}
-
-.if ${WITH_MOZILLA}=="mozilla-devel" && ${OSVERSION} < 500000
-USE_GCC= 3.4
-.endif
+USE_GECKO= firefox mozilla
+.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
CONFIGURE_ENV+= MOZILLA_CONFIG=no
CONFIGURE_ARGS+=--enable-mozilla-plugin=yes
@@ -84,7 +65,7 @@ PLIST_SUB+= PLUGIN="@comment "
post-patch:
.if defined(WITH_MOZILLA_PLUGIN)
- @${REINPLACE_CMD} -e 's|mozilla-plugin|${MOZILLA}-plugin${HEADERS_SUFX}|g' \
+ @${REINPLACE_CMD} -e 's|mozilla-plugin|${GECKO}-plugin|g' \
${WRKSRC}/configure
.endif