Do not build anything without DOC/EXAMPLE selected.

PR:		242158
Reported by:	sdalu (at) sdalu.com
This commit is contained in:
Thierry Thomas
2019-12-10 20:55:22 +00:00
parent 2b28a577e0
commit e81d090a1f
+11 -12
View File
@@ -23,7 +23,17 @@ USE_GITHUB= yes
GH_ACCOUNT= dtschump
GH_PROJECT= CImg
USES= compiler:c11 xorg
BUILD_WRKSRC= ${WRKSRC}/examples
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MEXAMPLES}
USES+= compiler:c11 gmake pkgconfig:build xorg
.endif
.if ${PORT_OPTIONS:MDOCS}
.if !defined(WITHOUT_LAPACK)
. if defined(WITH_ATLAS)
@@ -33,17 +43,6 @@ USES+= blaslapack
. endif
.endif
BUILD_WRKSRC= ${WRKSRC}/examples
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MEXAMPLES}
USES+= gmake pkgconfig:build
.endif
.if ${PORT_OPTIONS:MDOCS}
REINPLACE_ARGS= -i ""
LIB_DEPENDS+= libboard.so:graphics/libboard