mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Switch over to using <bsd.cpu.mk> feature tests to enable asm
optimization. Approved by: maintainer timeout
This commit is contained in:
parent
cb00fd24ef
commit
ba0c4e667c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67404
@ -21,26 +21,17 @@ MAINTAINER= dominic_marks@btinternet.com
|
||||
|
||||
OSNAME= ${OPSYS:S/F/f/:S/N/n/:S/O/o/:S/B/b/:S/S/s/:S/D/d/}
|
||||
|
||||
.if (${ARCH} == "i386")
|
||||
.if ${MACHINE_ARCH} == "i386"
|
||||
ARCHNAME= x86
|
||||
. if ${MACHINE_CPU:Mk6}
|
||||
ALL_TARGET= ${OSNAME}-${ARCHNAME}-k6-elf
|
||||
. elif ${MACHINE_CPU:Mmmx}
|
||||
ALL_TARGET= ${OSNAME}-${ARCHNAME}-mmx-elf
|
||||
. else
|
||||
ALL_TARGET= ${OSNAME}-${ARCHNAME}-any-elf
|
||||
. endif
|
||||
.else
|
||||
ARCHNAME= ${ARCH}
|
||||
.endif
|
||||
|
||||
# could do something w/
|
||||
# if sysctl -n hw.model | grep AMD >/dev/null ; then echo AMD ; fi
|
||||
.if defined(HAVE_K6)
|
||||
ALL_TARGET= ${OSNAME}-${ARCHNAME}-k6-BINFMT
|
||||
.elif defined(HAVE_MMX)
|
||||
ALL_TARGET= ${OSNAME}-${ARCHNAME}-mmx-BINFMT
|
||||
.else
|
||||
ALL_TARGET= ${OSNAME}-${ARCHNAME}-any-BINFMT
|
||||
.endif
|
||||
|
||||
.if ${PORTOBJFORMAT} == "elf"
|
||||
ALL_TARGET:= ${ALL_TARGET:S/BINFMT$/${PORTOBJFORMAT}/}
|
||||
.else
|
||||
ALL_TARGET:= ${ALL_TARGET:S/BINFMT$/a.out/}
|
||||
ARCHNAME= ${MACHINE_ARCH}
|
||||
.endif
|
||||
|
||||
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
||||
|
Loading…
Reference in New Issue
Block a user