From c12b81001ec536c9515ae61eed5d519ffbff9507 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Fri, 8 Aug 2014 03:47:26 +0000 Subject: [PATCH] Stagify. --- math/sdpa/Makefile | 22 +++++++++------------- math/sdpa/pkg-plist | 4 ++-- 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 - 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 +.include 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%%