Skip to content

Instantly share code, notes, and snippets.

@identityclash
Forked from genediazjr/graphicsmagick.sh
Created November 11, 2015 06:05
Show Gist options
  • Select an option

  • Save identityclash/3fa595e4c3d667d7b520 to your computer and use it in GitHub Desktop.

Select an option

Save identityclash/3fa595e4c3d667d7b520 to your computer and use it in GitHub Desktop.

Revisions

  1. @genediazjr genediazjr revised this gist Oct 19, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions debian-graphicsmagick.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    apt-get install make git g++ gcc zlib1g zlib1g-dev libxml2 libxml2-dev -y

    # https://developers.google.com/speed/webp/docs/compiling#building
    cd /usr/local/src
    wget http://downloads.webmproject.org/releases/webp/libwebp-0.4.3.tar.gz
  2. @genediazjr genediazjr revised this gist Oct 19, 2015. 5 changed files with 63 additions and 53 deletions.
    12 changes: 0 additions & 12 deletions 1-libjpeg
    Original file line number Diff line number Diff line change
    @@ -1,12 +0,0 @@
    # http://www.ijg.org/
    cd /usr/local/src
    curl --remote-name http://www.ijg.org/files/jpegsrc.v9a.tar.gz

    tar -xzvf jpegsrc.v9a.tar.gz
    cd jpeg-9a

    ./configure --prefix=/usr/local/libjpeg-9a
    make
    make install

    ln -s libjpeg-9a /usr/local/libjpeg
    14 changes: 0 additions & 14 deletions 2-libpng
    Original file line number Diff line number Diff line change
    @@ -1,14 +0,0 @@
    # http://www.libpng.org/pub/png/libpng.html
    cd /usr/local/src
    curl --remote-name --location http://download.sourceforge.net/libpng/libpng-1.6.18.tar.gz

    tar -xzvf libpng-1.6.18.tar.gz
    cd libpng-1.6.18

    apt-get install zlib1g zlib1g-dev -y

    ./configure --prefix=/usr/local/libpng-1.6.18
    make
    make install

    ln -s libpng-1.6.18 /usr/local/libpng
    12 changes: 0 additions & 12 deletions 3-libtiff
    Original file line number Diff line number Diff line change
    @@ -1,12 +0,0 @@
    # http://www.remotesensing.org/libtiff/
    cd /usr/local/src
    curl --remote-name http://download.osgeo.org/libtiff/tiff-4.0.4.tar.gz

    tar -xzvf tiff-4.0.4.tar.gz
    cd tiff-4.0.4

    ./configure --prefix=/usr/local/libtiff-4.0.4
    make
    make install

    ln -s libtiff-4.0.4 /usr/local/libtiff
    15 changes: 0 additions & 15 deletions 4-graphicsmagick
    Original file line number Diff line number Diff line change
    @@ -1,15 +0,0 @@
    # taken from http://mac-dev-env.patrickbougie.com/graphicsmagick/
    cd /usr/local/src
    curl --remote-name --location http://download.sourceforge.net/graphicsmagick/GraphicsMagick-1.3.21.tar.gz

    tar -xzvf GraphicsMagick-1.3.21.tar.gz
    cd GraphicsMagick-1.3.21

    ./configure \
    LDFLAGS="-L/usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/local/libtiff/lib" \
    CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include"

    make
    make install

    ln -s graphicsmagick-1.3.21 /usr/local/graphicsmagick
    63 changes: 63 additions & 0 deletions debian-graphicsmagick.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,63 @@
    # https://developers.google.com/speed/webp/docs/compiling#building
    cd /usr/local/src
    wget http://downloads.webmproject.org/releases/webp/libwebp-0.4.3.tar.gz

    tar -xvzf libwebp-0.4.3.tar.gz
    cd libwebp-0.4.3

    ./configure
    make && make install

    # http://www.ijg.org/
    cd /usr/local/src
    curl --remote-name http://www.ijg.org/files/jpegsrc.v9a.tar.gz

    tar -xzvf jpegsrc.v9a.tar.gz
    cd jpeg-9a

    ./configure --prefix=/usr/local/libjpeg-9a
    make && make install

    ln -s libjpeg-9a /usr/local/libjpeg

    # http://www.libpng.org/pub/png/libpng.html
    cd /usr/local/src
    curl --remote-name --location http://download.sourceforge.net/libpng/libpng-1.6.18.tar.gz

    tar -xzvf libpng-1.6.18.tar.gz
    cd libpng-1.6.18

    apt-get install zlib1g zlib1g-dev -y

    ./configure --prefix=/usr/local/libpng-1.6.18
    make && make install

    ln -s libpng-1.6.18 /usr/local/libpng

    # http://www.remotesensing.org/libtiff/
    cd /usr/local/src
    curl --remote-name http://download.osgeo.org/libtiff/tiff-4.0.4.tar.gz

    tar -xzvf tiff-4.0.4.tar.gz
    cd tiff-4.0.4

    ./configure --prefix=/usr/local/libtiff-4.0.4
    make && make install

    ln -s libtiff-4.0.4 /usr/local/libtiff

    # taken from http://mac-dev-env.patrickbougie.com/graphicsmagick/
    cd /usr/local/src
    curl --remote-name --location http://download.sourceforge.net/graphicsmagick/GraphicsMagick-1.3.22.tar.gz

    tar -xzvf GraphicsMagick-1.3.22.tar.gz
    cd GraphicsMagick-1.3.22

    ./configure \
    LDFLAGS="-L/usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/local/libtiff/lib" \
    CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include"

    make && make install && make check

    ln -s graphicsmagick-1.3.22 /usr/local/graphicsmagick

  3. @genediazjr genediazjr revised this gist Aug 11, 2015. 4 changed files with 4 additions and 5 deletions.
    2 changes: 1 addition & 1 deletion 1-libjpeg
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,4 @@ cd jpeg-9a
    make
    make install

    ln -s /usr/local/src/jpeg-9a /usr/local/libjpeg
    ln -s libjpeg-9a /usr/local/libjpeg
    2 changes: 1 addition & 1 deletion 2-libpng
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,4 @@ apt-get install zlib1g zlib1g-dev -y
    make
    make install

    ln -s /usr/local/src/libpng-1.6.18 /usr/local/libpng
    ln -s libpng-1.6.18 /usr/local/libpng
    2 changes: 1 addition & 1 deletion 3-libtiff
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,4 @@ cd tiff-4.0.4
    make
    make install

    ln -s /usr/local/src/tiff-4.0.4 /usr/local/libtiff
    ln -s libtiff-4.0.4 /usr/local/libtiff
    3 changes: 1 addition & 2 deletions 4-graphicsmagick
    Original file line number Diff line number Diff line change
    @@ -7,8 +7,7 @@ cd GraphicsMagick-1.3.21

    ./configure \
    LDFLAGS="-L/usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/local/libtiff/lib" \
    CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include" \
    --prefix=/usr/local/graphicsmagick-1.3.21
    CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include"

    make
    make install
  4. @genediazjr genediazjr created this gist Aug 11, 2015.
    12 changes: 12 additions & 0 deletions 1-libjpeg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # http://www.ijg.org/
    cd /usr/local/src
    curl --remote-name http://www.ijg.org/files/jpegsrc.v9a.tar.gz

    tar -xzvf jpegsrc.v9a.tar.gz
    cd jpeg-9a

    ./configure --prefix=/usr/local/libjpeg-9a
    make
    make install

    ln -s /usr/local/src/jpeg-9a /usr/local/libjpeg
    14 changes: 14 additions & 0 deletions 2-libpng
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # http://www.libpng.org/pub/png/libpng.html
    cd /usr/local/src
    curl --remote-name --location http://download.sourceforge.net/libpng/libpng-1.6.18.tar.gz

    tar -xzvf libpng-1.6.18.tar.gz
    cd libpng-1.6.18

    apt-get install zlib1g zlib1g-dev -y

    ./configure --prefix=/usr/local/libpng-1.6.18
    make
    make install

    ln -s /usr/local/src/libpng-1.6.18 /usr/local/libpng
    12 changes: 12 additions & 0 deletions 3-libtiff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # http://www.remotesensing.org/libtiff/
    cd /usr/local/src
    curl --remote-name http://download.osgeo.org/libtiff/tiff-4.0.4.tar.gz

    tar -xzvf tiff-4.0.4.tar.gz
    cd tiff-4.0.4

    ./configure --prefix=/usr/local/libtiff-4.0.4
    make
    make install

    ln -s /usr/local/src/tiff-4.0.4 /usr/local/libtiff
    16 changes: 16 additions & 0 deletions 4-graphicsmagick
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    # taken from http://mac-dev-env.patrickbougie.com/graphicsmagick/
    cd /usr/local/src
    curl --remote-name --location http://download.sourceforge.net/graphicsmagick/GraphicsMagick-1.3.21.tar.gz

    tar -xzvf GraphicsMagick-1.3.21.tar.gz
    cd GraphicsMagick-1.3.21

    ./configure \
    LDFLAGS="-L/usr/local/libjpeg/lib -L/usr/local/libpng/lib -L/usr/local/libtiff/lib" \
    CPPFLAGS="-I/usr/local/libjpeg/include -I/usr/local/libpng/include -I/usr/local/libtiff/include" \
    --prefix=/usr/local/graphicsmagick-1.3.21

    make
    make install

    ln -s graphicsmagick-1.3.21 /usr/local/graphicsmagick