aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/waifu2x-converter-cpp/Makefile
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2018-01-01 21:42:54 +0800
committerJan Beich <jbeich@FreeBSD.org>2018-01-01 21:42:54 +0800
commit9d1dc2407c8c73dc5926948037e09b3d55402ec2 (patch)
tree38db9f1d8ee32af4ab5c52ef2f7c2b9aef2a174d /graphics/waifu2x-converter-cpp/Makefile
parent703d0747022749b4474a5ea5bda11e2ee9768aec (diff)
downloadfreebsd-ports-gnome-9d1dc2407c8c73dc5926948037e09b3d55402ec2.tar.gz
freebsd-ports-gnome-9d1dc2407c8c73dc5926948037e09b3d55402ec2.tar.zst
freebsd-ports-gnome-9d1dc2407c8c73dc5926948037e09b3d55402ec2.zip
Improve CMake style in my ports
- Convert to CMAKE_{ON,OFF} helpers - Convert to _CMAKE_BOOL option helpers - android-file-transfer: Share _CMAKE_BOOL via _IMPLIES - Annotate types
Diffstat (limited to 'graphics/waifu2x-converter-cpp/Makefile')
-rw-r--r--graphics/waifu2x-converter-cpp/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/waifu2x-converter-cpp/Makefile b/graphics/waifu2x-converter-cpp/Makefile
index 1b80d75f2a3c..0c4080673fa8 100644
--- a/graphics/waifu2x-converter-cpp/Makefile
+++ b/graphics/waifu2x-converter-cpp/Makefile
@@ -23,9 +23,9 @@ GH_ACCOUNT= tanakamura
USES= cmake compiler:c++11-lib dos2unix
DOS2UNIX_GLOB= *.cpp *.hpp
-CMAKE_ARGS= -DOPENCV_PREFIX="${LOCALBASE}" \
- -DOpenCL_LIBRARY="${LOCALBASE}/lib/libOpenCL.so" \
- -DINSTALL_MODELS=on
+CMAKE_ARGS= -DOPENCV_PREFIX:PATH="${LOCALBASE}" \
+ -DOpenCL_LIBRARY:FILEPATH="${LOCALBASE}/lib/libOpenCL.so"
+CMAKE_ON= INSTALL_MODELS
CFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \
-D_DECLARE_C99_LDBL_MATH # XXX ports/193528
LDFLAGS+= -Wl,--as-needed # avoid overlinking (opencv deps)
@@ -40,8 +40,8 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS SIMD
OPTIONS_DEFAULT=SIMD
-DOCS_CMAKE_ON= -DINSTALL_DOCS=on
-SIMD_CMAKE_OFF= -DARMOPT=off -DX86OPT=off
+DOCS_CMAKE_BOOL=INSTALL_DOCS
+SIMD_CMAKE_OFF= -DARMOPT:BOOL=false -DX86OPT:BOOL=false
post-patch:
@${REINPLACE_CMD} -e '/Darwin/,/FLAGS_RELEASE/d' \