$NetBSD: patch-src_core_CMakeLists.txt,v 1.3 2021/03/01 00:03:35 gdt Exp $

Add ApplicationServices framework
Use Q_WS_MAC to conditionalize frameworks
This sort-of matches Q_OS_MACX conditionals in main.cpp and qgisapp.cpp
but more importantly avoids using APPLE which we overwrite in the
pkgsrc Makefile to disable the MAC application bundle

--- src/core/CMakeLists.txt.orig	2021-02-19 12:09:21.000000000 +0000
+++ src/core/CMakeLists.txt
@@ -1713,7 +1713,7 @@ if (APPLE)
   target_link_libraries(qgis_core ${LIBTASN1_LIBRARY})
 endif()
 
-if (APPLE AND NOT IOS)
+if (Q_WS_MAC)
   target_link_libraries(qgis_core qgis_native)
 endif()
 
