void-packages/srcpkgs/afterstep/patches/52-libafterimage-cross.patch
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword is kept at -Np0

```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

30 lines
1.3 KiB
Diff

diff --git libAfterImage/configure.in libAfterImage/configure.in
index ca49a50..780e0ff 100644
--- a/libAfterImage/configure.in
+++ b/libAfterImage/configure.in
@@ -590,21 +590,21 @@ else
)
if test "x$have_ft2build" = "xno" ; then
if test "x$have_freetype_freetype" = "xyes" ; then
- AC_TRY_RUN([#include <freetype/freetype.h>
+ AC_TRY_COMPILE([#include <freetype/freetype.h>
int main(){FT_Face f; return 0;}],
[have_ttf=yes],AC_MSG_RESULT(no))
elif test "x$have_freetype" = "xyes" ; then
- AC_TRY_RUN([#include <freetype.h>
+ AC_TRY_COMPILE([#include <freetype.h>
int main(){FT_Face f; return 0;}],
[have_ttf=yes],AC_MSG_RESULT(no))
fi;
elif test "x$have_freetype_freetype" = "xyes" ; then
- AC_TRY_RUN([#include <ft2build.h>
+ AC_TRY_COMPILE([#include <ft2build.h>
#include <freetype/freetype.h>
int main(){FT_Face f; return 0;}],
[have_ttf=yes],AC_MSG_RESULT(no))
elif test "x$have_freetype" = "xyes" ; then
- AC_TRY_RUN([#include <ft2build.h>
+ AC_TRY_COMPILE([#include <ft2build.h>
#include <freetype.h>
int main(){FT_Face f; return 0;}],
[have_ttf=yes],AC_MSG_RESULT(no))