source: gs2-extensions/xpdf-tools/trunk/src/packages/CASCADE-MAKE/LIBPNG.sh@ 32251

Last change on this file since 32251 was 32251, checked in by ak19, 6 years ago
  1. Getting LIBJPEG to compile on Mac requires not passing --enable-static. On Mac too, compiling LIBJPEG also only produces .a (and no .so/.dylib) no matter what, but that happens to be what we want anyway. 2. Turning off building shared libraries (--disable-shared) for all libraries we build that are used by xpdftools, so that on Mac it hopefully chooses to link these in (which won't happen if there's a preferred dylib elsewhere, particularly on the system, which will then get linked in in preference on Macs). Still need to test these changes on Linux again.
  • Property svn:executable set to *
File size: 841 bytes
Line 
1#!/bin/bash
2
3package=libpng
4#version=-1.5.0
5version=-1.5.30
6
7progname=$0
8
9source ../cascade-make/lib/cascade-lib.bash GEXT_XPDFTOOLS ../.. $*
10
11prefix=$GEXTXPDFTOOLS_INSTALLED
12
13export CFLAGS="$CFLAGS -I$GEXTXPDFTOOLS_INSTALLED/include"
14export CPPFLAGS="$CPPFLAGS -I$GEXTXPDFTOOLS_INSTALLED/include"
15export CXXFLAGS="$CXXFLAGS -I$GEXTXPDFTOOLS_INSTALLED/include"
16export LDFLAGS="$LDFLAGS -L$GEXTXPDFTOOLS_INSTALLED/lib"
17
18echo GSDLOS = $GSDLOS
19
20opt_run_untar $force_untar $auto_untar $package $version
21
22opt_run_configure $force_config $auto_config $package $version $prefix --enable-static --disable-shared
23
24opt_run_make $compile $package $version
25opt_run_make $install $package $version "install"
26opt_run_make $clean $package $version "clean"
27opt_run_make $distclean $package $version "distclean"
28
29opt_run_tarclean $tarclean $package $version
Note: See TracBrowser for help on using the repository browser.