void-packages/srcpkgs/enigma/patches/remove-SDL_ttf-check.patch
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: convert patches to -Np1
```sh

git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

25 lines
908 B
Diff

Do not check for SDL_ttf version because it fails when
cross compiling.
--- a/configure.ac 2014-12-19 22:26:06.000000000 +0100
+++ b/configure.ac 2015-11-19 12:08:46.996789539 +0100
@@ -176,19 +176,6 @@
dnl ----------------------------------------
dnl Check for SDL_ttf library
dnl ---------------------------------------
-if test "$MINGW32" = no; then
- AC_MSG_CHECKING([for SDL_ttf >=2.0.6])
- AC_RUN_IFELSE([AC_LANG_SOURCE(
- [[#include <SDL_ttf.h>
- int main(int argc, char *argv[]) {
- if (TTF_MAJOR_VERSION < 2)
- return 1;
- else if (TTF_MAJOR_VERSION == 2 && TTF_MINOR_VERSION == 0 && TTF_PATCHLEVEL < 6)
- return 1;
- return 0;}]])],
- [AC_MSG_RESULT([found])],
- [AC_MSG_ERROR([SDL_ttf >= 2.0.6 not found.])])
-fi
AC_CHECK_LIB(SDL_ttf, main,,[AC_MSG_ERROR([SDL_ttf is required to compile Enigma])])
SDL_LIBS="$SDL_LIBS -lSDL_ttf"