mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add DOCS to OPTIONS_DEFINE to ports that check for PORT_OPTIONS:MDOCS.
This commit is contained in:
parent
cde80172d8
commit
195a103c5b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361936
@ -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})
|
||||
|
@ -33,6 +33,8 @@ MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=YES
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.if !defined(WITHOUT_STATIC_LIB)
|
||||
CMAKE_ARGS+= -DENABLE_BUILD_LIB=ON
|
||||
ALL_TARGET+= lib
|
||||
|
@ -28,9 +28,9 @@ SHEBANG_FILES= adm/templates/env.sh.in adm/templates/draw.sh \
|
||||
adm/start.tcl draw.sh xcode.sh env.sh custom.sh.in \
|
||||
gendoc codeblocks.sh
|
||||
|
||||
OPTIONS_DEFINE= TBB VIS
|
||||
TBB_DESC= "Build with TBB"
|
||||
VIS_DESC= "Build Visualizazion module (requires OpenGL, freetype, ftgl and gl2ps)"
|
||||
OPTIONS_DEFINE= TBB VIS DOCS
|
||||
TBB_DESC= Build with TBB
|
||||
VIS_DESC= Build Visualizazion module (requires OpenGL, freetype, ftgl and gl2ps)
|
||||
OPTIONS_DEFAULT=TBB VIS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
|
@ -22,6 +22,8 @@ USES= gmake
|
||||
|
||||
MAKE_JOBS_UNSAFE=yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
.if defined(MAINTAINER_MODE)
|
||||
USES+= fortran
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user