diff options
author | adamw <adamw@FreeBSD.org> | 2014-07-15 23:00:15 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-07-15 23:00:15 +0800 |
commit | 7054e5a3d0c0a0866178f2b49e4a92354ea5de4e (patch) | |
tree | 385eabfb4b0bc77f7945e831fbf715cda6489be5 /cad/calculix/Makefile | |
parent | e756ffaad92a83a94f00bab8c7770dce7a951f40 (diff) | |
download | freebsd-ports-gnome-7054e5a3d0c0a0866178f2b49e4a92354ea5de4e.tar.gz freebsd-ports-gnome-7054e5a3d0c0a0866178f2b49e4a92354ea5de4e.tar.zst freebsd-ports-gnome-7054e5a3d0c0a0866178f2b49e4a92354ea5de4e.zip |
Add DOCS to OPTIONS_DEFINE to ports that check for PORT_OPTIONS:MDOCS.
Diffstat (limited to 'cad/calculix/Makefile')
-rw-r--r-- | cad/calculix/Makefile | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/cad/calculix/Makefile b/cad/calculix/Makefile index a704478c1414..48a60dcf6908 100644 --- a/cad/calculix/Makefile +++ b/cad/calculix/Makefile @@ -7,14 +7,8 @@ PORTREVISION= 3 CATEGORIES= cad MASTER_SITES= http://www.dhondt.de/ DISTFILES= ${DIST_SOURCES} -.ifdef WITH_EXAMPLES -DISTFILES+= ${DIST_EXAMPLES} -.endif DIST_SUBDIR= calculix EXTRACT_ONLY= ${DIST_SOURCES} -.ifdef WITH_EXAMPLES -EXTRACT_ONLY+= ${DIST_EXAMPLES} -.endif MAINTAINER= maho@FreeBSD.org COMMENT= Three-Dimensional Structural Finite Element Program @@ -46,12 +40,17 @@ USE_GL= glut BROWSER?= firefox PSVIEWER?= gv -OPTIONS_DEFINE= METIS METIS_EDF +OPTIONS_DEFINE= ATLAS METIS METIS_EDF DOCS EXAMPLES OPTIONS_DEFAULT=METIS .include <bsd.port.options.mk> -.if $(PORT_OPTIONS:MDOCS) +.if ${PORT_OPTIONS:MEXAMPLES} +DISTFILES+= ${DIST_EXAMPLES} +EXTRACT_ONLY+= ${DIST_EXAMPLES} +.endif + +.if ${PORT_OPTIONS:MDOCS} DISTFILES+= ${DIST_HTM} ${DIST_PS} ${DIST_PDF} EXTRACT_ONLY+= ${DIST_HTM} ccx_${PORTVERSION}.ps${EXTRACT_SUFX} .endif @@ -66,7 +65,8 @@ LIB_DEPENDS+= libmetis.so:${PORTSDIR}/math/metis-edf .if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS) WITH_ATLAS= yes .endif -.if defined(WITH_ATLAS) + +.if ${PORT_OPTIONS:MATLAS} LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas BLAS_LIBS= -lf77blas LAPACK_LIBS= -lalapack -lcblas @@ -85,17 +85,12 @@ CFLAGS+= -fpic FFLAGS+= -fpic .endif -.if !defined(WITH_EXAMPLES) +.if empty(PORT_OPTIONS:MEXAMPLES) PLIST_SUB= WITH_EXAMPLES="@comment " .else PLIST_SUB= WITH_EXAMPLES="" .endif -.ifndef (WITH_EXAMPLES) -pre-everything:: - @${ECHO} "You can define WITH_EXAMPLES=yes to install example files" -.endif - pre-build: @${REINPLACE_CMD} -e 's+%%FC%%+${FC}+g ; s+%%CC%%+${CC}+g ; \ s+%%BLAS_LIBS%%+${BLAS_LIBS}+ ; \ @@ -131,7 +126,7 @@ do-install: @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/cgx_${PORTVERSION}.pdf \ ${STAGEDIR}${DOCSDIR} .endif -.ifdef WITH_EXAMPLES +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @(cd ${WRKSRC}/${CGX_VER}/examples && ${COPYTREE_SHARE} . \ ${STAGEDIR}${EXAMPLESDIR}) |