aboutsummaryrefslogtreecommitdiffstats
path: root/math/sdpa
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-08-08 11:47:26 +0800
committervanilla <vanilla@FreeBSD.org>2014-08-08 11:47:26 +0800
commitfef9225db12b4f818d06759cababffe1a38e6594 (patch)
tree292d41bf6fae45535207f88fbfd43121c5deb697 /math/sdpa
parent840969248b794885c75e65a821b5caaf18c7de59 (diff)
downloadfreebsd-ports-gnome-fef9225db12b4f818d06759cababffe1a38e6594.tar.gz
freebsd-ports-gnome-fef9225db12b4f818d06759cababffe1a38e6594.tar.zst
freebsd-ports-gnome-fef9225db12b4f818d06759cababffe1a38e6594.zip
Stagify.
Diffstat (limited to 'math/sdpa')
-rw-r--r--math/sdpa/Makefile22
-rw-r--r--math/sdpa/pkg-plist4
2 files changed, 11 insertions, 15 deletions
diff --git a/math/sdpa/Makefile b/math/sdpa/Makefile
index a01a5639d530..8202d585d242 100644
--- a/math/sdpa/Makefile
+++ b/math/sdpa/Makefile
@@ -14,18 +14,16 @@ COMMENT= Very efficient SDP (semidefinite programming) solver
USES= fortran gmake
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
SRCDATE= 20090729
MANUALFILE= sdpa7-manual.pdf
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}.${PORTVERSION}.src
+OPTIONS_DEFINE= DOCS
.if exists(${LOCALBASE}/lib/libgoto2.so)
-WITH_BLAS?= gotoblas
+WITH_BLAS?= gotoblas
.elif exists(${LOCALBASE}/lib/libatlas.so)
-WITH_BLAS?= atlas
+WITH_BLAS?= atlas
.else
WITH_BLAS?= reference
.endif
@@ -56,12 +54,10 @@ post-patch:
${WRKSRC}/Makefile.in
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sdpa ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/param.sdpa ${DATADIR}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/${MANUALFILE} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/sdpa ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/param.sdpa ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${MANUALFILE} ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/math/sdpa/pkg-plist b/math/sdpa/pkg-plist
index c76be21a4052..a748248baabc 100644
--- a/math/sdpa/pkg-plist
+++ b/math/sdpa/pkg-plist
@@ -1,5 +1,5 @@
bin/sdpa
-share/sdpa/param.sdpa
-@dirrm share/sdpa
+%%DATADIR%%/param.sdpa
+@dirrm %%DATADIR%%
%%PORTDOCS%%%%DOCSDIR%%/%%MANUALFILE%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%