Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
example udev now has a subpkgs called "libgudev". Previously
subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.
And more that I forgot because it's a mega-commit that I've been
working for some days already...
--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
This commit is contained in:
2
srcpkgs/zlib/depends
Normal file
2
srcpkgs/zlib/depends
Normal file
@@ -0,0 +1,2 @@
|
||||
abi_depends=">=1.2.3"
|
||||
api_depends="${abi_depends}"
|
||||
25
srcpkgs/zlib/patches/configure_build_all_libs.diff
Normal file
25
srcpkgs/zlib/patches/configure_build_all_libs.diff
Normal file
@@ -0,0 +1,25 @@
|
||||
--- configure.orig 2008-10-26 00:36:04.000000000 +0200
|
||||
+++ configure 2008-10-26 00:36:46.000000000 +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
|
||||
+ LIBS="libz.a $SHAREDLIBV"
|
||||
+ echo Building static and shared library $SHAREDLIBV with $CC.
|
||||
fi
|
||||
if test $shared -eq 0; then
|
||||
LDSHARED="$CC"
|
||||
20
srcpkgs/zlib/template
Normal file
20
srcpkgs/zlib/template
Normal file
@@ -0,0 +1,20 @@
|
||||
# Template build file for 'zlib'
|
||||
pkgname=zlib
|
||||
version=1.2.3
|
||||
distfiles="http://www.zlib.net/$pkgname-$version.tar.bz2"
|
||||
build_style=configure
|
||||
CFLAGS="-fPIC -DPIC"
|
||||
configure_args="-s"
|
||||
make_install_args="prefix=$XBPS_DESTDIR/$pkgname-$version/usr"
|
||||
short_desc="A compression/decompression 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."
|
||||
|
||||
base_chroot=yes
|
||||
subpackages="zlib-devel"
|
||||
|
||||
Add_dependency run glibc
|
||||
15
srcpkgs/zlib/zlib-devel.template
Normal file
15
srcpkgs/zlib/zlib-devel.template
Normal file
@@ -0,0 +1,15 @@
|
||||
# Template file for 'zlib-devel'.
|
||||
#
|
||||
short_desc="${short_desc} (development files)"
|
||||
long_desc="${long_desc}
|
||||
|
||||
This package contains files for development, headers, static libs, etc."
|
||||
|
||||
Add_dependency run zlib
|
||||
|
||||
do_install()
|
||||
{
|
||||
mkdir -p ${DESTDIR}/usr/lib
|
||||
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
|
||||
mv ${SRCPKGDESTDIR}/usr/lib/libz.*a ${DESTDIR}/usr/lib
|
||||
}
|
||||
Reference in New Issue
Block a user