zlib 1.2.3

This commit is contained in:
Tom G. Christensen 2008-04-20 13:55:30 +00:00 committed by tgc
parent 1fab800bc5
commit 173e8ead74
4 changed files with 121 additions and 0 deletions

69
zlib/build.sh Executable file
View File

@ -0,0 +1,69 @@
#!/bin/bash
#
# This is a generic build.sh script
# It can be used nearly unmodified with many packages
#
# build.sh helper functions
. ${BUILDPKG_BASE}/scripts/build.sh.functions
#
###########################################################
# Check the following 4 variables before running the script
topdir=zlib
version=1.2.3
pkgver=3
source[0]=$topdir-$version.tar.bz2
# If there are no patches, simply comment this
#patch[0]=
# Source function library
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
# Global settings
configure_args='--shared --prefix=$prefix'
export LDSHARED="gcc -shared -R ${prefix}/${_libdir} -Wl,-h,libz.so.1"
shortroot=1
reg prep
prep()
{
generic_prep
}
reg build
build()
{
generic_build
}
reg check
check()
{
setdir source
${__make} test
}
reg install
install()
{
generic_install prefix
doc README
docs_for zlib-devel ChangeLog algorithm.txt minigzip.c example.c FAQ
# ${__mv} ${stagedir}${prefix}/share/${_mandir} ${stagedir}${prefix}
}
reg pack
pack()
{
generic_pack
}
reg distclean
distclean()
{
clean distclean
}
###################################################
# No need to look below here
###################################################
build_sh $*

1
zlib/meta/depend Normal file
View File

@ -0,0 +1 @@
TGCzlibd zlib auto

24
zlib/meta/pkgdef Normal file
View File

@ -0,0 +1,24 @@
[zlib]
pkgname="${pkgprefix}${topdir}"
name="$topdir - The zlib compression and decompression library"
pkgcat="system"
pkgvendor="http//www.zlib.org"
pkgdesc="Data compression library"
pkgver="$pkgver"
files(-,root,bin)
default_docs
$_libdir/*.so.*
[zlib-devel]
pkgname="${pkgprefix}${topdir}d"
name="${topdir}-devel - Development support for zlib"
pkgcat="system"
pkgvendor="http//www.zlib.org"
pkgdesc="Data compression library"
pkgver="$pkgver"
files(-,root,bin)
default_docs
$_libdir/*.so
$_mandir/man3
$_includedir

27
zlib/meta/relnotes Normal file
View File

@ -0,0 +1,27 @@
PACKAGE DETAILS
---------------
Name: %%PKGNAME%%
Version: %%SOURCE_AND_VER%%
Vendor: %%VENDOR%%
Packager: %%PKGEDBY%%
Source (sha1sum):
%%SOURCE_SHA1SUM%%
BUILD DETAILS
-------------
Compiler:
%%COMPILER%%
Environment:
%%ENVIRONMENT%%
Configure:
%%CONFIGURE%%
KNOWN DEPENDENCIES
------------------
%%DEPENDENCIES%%
ERRORS/MISCELLANEOUS
--------------------