Subject: [alpine-devel] [PATCH] main/jwm Disable SVG support

From: Jeff Pohlmeyer <[email-masked]>
Date: Fri, 24 Jun 2016 09:13:02 -0500

The current build of JWM window manager includes support for
SVG icons, which pulls in all of these extra packages:

 librsvg
 gdk_pixbuf
 glib
 cairo
 pango
 croco
 libxml2
 harfbuzz

(That's about 10 MB of added dependencies for a ~250 KB program.)

I am guessing that most people who install JWM are looking for
something minimal and could probably live without SVG support.

 - Jeff
diff --git a/main/jwm/APKBUILD b/main/jwm/APKBUILD
index b0e7d88..43a1a76 100644
--- a/main/jwm/APKBUILD
+++ b/main/jwm/APKBUILD
@@ -11,8 +11,7 @@ license="GPL2"
 depends=
 depends_dev=""
 makedepends="libx11-dev libxext-dev libxft-dev libxmu-dev libxinerama-dev
-            libxpm-dev libxrender-dev libjpeg-turbo-dev libpng-dev
-            librsvg-dev"
+            libxpm-dev libxrender-dev libjpeg-turbo-dev libpng-dev"
 install=
 subpackages="$pkgname-doc"
 source="http://joewing.net/projects/jwm/releases/jwm-$pkgver.tar.xz"
@@ -42,6 +41,8 @@ build() {
 		--enable-xmu \
 		--enable-xinerama \
 		--disable-fribidi \
+		--disable-cairo \
+		--disable-rsvg \
 		--disable-debug \
 		|| return 1
 	make || return 1