diff --git a/astro/stellarium/Makefile b/astro/stellarium/Makefile index e7d30c154ee..cd48c4340ee 100644 --- a/astro/stellarium/Makefile +++ b/astro/stellarium/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.76 2022/01/19 15:25:13 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.77 2022/02/07 16:11:53 sthen Exp $ COMMENT= free open source planetarium GH_TAGNAME= v0.21.3 GH_ACCOUNT= Stellarium GH_PROJECT= stellarium -REVISION= 0 +REVISION= 1 CATEGORIES= astro x11 @@ -45,6 +45,7 @@ CONFIGURE_ENV= HOME=${WRKDIR} CONFIGURE_ARGS= -DCMAKE_C_FLAGS="${CFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS} -I${LOCALBASE}/include -I${X11BASE}/include" \ -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON \ + -DENABLE_LIBGPS=0 \ -DSTELLARIUM_RELEASE_BUILD=1 PORTHOME= ${WRKDIR} diff --git a/astro/stellarium/patches/patch-CMakeLists_txt b/astro/stellarium/patches/patch-CMakeLists_txt new file mode 100644 index 00000000000..e3802da460c --- /dev/null +++ b/astro/stellarium/patches/patch-CMakeLists_txt @@ -0,0 +1,14 @@ +$OpenBSD: patch-CMakeLists_txt,v 1.7 2022/02/07 16:11:53 sthen Exp $ + +Index: CMakeLists.txt +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -572,7 +572,7 @@ IF(ENABLE_GPS) + ADD_DEFINITIONS(-DENABLE_GPS) + IF(WIN32) + SET(ENABLE_LIBGPS 0) +- ELSE(WIN32) ++ ELSEIF(NOT DEFINED ENABLE_LIBGPS) + FIND_PACKAGE(GPS QUIET) + IF(GPS_FOUND) + IF(${GPS_VERSION_STRING} VERSION_LESS MINIMAL_GPS_API_VERSION)