Browse Source

zlib: fixed cross-compiling and simplified package conf

stable/0.6
Christian Wiese 11 years ago
parent
commit
063699720d
  1. 20
      archiver/zlib/zlib.conf

20
archiver/zlib/zlib.conf

@ -14,20 +14,10 @@
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
prefix=
set_confopt
zlib_pm() {
# create a static version
make libz.a
cp -v libz.a $root/$libdir
cp -v doc/algorithm.txt $root/$docdir
}
if [ "$SDECFG_STATIC" = "0" ] ; then
var_insert confopt " " "--shared"
hook_add postmake 3 "zlib_pm"
if [ "$SDECFG_STATIC" = "1" ] ; then
var_insert confopt " " "--static"
fi
var_append makeinstopt " " "prefix=/$prefix"
var_append makeinstopt " " "mandir=$root$mandir"
var_append extraconfopt ' ' "--sharedlibdir=/lib"
makeinstopt="install DESTDIR=$root"

Loading…
Cancel
Save