Skip to content

Commit

Permalink
Add support for latest Amazon Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Dec 8, 2014
1 parent 247b607 commit ea1013f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ To install the most suitable version of libvips on the following Operating Syste
* Red Hat Linux
* RHEL/Centos/Scientific 6, 7
* Fedora 21, 22
* Amazon Linux 2014.09

run the following as a user with `sudo` access:

Expand Down
14 changes: 14 additions & 0 deletions preinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# * Red Hat Linux
# * RHEL/Centos/Scientific 6, 7
# * Fedora 21, 22
# * Amazon Linux 2014.09

vips_version_minimum=7.40.0
vips_version_latest_major=7.42
Expand Down Expand Up @@ -143,6 +144,19 @@ case $(uname -s) in
sorry "$RELEASE"
;;
esac
elif [ -f /etc/system-release ]; then
# Probably Amazon Linux
RELEASE=$(cat /etc/system-release)
case $RELEASE in
"Amazon Linux AMI release 2014.09")
# Amazon Linux
echo "Detected '$RELEASE'"
echo "Installing libvips dependencies via yum"
yum groupinstall -y "Development Tools"
yum install -y gtk-doc libxml2-devel libjpeg-turbo-devel libpng-devel libtiff-devel libexif-devel lcms-devel ImageMagick-devel gobject-introspection-devel libwebp-devel curl
install_libvips_from_source "--prefix=/usr"
;;
esac
else
# Unsupported OS
sorry "$(uname -a)"
Expand Down

0 comments on commit ea1013f

Please sign in to comment.