From 846ef0e3c607d17dfab32ab36407b01f6ce1da0b Mon Sep 17 00:00:00 2001
From: Waldemar Brodkorb <wbx@openadk.org>
Date: Fri, 26 Nov 2010 22:36:41 +0100
Subject: add support for imagemagick package

---
 scripts/scan-pkgs.sh | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

(limited to 'scripts')

diff --git a/scripts/scan-pkgs.sh b/scripts/scan-pkgs.sh
index aff3f61f8..124355161 100644
--- a/scripts/scan-pkgs.sh
+++ b/scripts/scan-pkgs.sh
@@ -24,6 +24,14 @@ out=0
 . $topdir/.config
 
 if [[ -n $ADK_NATIVE ]];then
+	if [[ -n $ADK_PACKAGE_LIBIMAGEMAGICK ]];then
+		NEED_JPEGDEV="$NEED_JPEGDEV libimagemagick"
+		NEED_TIFFDEV="$NEED_TIFFDEV libimagemagick"
+	fi
+	if [[ -n $ADK_PACKAGE_DISPLAY ]];then
+		NEED_X11DEV="$NEED_X11DEV display"
+		NEED_XEXTDEV="$NEED_XEXTDEV display"
+	fi
 	if [[ -n $ADK_PACKAGE_GIT ]];then
 		NEED_CURLDEV="$NEED_CURLDEV git"
 	fi
@@ -134,6 +142,34 @@ if [[ -n $NEED_CURLDEV ]];then
 	fi
 fi
 
+if [[ -n $NEED_TIFFDEV ]];then
+	if ! test -f /usr/include/tiff.h >/dev/null; then
+		echo >&2 You need tiff headers to build $NEED_TIFFDEV
+		out=1
+	fi
+fi
+
+if [[ -n $NEED_JPEGDEV ]];then
+	if ! test -f /usr/include/jpeglib.h >/dev/null; then
+		echo >&2 You need jpeg headers to build $NEED_JPEGDEV
+		out=1
+	fi
+fi
+
+if [[ -n $NEED_X11DEV ]];then
+	if ! test -f /usr/include/X11/Xlib.h >/dev/null; then
+		echo >&2 You need X11 headers to build $NEED_X11DEV
+		out=1
+	fi
+fi
+
+if [[ -n $NEED_XEXTDEV ]];then
+	if ! test -f /usr/include/X11/extensions/XShm.h >/dev/null; then
+		echo >&2 You need X11 extensions headers to build $NEED_XEXTDEV
+		out=1
+	fi
+fi
+
 #if [[ -n $NEED_SSLDEV ]]; then
 #	if ! test -f /usr/lib/pkgconfig/openssl.pc >/dev/null; then
 #		if ! test -f /usr/include/openssl/ssl.h >/dev/null; then
-- 
cgit v1.2.3