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. # GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END --- # --- SDE-COPYRIGHT-NOTE-END ---
prefix= if [ "$SDECFG_STATIC" = "1" ] ; then
set_confopt var_insert confopt " " "--static"
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"
fi fi
var_append makeinstopt " " "prefix=/$prefix" var_append extraconfopt ' ' "--sharedlibdir=/lib"
var_append makeinstopt " " "mandir=$root$mandir"
makeinstopt="install DESTDIR=$root"

Loading…
Cancel
Save