1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Convert to new options framework.

This commit is contained in:
Stephen Montgomery-Smith 2012-06-03 20:58:28 +00:00
parent 46e9ab0ca5
commit 59d6bace41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=298156

View File

@ -30,6 +30,8 @@ RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
# precision.
OPTIONS= 387 "Use 387 instead of SSE FPU" Off
.include <bsd.port.options.mk>
PLIST_FILES= bin/sage
USE_FORTRAN= yes
USE_TK= yes
@ -50,8 +52,6 @@ run-autotools:
do-configure:
@${DO_NADA}
.include <bsd.port.pre.mk>
# Optimization flags will be defined by the source
CFLAGS:= ${CFLAGS:C/^-O.*$//}
FFLAGS:= ${CFLAGS:C/^-O.*$//}
@ -67,20 +67,6 @@ LATEST_LINK= sage-math # Conflicts with graphics/sage.
# The following is needed for the lapack subpackage.
MAKE_ARGS+= ARCH="${AR}"
.if ${OSVERSION} < 701106
BROKEN= POSIX semaphores are required, and the support only works in FreeBSD 7-STABLE and later
.endif
.if defined(WITH_387) && ${ARCH} == amd64
FPM_FLAG= -mfpmath=387
.else
FPM_FLAG=
.endif
.if !defined(DISABLE_MAKE_JOBS)
MAKE_ENV+= MAKE="make -j${MAKE_JOBS_NUMBER}"
.endif
post-patch:
# Create the wrappers for the compiler invokations.
@${MKDIR} ${WRKSRC}/local/bin
@ -174,4 +160,20 @@ post-install:
@${FIND} -s ${INSTALL_SAGE_DIR} -type d -depth | \
${SED} -e 's#${PREFIX}/#@dirrm #' >> ${TMPPLIST}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 701106
BROKEN= POSIX semaphores are required, and the support only works in FreeBSD 7-STABLE and later
.endif
.if defined(WITH_387) && ${ARCH} == amd64
FPM_FLAG= -mfpmath=387
.else
FPM_FLAG=
.endif
.if !defined(DISABLE_MAKE_JOBS)
MAKE_ENV+= MAKE="make -j${MAKE_JOBS_NUMBER}"
.endif
.include <bsd.port.post.mk>