new package: azpainter
This commit is contained in:
parent
478ae2119b
commit
771f9e6b69
15
x11-packages/azpainter/build.sh
Normal file
15
x11-packages/azpainter/build.sh
Normal file
@ -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 <leonid.plyushch@gmail.com>"
|
||||
_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
|
||||
"
|
33
x11-packages/azpainter/configure.patch
Normal file
33
x11-packages/azpainter/configure.patch
Normal file
@ -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 :
|
||||
|
12
x11-packages/azpainter/src_Makefile.am.patch
Normal file
12
x11-packages/azpainter/src_Makefile.am.patch
Normal file
@ -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 \
|
12
x11-packages/azpainter/src_Makefile.in.patch
Normal file
12
x11-packages/azpainter/src_Makefile.in.patch
Normal file
@ -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 \
|
Loading…
Reference in New Issue
Block a user