summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-26 22:36:41 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-26 22:36:41 +0100
commit846ef0e3c607d17dfab32ab36407b01f6ce1da0b (patch)
treebdfd38d4891b46c7847f8447ad458b01c7365212 /scripts
parentcc12f9f23c7c0bfebba4e8a2580f0c4596dc2726 (diff)
add support for imagemagick package
Diffstat (limited to 'scripts')
-rw-r--r--scripts/scan-pkgs.sh36
1 files changed, 36 insertions, 0 deletions
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