.if ${UNAME_M} == "x86_64"
ARCH = amd64
+.elif ${UNAME_M} == "macppc"
+ARCH = powerpc
.endif
NAME != cat main.c | grep "const char \*sofname" | awk '{print $$5}' | \
.endif
CNFPREFIX = /etc
-.if ${UNAME_S} == "Haiku"
+.if ${OS} == "haiku"
CNFPREFIX = ${DATAPREFIX}
-.elif ${UNAME_S} == "FreeBSD" || ${UNAME_S} == "NetBSD" || ${UNAME_S} == "Dragonfly"
+.elif ${OS} == "freebsd" || ${OS} == "netbsd" || ${OS} == "dragonfly"
CNFPREFIX = ${PREFIX}/etc
.endif