mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
dhcp: use XBPS_TARGET_NEED_ATOMIC
This commit is contained in:
parent
5bed028584
commit
008d7a6a68
1 changed files with 6 additions and 10 deletions
|
@ -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"
|
distfiles="http://ftp.isc.org/isc/dhcp/${version/P/-P}/dhcp-${version/P/-P}.tar.gz"
|
||||||
checksum=1a7ccd64a16e5e68f7b5e0f527fd07240a2892ea53fe245620f4f5f607004521
|
checksum=1a7ccd64a16e5e68f7b5e0f527fd07240a2892ea53fe245620f4f5f607004521
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
if [ "$XBPS_TARGET_NEED_ATOMIC" ]; then
|
||||||
ppc64*) ;;
|
makedepends+=" libatomic-devel"
|
||||||
armv[56]*|ppc*) makedepends+=" libatomic-devel";;
|
fi
|
||||||
esac
|
|
||||||
|
|
||||||
disable_parallel_build=yes
|
disable_parallel_build=yes
|
||||||
conf_files="/etc/dhcpd.conf"
|
conf_files="/etc/dhcpd.conf"
|
||||||
|
@ -23,12 +22,9 @@ conf_files="/etc/dhcpd.conf"
|
||||||
make_dirs="/var/lib/dhcp 0755 root root"
|
make_dirs="/var/lib/dhcp 0755 root root"
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
if [ "$XBPS_TARGET_NEED_ATOMIC" ]; then
|
||||||
ppc64*) ;;
|
vsed -i "/LIBATOMIC=/s/$/-latomic/" configure.ac
|
||||||
armv[56]*|ppc*|mips*)
|
fi
|
||||||
sed -i "/LIBATOMIC=/s/$/-latomic/" configure.ac
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue