void-packages/srcpkgs/ucspi-tcp6/template

43 lines
1.3 KiB
Bash
Raw Normal View History

2020-02-27 15:24:46 +00:00
# Template file for 'ucspi-tcp6'
pkgname=ucspi-tcp6
2020-03-29 12:46:44 +00:00
version=1.11.4
2020-02-27 15:24:46 +00:00
revision=1
create_wrksrc=yes
build_wrksrc="net/${pkgname}/${pkgname}-${version}/src"
build_style=gnu-makefile
hostmakedepends="fehQlibs"
makedepends="fehQlibs"
short_desc="Command-line tools for building TCP/IP client-server applications"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Public Domain"
homepage="https://www.fehcom.de/ipnet/ucspi-tcp6.html"
distfiles="http://www.fehcom.de/ipnet/ucspi-tcp6/ucspi-tcp6-${version}.tgz"
2020-03-29 12:46:44 +00:00
checksum=612e37b6c0c7ceda02d1dfd6a6f17a06c01e00ce62f956f8db13f6bb15c4989a
2020-02-27 15:24:46 +00:00
disable_parallel_build="ad hoc build system breaks parallel build"
conflicts="ucspi-tcp>=0"
pre_build() {
pwd >home
2020-03-29 12:46:44 +00:00
echo "${CC} ${CFLAGS} -I${XBPS_CROSS_BASE}/usr/include/fehQlibs" >../conf-cc
2020-02-27 15:24:46 +00:00
echo "${CC} ${LDFLAGS}" >../conf-ld
echo "/usr" >../conf-home
if [ "$CROSS_BUILD" ]; then
2020-03-29 12:46:44 +00:00
echo "${BUILD_CC} ${BUILD_CFLAGS} -I/usr/include/fehQlibs -c "'"$@"' >compile-host
2020-02-27 15:24:46 +00:00
echo 'main="$1"; shift; '"${BUILD_CC} ${BUILD_LDFLAGS}"'-o "$main" "$main.o" "$@"' >load-host
chmod +x compile-host load-host
sed -i -e 's/compile/&-host/g; s/load/&-host/g' choose.sh
sed -i -e '/chkshsgr/s/compile/&-host/g; /chkshsgr/s/load/&-host/g' Makefile
fi
}
do_install() {
for f in $(cat ../package/commands-base); do
vbin $f
done
for f in ../man/*.1; do
vman $f
done
}