Added zlib-1.2.3 template.

--HG--
extra : convert_revision : e5d6e2ff7a872ee407285c4789738f00c376a28b
This commit is contained in:
Juan RP 2008-10-22 16:51:18 +02:00
parent 58c633fc53
commit 9187ce315e
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,23 @@
--- configure.orig 2008-10-22 16:47:11.902294688 +0200
+++ configure 2008-10-22 16:47:24.958840636 +0200
@@ -169,20 +169,9 @@ SHAREDLIBV=${SHAREDLIBV-"libz$shared_ext
SHAREDLIBM=${SHAREDLIBM-"libz$shared_ext.$VER1"}
if test $shared -eq 1; then
- echo Checking for shared library support...
- # we must test in two steps (cc then ld), required at least on SunOS 4.x
- if test "`($CC -c $SFLAGS $test.c) 2>&1`" = "" &&
- test "`($LDSHARED -o $test$shared_ext $test.o) 2>&1`" = ""; then
CFLAGS="$SFLAGS"
LIBS="$SHAREDLIBV"
echo Building shared library $SHAREDLIBV with $CC.
- elif test -z "$old_cc" -a -z "$old_cflags"; then
- echo No shared library support.
- shared=0;
- else
- echo 'No shared library support; try without defining CC and CFLAGS'
- shared=0;
- fi
fi
if test $shared -eq 0; then
LDSHARED="$CC"

15
templates/zlib.tmpl Normal file
View file

@ -0,0 +1,15 @@
# Template build file for 'zlib'
pkgname=zlib
version=1.2.3
patch_files="$pkgname-fix-build.diff"
distfiles="http://www.zlib.net/$pkgname-$version@.tar.bz2"
build_style=configure
CFLAGS="-fPIC -DPIC"
configure_args="-s"
short_desc="A Massively Spiffy Yet Delicately Unobtrusive Compression Library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=e3b9950851a19904d642c4dec518623382cf4d2ac24f70a76510c944330d28ca
long_desc="
This is a general purpose data compression library. All the code
is thread safe. The data format used by the library is described
by RFCs (Request for Comments) 1950 to 1952."