From e81d090a1f71255bee07aa0bc7504e9ecffd3952 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Tue, 10 Dec 2019 20:55:22 +0000 Subject: [PATCH] Do not build anything without DOC/EXAMPLE selected. PR: 242158 Reported by: sdalu (at) sdalu.com --- graphics/cimg/Makefile | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/graphics/cimg/Makefile b/graphics/cimg/Makefile index d589e3ecac3c..c9fdffabfd2e 100644 --- a/graphics/cimg/Makefile +++ b/graphics/cimg/Makefile @@ -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 + +.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 - -.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