From c5751489285f8fccd49fa88ea082e462c085d950 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 7 Feb 2013 05:23:13 +0100 Subject: [PATCH] libtirpc: disable static; cross build support. --- srcpkgs/libtirpc/libtirpc-devel.template | 8 ++---- srcpkgs/libtirpc/template | 33 +++++++++++------------- 2 files changed, 17 insertions(+), 24 deletions(-) diff --git a/srcpkgs/libtirpc/libtirpc-devel.template b/srcpkgs/libtirpc/libtirpc-devel.template index 47af2631c6..4bd8547c76 100644 --- a/srcpkgs/libtirpc/libtirpc-devel.template +++ b/srcpkgs/libtirpc/libtirpc-devel.template @@ -1,15 +1,11 @@ # Template file for 'libtirpc-devel'. # -depends="libgssglue-devel libtirpc" +depends="libgssglue-devel libtirpc>=${version}" short_desc="${short_desc} - development files" -long_desc="${long_desc} - - This package contains files for development, headers, static libs, etc." - +noarch=yes do_install() { vmove usr/include usr vmove usr/lib/pkgconfig usr/lib - vmove "usr/lib/*.a" usr/lib vmove usr/share/man/man3 usr/share/man } diff --git a/srcpkgs/libtirpc/template b/srcpkgs/libtirpc/template index 540afb8000..7765043a6a 100644 --- a/srcpkgs/libtirpc/template +++ b/srcpkgs/libtirpc/template @@ -1,34 +1,31 @@ # Template file for 'libtirpc' pkgname=libtirpc version=0.2.2 +revision=2 patch_args="-Np1" -homepage="http://libtirpc.sourceforge.net/" -distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2" +conf_files="/etc/netconfig" +subpackages="$pkgname-devel" build_style=gnu-configure -configure_args="--enable-gss" +configure_args="--enable-gss --disable-static" makedepends="automake pkg-config libgssglue-devel" -revision=1 +crossmakedepends="libgssglue-devel" short_desc="Transport Independent RPC library (SunRPC replacement)" maintainer="Juan RP " license="BSD" +homepage="http://libtirpc.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2" checksum=f05eb17c85d62423858b8f74512cfe66a9ae1cedf93f03c2a0a32e04f0a33705 -long_desc=" - This package contains SunLib's implementation of transport-independent - RPC (TI-RPC) documentation. This library forms a piece of the base of Open Network - Computing (ONC), and is derived directly from the Solaris 2.3 source. - - TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V - Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface - (XTI). TI-RPC is on-the-wire compatible with the TS-RPC, which is supported - by almost 70 vendors on all major operating systems. TS-RPC source code - (RPCSRC 4.0) remains available from several internet sites." - -conf_files="/etc/netconfig" -subpackages="$pkgname-devel" - pre_configure() { + sed -i "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" configure.ac autoreconf -fi + # XXX fix cross pkg to provide these headers. + if [ -n "$XBPS_CROSS_TRIPLET" ]; then + for f in nis nis_tags nislib; do + ln -fs /usr/include/rpcsvc/${f}.h \ + /usr/$XBPS_CROSS_TRIPLET/include/rpcsvc/${f}.h + done + fi } post_install() {