diff options
author | stephen <stephen@FreeBSD.org> | 2012-06-04 04:58:28 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2012-06-04 04:58:28 +0800 |
commit | 32479e324bfe8e25e2c7efa8c0199ec7f9279c14 (patch) | |
tree | fb5e4a4b0a94ba4e57714a7ef592cf6bba4b99f2 /math | |
parent | 0a710f368469e3e4eae0e43e8df218c8a9983268 (diff) | |
download | freebsd-ports-gnome-32479e324bfe8e25e2c7efa8c0199ec7f9279c14.tar.gz freebsd-ports-gnome-32479e324bfe8e25e2c7efa8c0199ec7f9279c14.tar.zst freebsd-ports-gnome-32479e324bfe8e25e2c7efa8c0199ec7f9279c14.zip |
- Convert to new options framework.
Diffstat (limited to 'math')
-rw-r--r-- | math/sage/Makefile | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/math/sage/Makefile b/math/sage/Makefile index 7bfd2f40b4e7..0b03aa102f3c 100644 --- a/math/sage/Makefile +++ b/math/sage/Makefile @@ -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> |