From 771f9e6b69a6a5785cc9705f50aae784f35e5ce4 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Mon, 30 Dec 2019 18:20:58 +0200 Subject: [PATCH] new package: azpainter --- x11-packages/azpainter/build.sh | 15 +++++++++ x11-packages/azpainter/configure.patch | 33 ++++++++++++++++++++ x11-packages/azpainter/src_Makefile.am.patch | 12 +++++++ x11-packages/azpainter/src_Makefile.in.patch | 12 +++++++ 4 files changed, 72 insertions(+) create mode 100644 x11-packages/azpainter/build.sh create mode 100644 x11-packages/azpainter/configure.patch create mode 100644 x11-packages/azpainter/src_Makefile.am.patch create mode 100644 x11-packages/azpainter/src_Makefile.in.patch diff --git a/x11-packages/azpainter/build.sh b/x11-packages/azpainter/build.sh new file mode 100644 index 000000000..971dd611a --- /dev/null +++ b/x11-packages/azpainter/build.sh @@ -0,0 +1,15 @@ +TERMUX_PKG_HOMEPAGE=https://github.com/Symbian9/azpainter +TERMUX_PKG_DESCRIPTION="Full color painting software for Unix-like systems for illustration drawing (unofficial)" +TERMUX_PKG_LICENSE="GPL-3.0" +TERMUX_PKG_MAINTAINER="Leonid Plyushch " +_COMMIT=4bf18c83bb3edc5c0a2c557095ddee61b0b66a7a +TERMUX_PKG_VERSION=2.1.5-g${_COMMIT:0:8} +TERMUX_PKG_SRCURL=https://github.com/Symbian9/azpainter/archive/${_COMMIT}.tar.gz +TERMUX_PKG_SHA256=84c150611407cdbdb757f0e872bb3da76892fd3c1ea45931385d3c1f9619e405 +TERMUX_PKG_DEPENDS="fontconfig, hicolor-icon-theme, libandroid-shmem, libjpeg-turbo, libxfixes, libxi" +TERMUX_PKG_BUILD_IN_SRC=true + +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" +--with-freetype-dir=$TERMUX_PREFIX/include/freetype2 +LIBS=-landroid-shmem +" diff --git a/x11-packages/azpainter/configure.patch b/x11-packages/azpainter/configure.patch new file mode 100644 index 000000000..88d6b82f8 --- /dev/null +++ b/x11-packages/azpainter/configure.patch @@ -0,0 +1,33 @@ +diff -uNr azpainter-2.1.5/configure azpainter-2.1.5.mod/configure +--- azpainter-2.1.5/configure 2019-12-02 18:06:30.000000000 +0200 ++++ azpainter-2.1.5.mod/configure 2019-12-30 17:50:21.049470937 +0200 +@@ -4780,29 +4780,6 @@ + + + +-as_ac_File=`$as_echo "ac_cv_file_"$freetype_dir/ft2build.h"" | $as_tr_sh` +-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$freetype_dir/ft2build.h\"" >&5 +-$as_echo_n "checking for \"$freetype_dir/ft2build.h\"... " >&6; } +-if eval \${$as_ac_File+:} false; then : +- $as_echo_n "(cached) " >&6 +-else +- test "$cross_compiling" = yes && +- as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 +-if test -r ""$freetype_dir/ft2build.h""; then +- eval "$as_ac_File=yes" +-else +- eval "$as_ac_File=no" +-fi +-fi +-eval ac_res=\$$as_ac_File +- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +-$as_echo "$ac_res" >&6; } +-if eval test \"x\$"$as_ac_File"\" = x"yes"; then : +- +-else +- as_fn_error $? "(freetype) ft2build.h not found" "$LINENO" 5 +-fi +- + ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" + if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : + diff --git a/x11-packages/azpainter/src_Makefile.am.patch b/x11-packages/azpainter/src_Makefile.am.patch new file mode 100644 index 000000000..ccc9b42bd --- /dev/null +++ b/x11-packages/azpainter/src_Makefile.am.patch @@ -0,0 +1,12 @@ +diff -uNr azpainter-2.1.5/src/Makefile.am azpainter-2.1.5.mod/src/Makefile.am +--- azpainter-2.1.5/src/Makefile.am 2019-12-02 18:06:30.000000000 +0200 ++++ azpainter-2.1.5.mod/src/Makefile.am 2019-12-30 17:55:21.320849401 +0200 +@@ -3,7 +3,7 @@ + + bin_PROGRAMS=azpainter + azpainter_LDADD=../mlib/libmlib.a \ +- -lX11 -lXext -lfontconfig -lfreetype -lpng -ljpeg -lz -lrt -lm ++ -lX11 -lXext -lfontconfig -lfreetype -lpng -ljpeg -lz -lm + + azpainter_SOURCES= \ + AppCursor.c \ diff --git a/x11-packages/azpainter/src_Makefile.in.patch b/x11-packages/azpainter/src_Makefile.in.patch new file mode 100644 index 000000000..a64059977 --- /dev/null +++ b/x11-packages/azpainter/src_Makefile.in.patch @@ -0,0 +1,12 @@ +diff -uNr azpainter-2.1.5/src/Makefile.in azpainter-2.1.5.mod/src/Makefile.in +--- azpainter-2.1.5/src/Makefile.in 2019-12-02 18:06:30.000000000 +0200 ++++ azpainter-2.1.5.mod/src/Makefile.in 2019-12-30 17:55:24.808888627 +0200 +@@ -478,7 +478,7 @@ + AM_CPPFLAGS = -I../mlib/include -Iinclude -I@freetype_dir@ -DPACKAGE_DATA_DIR=\""$(datadir)/azpainter"\" + AM_CFLAGS = -pthread + azpainter_LDADD = ../mlib/libmlib.a \ +- -lX11 -lXext -lfontconfig -lfreetype -lpng -ljpeg -lz -lrt -lm ++ -lX11 -lXext -lfontconfig -lfreetype -lpng -ljpeg -lz -lm + + azpainter_SOURCES = \ + AppCursor.c \