dhcp: use XBPS_TARGET_NEED_ATOMIC

This commit is contained in:
Jürgen Buchmüller 2020-02-07 21:19:23 +01:00
parent 5bed028584
commit 008d7a6a68

View file

@ -12,10 +12,9 @@ homepage="https://www.isc.org/downloads/dhcp"
distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
checksum=1a7ccd64a16e5e68f7b5e0f527fd07240a2892ea53fe245620f4f5f607004521
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv[56]*|ppc*) makedepends+=" libatomic-devel";;
esac
if [ "$XBPS_TARGET_NEED_ATOMIC" ]; then
makedepends+=" libatomic-devel"
fi
disable_parallel_build=yes
conf_files="/etc/dhcpd.conf"
@ -23,12 +22,9 @@ conf_files="/etc/dhcpd.conf"
make_dirs="/var/lib/dhcp 0755 root root"
post_patch() {
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
armv[56]*|ppc*|mips*)
sed -i "/LIBATOMIC=/s/$/-latomic/" configure.ac
;;
esac
if [ "$XBPS_TARGET_NEED_ATOMIC" ]; then
vsed -i "/LIBATOMIC=/s/$/-latomic/" configure.ac
fi
}
pre_configure() {