-
-
Save AlisterH/15d63961e303e29778fa18e3acf2cbfe to your computer and use it in GitHub Desktop.
| export CFLAGS="-m32" | |
| export CXXFLAGS="-m32" | |
| export LDFLAGS="-m32 -L/opt/csw/lib -R/opt/csw/lib" | |
| export PKG_CONFIG_PATH=/opt/csw/lib/pkgconfig |
wget https://download.sourceforge.net/libpng/libpng-1.5.30.tar.gz
gunzip libpng-1.5.30.tar.gz
tar -xf libpng-1.5.30.tar
cd libpng-1.5.30
./configure --prefix=/opt/csw
make
make install
AC_ARG_VAR([MAKE], [make utility to use])
if test -z "$MAKE"; then
dnl User did not override; try to find gmake first
AC_CHECK_PROGS([MAKE], [gmake make], [no])
fi
+AC_ARG_VAR([MAKE], [make utility to use])
+
+if test -z "$MAKE"; then
+dnl User did not override; try to find gmake first
+AC_CHECK_PROGS([MAKE], [gmake make], [no])
+fi
AC_ARG_VAR([MAKE], [make utility to use])
if test -z "$MAKE"; then
dnl User did not override; try to find gmake first
AC_CHECK_PROGS([MAKE], [gmake make])
fi
if test "$MAKE" = "no"; then
AC_MSG_ERROR([Make utility not found. Please install GNU Make and try again>
else
case "$MAKE" in
gmake|GNU)
AC_MSG_NOTICE([Using GNU Make: $MAKE])
;;
*)
AC_MSG_WARN([WARNING: You are not using GNU Make. Make may not work>
;;
esac
fi
AC_ARG_VAR([MAKE], [make utility to use])
if test -z "$MAKE"; then
dnl User did not override; try to find gmake first
AC_CHECK_PROGS([MAKE], [gmake make])
fi
if test "$MAKE" = "no"; then
AC_MSG_ERROR([Make utility not found. Please install GNU Make and try again>
else
case "$MAKE" in
gmake|GNU)
AC_MSG_NOTICE([Using GNU Make: $MAKE])
;;
*)
AC_MSG_WARN([WARNING: You are not using GNU Make. Make may not work>
;;
esac
fi
echo 'int main() { return 0; }' | cc -x c - -lmlib -o /tmp/test_mlib && echo "mlib found" || echo "mlib NOT found"
wget https://download.gnome.org/sources/gdk-pixbuf/2.28/gdk-pixbuf-2.28.2.tar.xz
tar xf gdk-pixbuf-2.28.2.tar.xz
cd gdk-pixbuf-2.28.2
mkdir build && cd build
export PKG_CONFIG_PATH=
export LDFLAGS="-lm"
export CPPFLAGS=""
../configure --prefix=/opt/csw --with‑out‑mlib
gmake
gmake install
export PATH=/opt/csw/bin:$PATH
export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig:$PKG_CONFIG_PATH
wget https://download.gnome.org/sources/glib/2.28/glib-2.28.8.tar.xz
tar xf glib-2.28.8.tar.xz
cd glib-2.28.8
Configure to install locally
./configure --prefix=/opt/local --enable-static --disable-shared
gmake
gmake install
/opt/csw/bin/pkgutil -i libpng15_dev libpng15_15