Do not download code from github during configure.

found by and ok aja@
This commit is contained in:
pascal 2022-01-01 12:35:09 +00:00
parent 31496f0ec9
commit 1da476fd10
3 changed files with 41 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.26 2021/12/31 09:29:56 pascal Exp $
# $OpenBSD: Makefile,v 1.27 2022/01/01 12:35:09 pascal Exp $
ONLY_FOR_ARCHS = amd64 i386
@ -10,6 +10,11 @@ GH_PROJECT = openmw
GH_TAGNAME = openmw-$V
DISTNAME = openmw-$V
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
e75adf86f91eb3082220085e42dda62679f9a3ea.zip:0
DIST_SUBDIR = openmw
MASTER_SITES0 = https://github.com/recastnavigation/recastnavigation/archive/
CATEGORIES = games
HOMEPAGE = https://openmw.org/en/
@ -54,4 +59,9 @@ WRKDIST = ${WRKDIR}/openmw-openmw-$V
CFLAGS += -I${X11BASE}/include -pthread
CXXFLAGS += -I${X11BASE}/include -pthread
post-extract:
mkdir ${WRKDIST}/extern/fetched
mv ${WRKDIR}/recastnavigation-e75adf86f91eb3082220085e42dda62679f9a3ea \
${WRKDIST}/extern/fetched/recastnavigation
.include <bsd.port.mk>

View File

@ -1,2 +1,4 @@
SHA256 (openmw-0.47.0.tar.gz) = vX934VJ8IYDpsN/L5AHW+0jyTbs3cB2sd0dpeHPW7bQ=
SIZE (openmw-0.47.0.tar.gz) = 5156857
SHA256 (openmw/e75adf86f91eb3082220085e42dda62679f9a3ea.zip) = 0zOarqHYEwe8rCvs4XbFNZ7V+Mj5ch/DYNKPgvkRklM=
SHA256 (openmw/openmw-0.47.0.tar.gz) = vX934VJ8IYDpsN/L5AHW+0jyTbs3cB2sd0dpeHPW7bQ=
SIZE (openmw/e75adf86f91eb3082220085e42dda62679f9a3ea.zip) = 1644592
SIZE (openmw/openmw-0.47.0.tar.gz) = 5156857

View File

@ -0,0 +1,26 @@
$OpenBSD: patch-extern_CMakeLists_txt,v 1.1 2022/01/01 12:35:09 pascal Exp $
Index: extern/CMakeLists.txt
--- extern/CMakeLists.txt.orig
+++ extern/CMakeLists.txt
@@ -178,11 +178,13 @@ if(NOT OPENMW_USE_SYSTEM_RECASTNAVIGATION)
set(RECASTNAVIGATION_EXAMPLES OFF CACHE BOOL "")
# master on 15 Feb 2021
- include(FetchContent)
- FetchContent_Declare(recastnavigation
- URL https://github.com/recastnavigation/recastnavigation/archive/e75adf86f91eb3082220085e42dda62679f9a3ea.zip
- URL_HASH MD5=af905d121ef9d1cdfa979b0495cba059
- SOURCE_DIR fetched/recastnavigation
- )
- FetchContent_MakeAvailableExcludeFromAll(recastnavigation)
+# include(FetchContent)
+# FetchContent_Declare(recastnavigation
+# URL https://github.com/recastnavigation/recastnavigation/archive/e75adf86f91eb3082220085e42dda62679f9a3ea.zip
+# URL_HASH MD5=af905d121ef9d1cdfa979b0495cba059
+# SOURCE_DIR fetched/recastnavigation
+# )
+# FetchContent_MakeAvailableExcludeFromAll(recastnavigation)
+
+ add_subdirectory("fetched/recastnavigation")
endif()