aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/supertux-unbundle-squirrel.patch
blob: 054183b75f2b3ace374fe350981ae0d388ad284c (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
diff -ur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt	2019-05-24 17:58:19.693090158 -0400
+++ b/CMakeLists.txt	2019-05-24 17:57:43.349473252 -0400
@@ -375,44 +375,15 @@
 
 include(ConfigureChecks)
 
-
-## Also build external/squirrel
-
-if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/external/squirrel/CMakeLists.txt)
-  message(FATAL_ERROR "squirrel submodule is not checked out or ${CMAKE_CURRENT_SOURCE_DIR}/external/squirrel/CMakeLists.txt is missing")
-endif()
-
 set(SQUIRREL_PREFIX ${CMAKE_BINARY_DIR}/squirrel/ex)
-ExternalProject_Add(squirrel
-  SOURCE_DIR "${CMAKE_SOURCE_DIR}/external/squirrel/"
-  CMAKE_ARGS
-  -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-  -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-  -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
-  -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-  -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
-  -DCMAKE_INSTALL_PREFIX=${SQUIRREL_PREFIX}
-  -DINSTALL_INC_DIR=include)
-
-if(WIN32)
-  add_library(squirrel_lib SHARED IMPORTED)
-  set_target_properties(squirrel_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/bin/${CMAKE_SHARED_LIBRARY_PREFIX}squirrel${CMAKE_SHARED_LIBRARY_SUFFIX}")
-  set_target_properties(squirrel_lib PROPERTIES IMPORTED_IMPLIB "${SQUIRREL_PREFIX}/lib/squirrel${CMAKE_LINK_LIBRARY_SUFFIX}")
-  add_library(sqstdlib_lib SHARED IMPORTED)
-  set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/bin/${CMAKE_SHARED_LIBRARY_PREFIX}sqstdlib${CMAKE_SHARED_LIBRARY_SUFFIX}")
-  set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_IMPLIB "${SQUIRREL_PREFIX}/lib/sqstdlib${CMAKE_LINK_LIBRARY_SUFFIX}")
-
-  #For debug run purposes
-  configure_file("${CMAKE_CURRENT_SOURCE_DIR}/mk/msvc/run_supertux.bat.in" "${PROJECT_BINARY_DIR}/run_supertux.bat")
-else()
-  add_library(squirrel_lib STATIC IMPORTED)
-  set_target_properties(squirrel_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}squirrel_static${CMAKE_STATIC_LIBRARY_SUFFIX}")
-  add_library(sqstdlib_lib STATIC IMPORTED)
-  set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_STATIC_LIBRARY_PREFIX}sqstdlib_static${CMAKE_STATIC_LIBRARY_SUFFIX}")
-endif()
 
 include_directories(SYSTEM ${SQUIRREL_PREFIX}/include)
 
+add_library(squirrel_lib SHARED IMPORTED)
+set_target_properties(squirrel_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}squirrel${CMAKE_SHARED_LIBRARY_SUFFIX}")
+add_library(sqstdlib_lib SHARED IMPORTED)
+set_target_properties(sqstdlib_lib PROPERTIES IMPORTED_LOCATION "${SQUIRREL_PREFIX}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}sqstdlib${CMAKE_SHARED_LIBRARY_SUFFIX}")
+
 ## Also build external/tinygettext
 
 if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/external/tinygettext/CMakeLists.txt)
