diff options
author | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2012-06-03 20:58:28 +0000 |
---|---|---|
committer | Stephen Montgomery-Smith <stephen@FreeBSD.org> | 2012-06-03 20:58:28 +0000 |
commit | 59d6bace41f9c2f606fa9b4842a0f079fb859881 (patch) | |
tree | 3c1f2b1bcaba74fda3c1611afa21da7b51fb42c6 /math/sage/Makefile | |
parent | 46e9ab0ca5e504d3509678b4d43a41d938650e75 (diff) |
Notes
Diffstat (limited to 'math/sage/Makefile')
-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> |