summaryrefslogtreecommitdiff
path: root/math/reduce
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2016-02-07 13:21:14 +0000
committerJohn Marino <marino@FreeBSD.org>2016-02-07 13:21:14 +0000
commitbd6523c890244e9fd39bf5266c383d4193aa7187 (patch)
treee6f338925d6013cb0a912d89a647fbd12af824c7 /math/reduce
parentaudio/stymulator: document ncurses rqmt (USES+=ncurses), respect LDFLAGS (diff)
math/reduce: document ncurses requirement (USES+=ncurses)
while here: * simplify TARGET_SDIR so inclusion not required * add --build configure argument (from dports, no effect on fbsd) approved by: infrastructure blanket
Notes
Notes: svn path=/head/; revision=408406
Diffstat (limited to 'math/reduce')
-rw-r--r--math/reduce/Makefile11
1 files changed, 3 insertions, 8 deletions
diff --git a/math/reduce/Makefile b/math/reduce/Makefile
index 4d15dd02cc09..081bbc92cd27 100644
--- a/math/reduce/Makefile
+++ b/math/reduce/Makefile
@@ -14,8 +14,9 @@ LICENSE= BSD2CLAUSE
RUN_DEPENDS= gnuplot:${PORTSDIR}/math/gnuplot
-USES= autoreconf:build gmake tar:bzip2
-
+USES= autoreconf:build gmake ncurses tar:bzip2
+TARGET_SDIR= ${ARCH:S/amd64/x86_64/}-unknown-${OPSYS:tl}${OSREL}
+CONFIGURE_ARGS= --build=${TARGET_SDIR}
WRKSRC= ${WRKDIR}/${DISTNAME}
# Avoid GNU_CONFIGURE as it breaks staging
@@ -47,12 +48,6 @@ LDFLAGS+= `freetype-config --libs`
ONLY_FOR_ARCHS= amd64
.endif
-.if ${ARCH} == "amd64"
-TARGET_SDIR= x86_64-unknown-${OPSYS:tl}${OSREL}
-.else
-TARGET_SDIR= ${ARCH}-unknown-${OPSYS:tl}${OSREL}
-.endif
-
.if ${PORT_OPTIONS:MCSL}
REDUCE_BINS= ${WRKSRC}/cslbuild/${TARGET_SDIR}
.else