Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] allows graphics/librsvg2 to build on 4.11



>Submitter-Id:	current-users
>Originator:	Michael C. Shultz
>Organization:
>Confidential:	no
>Synopsis:	[PATCH] allows graphics/librsvg2 to build on 4.11 
>Severity:	non-critical
>Priority:	low
>Category:	ports
>Class:		update
>Release:	FreeBSD 5.4-STABLE i386
>Environment:
System: FreeBSD ringworm.mechee.com 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Nov 30 13:51:49 PST 2005 root@xxxxxxxxxxxxxxxxxxx:/usr5/obj/usr5/src/sys/RINGWORM5 i386


>Description:

	patch allows graphics/librsvg2 to build on 4.11
	by disabling MOZILLA_PLUGIN option for 
	FreeBSD < 5.0

>How-To-Repeat:

	N/A

>Fix:

--- librsvg2-2.12.7_3.diff begins here ---
diff -ruN librsvg2/Makefile librsvg2-2.12.7_3/Makefile
--- librsvg2/Makefile	Tue Nov 29 13:48:50 2005
+++ librsvg2-2.12.7_3/Makefile	Wed Dec 14 14:12:47 2005
@@ -8,7 +8,7 @@
 
 PORTNAME=	librsvg2
 PORTVERSION=	2.12.7
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	graphics gnome
 MASTER_SITES=	${MASTER_SITE_GNOME}
 MASTER_SITE_SUBDIR=	sources/${PORTNAME:S/2$//}/2.12
@@ -46,10 +46,11 @@
 
 MAN1=		rsvg.1
 
-OPTIONS=	MOZILLA_PLUGIN "Enable the SVG browser plug-in" no
-
 .include <bsd.port.pre.mk>
 
+.if ${OSVERSION} > 499999
+OPTIONS=	MOZILLA_PLUGIN "Enable the SVG browser plug-in" no
+
 .if defined(WITH_MOZILLA_PLUGIN)
 USE_GECKO=	firefox mozilla
 .include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
@@ -61,6 +62,7 @@
 CONFIGURE_ARGS+=--enable-mozilla-plugin=no
 
 PLIST_SUB+=	PLUGIN="@comment "
+.endif
 .endif
 
 post-patch:
--- librsvg2-2.12.7_3.diff ends here ---