|
|
|
@ -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" |
|
|
|
|