aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--math/gracetmpl/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/math/gracetmpl/Makefile b/math/gracetmpl/Makefile
index f51ab8eebce9..d8cc2be153d4 100644
--- a/math/gracetmpl/Makefile
+++ b/math/gracetmpl/Makefile
@@ -8,13 +8,13 @@
PORTNAME= gracetmpl
PORTVERSION= 0.3.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= math print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-BUILD_DEPNEDS= ${PYTHON_SITELIBDIR}/Numeric.pth:${PORTSDIR}/math/py-numeric
-RUN_DEPNEDS= ${PYTHON_SITELIBDIR}/Numeric.pth:${PORTSDIR}/math/py-numeric
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric.pth:${PORTSDIR}/math/py-numeric
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric.pth:${PORTSDIR}/math/py-numeric
MAINTAINER= ports@FreeBSD.org
COMMENT= Provide an easy way to use existing grace-files as a template
@@ -23,11 +23,16 @@ USE_REINPLACE= yes
USE_GETOPT_LONG= yes
USE_PYTHON= yes
USE_GMAKE= yes
-CFLAGS+= "${CPPFLAGS}"
-MAKE_ENV= LDFLAGS="${LDFLAGS}"
ALL_TARGET= all pythonwrap
INSTALL_TARGET= install python_install
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 500041
+CFLAGS+= "${CPPFLAGS}"
+MAKE_ENV= LDFLAGS="${LDFLAGS}"
+.endif
+
post-extract:
@${CP} -f ${WRKSRC}/Makefile.defs.tmpl ${WRKSRC}/Makefile.defs
@@ -44,4 +49,4 @@ post-install:
@${CP} ${WRKSRC}/doc/html/* ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>