d543bb1aa501a'>gnu: Simplify package inputs....This commit was obtained by running: ./pre-inst-env guix style without any additional argument. Ludovic Courtès 2021-12-05Merge remote-tracking branch 'origin/master' into core-updates-frozenRicardo Wurmus 2021-11-24gnu: scintilla: Update to 5.1.4....* gnu/packages/text-editors.scm (scintilla): Update to 5.1.4. Nicolas Goaziou 2021-10-31Merge remote-tracking branch 'origin/master' into core-updates-frozenEfraim Flashner 2021-10-29gnu: scintilla: Update to 5.1.3....* gnu/packages/text-editors.scm (scintilla): Update to 5.1.3. Nicolas Goaziou 2021-10-12Merge remote-tracking branch 'origin/master' into core-updates-frozen.Mathieu Othacehe 2021-10-10gnu: geany: Update to 1.38....* gnu/packages/text-editors.scm (geany): Update to 1.38. Nicolas Goaziou 2021-10-02gnu: Update gtkmm to 4.2.0, add gtkmm@3, and adjust gtkmm@2....* gnu/packages/gtk.scm (gtkmm)[version]: Update to 4.2.0. [arguments](meson): New argument. [native-inputs]: Add glib:bin. [propagated-inputs]: Replace gtk+ with gtk. (gtkmm-3): New variable. (gtkmm-2)[arguments]: Strip certain inherited arguments. * gnu/packages/animation.scm (synfigstudio)[inputs]: Switch to gtkmm-3. * gnu/packages/astronomy.scm (stackistry)[inputs]: Ditto. * gnu/packages/audio.scm (guitarix)[inputs]: Ditto. * gnu/packages/disk.scm (parted)[inputs]: Ditto. * gnu/packages/gnome.scm (gnome-system-monitor)[inputs]: Ditto. (workrave)[inputs]: Ditto. (gnote)[inputs]: Ditto. * gnu/packages/gobby.scm (gobby)[inputs]: Ditto. * gnu/packages/inkscape.scm (inkscape)[inputs]: Ditto. * gnu/packages/mail.scm (astroid)[inputs]: Ditto. * gnu/packages/mate.scm (mate-system-monitor)[inputs]: Ditto. * gnu/packages/music.scm (tascam-gtk)[inputs]: Ditto. * gnu/packages/photo.scm (rawtherapee)[inputs]: Ditto. * gnu/packages/pulseaudio.scm (pavucontrol)[inputs]: Ditto. (paprefs)[inputs]: Ditto. * gnu/packages/text-editors.scm (jucipp)[inputs]: Ditto. * gnu/packages/wm.scm (waybar)[inputs]: Ditto. Raghav Gururajan 2021-09-29gnu: parinfer-rust: Fix typos in description....* gnu/packages/text-editors.scm (parinfer-rust)[synopsis, description]: Fix two different ways to mistype ‘parentheses’. Tobias Geerinckx-Rice 2021-09-07Merge branch 'master' into core-updates-frozenLudovic Courtès 2021-09-05gnu: ne: Update to 3.3.1....* gnu/packages/text-editors.scm (ne): Update to 3.3.1. [arguments]: Add a 'patch-early-shebang phase. Don't return #t from other phases. Tobias Geerinckx-Rice 2021-08-31gnu: kakoune: Update to v2021.08.28...* gnu/packages/text-editors.scm (kakoune): Update to v2021.08.28 [native-inputs]: Use gcc-10. [inputs]: Remove ncurses dependancy. Signed-off-by: Lars-Dominik Braun <lars@6xq.net> calum 2021-08-01gnu: mg: Update style....* gnu/packages/text-editors.scm (mg)[native-inputs, inputs]: Remove labels. [arguments]: Use SEARCH-INPUT-FILE and #$OUTPUT in phases. Marius Bakke 2021-08-01gnu: mg: Convert arguments to gexp....* gnu/packages/text-editors.scm (mg)[arguments]: Turn into gexp. Marius Bakke 2021-08-01Merge branch 'master' into core-updates-frozenMarius Bakke 2021-08-01gnu: mg: Update to 20210609....* gnu/packages/text-editors.scm (mg): Update to 20210609. [source](snippet): Remove trailing #t. Marius Bakke 2021-08-01gnu: scintilla: Update to 5.1.1....* gnu/packages/text-editors.scm (scintilla): Update to 5.1.1. Nicolas Goaziou 2021-07-29Merge branch 'master' into core-updates-frozen... Conflicts: gnu/packages/bioinformatics.scm gnu/packages/cmake.scm gnu/packages/curl.scm gnu/packages/emacs-xyz.scm gnu/packages/gpodder.scm gnu/packages/music.scm gnu/packages/patches/glibc-bootstrap-system.patch gnu/packages/python-xyz.scm gnu/packages/shells.scm gnu/packages/statistics.scm Marius Bakke 2021-07-18gnu: mg: Set PKG_CONFIG instead of substituting....* gnu/packages/text-editors.scm (mg)[arguments]: Add PKG_CONFIG to #:make-flags, and remove the custom 'pkg-config-for-cross-compiling-target phase. Tobias Geerinckx-Rice 2021-07-18gnu: mg: Fix reference to native diffutils....* gnu/packages/text-editors.scm (mg)[inputs]: Add diffutils. [arguments]: Refer to it in the 'correct-location-of-diff phase. Tobias Geerinckx-Rice 2021-07-18Merge branch 'master' into core-updatesLudovic Courtès 2021-07-14gnu: mg: Enable cross-compilation....* gnu/packages/text-editors.scm (mg)[arguments]: Use cc-for-target. Add phase to substitute pkg-config with the target's pkg-config. Remote #t return from phases. Pierre Langlois 2021-07-11gnu: Add parinfer-rust....* gnu/packages/text-editors.scm (parinfer-rust): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> aecepoglu 2021-07-02gnu: scintilla: Update to 5.1.0....* gnu/packages/text-editors.scm (scintilla): Update to 5.1.0. Nicolas Goaziou 2021-06-30gnu: ghostwriter: Update to 2.0.2....* gnu/packages/text-editors.scm (ghostwriter): Update to 2.0.2. Tobias Geerinckx-Rice 2021-06-29gnu: editorconfig-core-c: Update to 0.12.5....* gnu/packages/text-editors.scm (editorconfig-core-c): Update to 0.12.5. Tobias Geerinckx-Rice 2021-06-23Merge branch 'master' into core-updates...Conflicts: gnu/packages/cups.scm gnu/packages/python-web.scm gnu/packages/web.scm guix/build/maven/pom.scm Tobias Geerinckx-Rice 2021-06-23gnu: texmacs: Update to 2.1....* gnu/packages/text-editors.scm (texmacs): Update to 2.1. [arguments]: Remove #t at the end of phases. Nicolas Goaziou 2021-06-19Merge branch 'master' into core-updates...Note: this merge actually changes the 'curl' and 'python-attrs' derivations, as part of solving caf4a7a2770ef4d05a6e18f40d602e51da749ddc and 12964df69a99de6190422c752fef65ef813f3b6b respectively. 4604d43c0e (gnu: gnutls@3.6.16: Fix cross-compilation.) was ignored because it cannot currently be tested. Conflicts: gnu/local.mk gnu/packages/aidc.scm gnu/packages/boost.scm gnu/packages/curl.scm gnu/packages/nettle.scm gnu/packages/networking.scm gnu/packages/python-xyz.scm gnu/packages/tls.scm Marius Bakke 2021-06-14gnu: Rename qtbase to qtbase-5....This change was automated via the following command: $ git ls-files | xargs sed -i 's/,qtbase)/,qtbase-5)/g' $ git ls-files | xargs sed -i 's/inherit qtbase)/inherit qtbase-5)/g' $ git ls-files | xargs sed -i 's/package-version qtbase)/package-version qtbase-5)/g' $ git checkout etc # to clear some spurious changes This is done so the qtbase package can be upgraded to version 6 in the following commit. Maxim Cournoyer 2021-06-07gnu: Add l3afpad....* gnu/packages/text-editors.scm (l3afpad): New variable. Leo Famulari 2021-06-07gnu: ghostwriter: Update to 2.0.1....* gnu/packages/text-editors.scm (ghostwriter): Update to 2.0.1. Leo Famulari 2021-06-06Merge branch 'master' into core-updates... Conflicts: gnu/local.mk gnu/packages/algebra.scm gnu/packages/bioinformatics.scm gnu/packages/curl.scm gnu/packages/docbook.scm gnu/packages/emacs-xyz.scm gnu/packages/maths.scm gnu/packages/plotutils.scm gnu/packages/python-web.scm gnu/packages/python-xyz.scm gnu/packages/radio.scm gnu/packages/readline.scm gnu/packages/tls.scm gnu/packages/xml.scm gnu/packages/xorg.scm Marius Bakke 2021-06-04gnu: qemacs: Use 'native-inputs' instead of '%build-inputs'....In build phases, the former (or 'inputs', as appropriate) is preferred. * gnu/packages/text-editors.scm (qemacs)[arguments]<#:phases>{install-extra-documentation}: Use 'native-inputs' argument instead of '%build-inputs'. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Maxime Devos