Permalink
Browse files

Add libexpat to build on debian and centos.

  • Loading branch information...
aaron42net committed May 29, 2017
1 parent 4ed8682 commit a23b37c59c8ec58f5b848b5c47aaaf0f62ac2149
Showing with 7 additions and 7 deletions.
  1. +1 −1 cmd/fotomat/version.go
  2. +5 −5 preinstall.sh
  3. +1 −1 vips/vips_static.go
View
@@ -8,7 +8,7 @@ import (
const (
// FotomatVersion is updated by git-hooks/pre-commit
FotomatVersion = "2.7.215"
FotomatVersion = "2.7.216"
)
var (
View
@@ -46,28 +46,28 @@ case "$release" in
debian-8|ubuntu-1[456].*|mint-17.*)
# Debian 8, Ubuntu 14-16, Mint 17
apt-get -q update
apt-get install -y -q --no-install-recommends ca-certificates git curl tar automake build-essential libglib2.0-dev libjpeg-dev libpng12-dev libwebp-dev libgif-dev liblcms2-dev libtiff5-dev libxml2-dev libexif-dev libfftw3-dev libffi-dev
apt-get install -y -q --no-install-recommends ca-certificates git curl tar automake build-essential libglib2.0-dev libjpeg-dev libpng12-dev libwebp-dev libgif-dev liblcms2-dev libtiff5-dev libxml2-dev libexif-dev libexpat1-dev libfftw3-dev libffi-dev
;;
debian-9|debian-unknown)
# Debian 9 or sid
apt-get -q update
apt-get install -y -q --no-install-recommends ca-certificates git curl tar automake build-essential libglib2.0-dev libjpeg-dev libpng-dev libwebp-dev libgif-dev liblcms2-dev libtiff5-dev libxml2-dev libexif-dev libfftw3-dev libffi-dev
apt-get install -y -q --no-install-recommends ca-certificates git curl tar automake build-essential libglib2.0-dev libjpeg-dev libpng-dev libwebp-dev libgif-dev liblcms2-dev libtiff5-dev libxml2-dev libexif-dev libexpat1-dev libfftw3-dev libffi-dev
;;
centos-7*|rhel-7*)
# RHEL/CentOS/SL 7
yum -y install epel-release
yum -y update
yum install -y curl tar findutils git automake make gcc gcc-c++ glib2-devel libexif-devel libjpeg-turbo-devel libpng-devel libtiff-devel libwebp-devel giflib-devel lcms2-devel libxml2-devel libffi-devel jbigkit-devel
yum install -y curl tar findutils git automake make gcc gcc-c++ glib2-devel libexif-devel libjpeg-turbo-devel libpng-devel libtiff-devel libwebp-devel giflib-devel lcms2-devel libxml2-devel expat-devel libffi-devel jbigkit-devel
;;
fedora-2[1-3])
# Fedora 21-23
yum install -y curl tar findutils git automake make gcc gcc-c++ glib2-devel libexif-devel libjpeg-turbo-devel libpng-devel libtiff-devel libwebp-devel giflib-devel lcms2-devel libxml2-devel libffi-devel jbigkit-devel fftw3-devel fontconfig-devel libtool-ltdl-devel
yum install -y curl tar findutils git automake make gcc gcc-c++ glib2-devel libexif-devel libjpeg-turbo-devel libpng-devel libtiff-devel libwebp-devel giflib-devel lcms2-devel libxml2-devel expat-devel libffi-devel jbigkit-devel fftw3-devel fontconfig-devel libtool-ltdl-devel
;;
"Red Hat Enterprise Linux release 6."*|"CentOS release 6."*|"Scientific Linux release 6."*)
# RHEL/CentOS/SL 6
yum -y install epel-release
yum -y update
yum install -y curl tar findutils git automake make gcc gcc-c++ glib2-devel libexif-devel libjpeg-turbo-devel libpng-devel libtiff-devel libwebp-devel giflib-devel lcms2-devel libxml2-devel
yum install -y curl tar findutils git automake make gcc gcc-c++ glib2-devel libexif-devel libjpeg-turbo-devel libpng-devel libtiff-devel libwebp-devel giflib-devel lcms2-devel libxml2-devel expat-devel
;;
*)
echo "Sorry, I don't yet know how to install on $release ($(uname -a))."
View
@@ -8,6 +8,6 @@ package vips
/*
#cgo pkg-config: --static vips
#cgo LDFLAGS: -lstdc++ -lgif -ltiff
#cgo LDFLAGS: -lstdc++ -lgif -ltiff -lexpat
*/
import "C"

0 comments on commit a23b37c

Please sign in to comment.