new package: motif
This commit is contained in:
parent
355afd481f
commit
2a4696a813
|
@ -0,0 +1,12 @@
|
|||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -390,8 +390,7 @@
|
||||
include \
|
||||
tools \
|
||||
clients \
|
||||
- doc \
|
||||
- demos
|
||||
+ doc
|
||||
|
||||
AUTOMAKE_OPTIONS = 1.4
|
||||
ACLOCAL_AMFLAGS = -I .
|
|
@ -0,0 +1,37 @@
|
|||
TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/motif/
|
||||
TERMUX_PKG_DESCRIPTION="Motif widget toolkit"
|
||||
TERMUX_PKG_LICENSE="LGPL-2.1"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=2.3.8
|
||||
TERMUX_PKG_SRCURL=https://downloads.sourceforge.net/project/motif/Motif%20${TERMUX_PKG_VERSION}%20Source%20Code/motif-${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=859b723666eeac7df018209d66045c9853b50b4218cecadb794e2359619ebce7
|
||||
TERMUX_PKG_DEPENDS="fontconfig, freetype, libandroid-support, libice, libiconv, libjpeg-turbo, libpng, libsm, libx11, libxext, libxft, libxmu, libxt"
|
||||
TERMUX_PKG_BUILD_DEPENDS="flex, xbitmaps, xorgproto"
|
||||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
||||
ac_cv_file__usr_X_include_X11_X_h=no
|
||||
ac_cv_file__usr_X11R6_include_X11_X_h=no
|
||||
ac_cv_func_setpgrp_void=yes
|
||||
"
|
||||
TERMUX_MAKE_PROCESSES=1
|
||||
TERMUX_PKG_HOSTBUILD=true
|
||||
|
||||
termux_step_post_get_source() {
|
||||
rm -f tools/wml/{wmllex,wmluiltok}.c
|
||||
}
|
||||
|
||||
termux_step_host_build() {
|
||||
"$TERMUX_PKG_SRCDIR/configure" ${TERMUX_PKG_EXTRA_HOSTBUILD_CONFIGURE_ARGS}
|
||||
|
||||
make -C config/util makestrs
|
||||
make -C lib/Xm
|
||||
make -C tools/wml wmluiltok LIBS=-lfl
|
||||
make -C tools/wml
|
||||
}
|
||||
|
||||
termux_step_pre_configure() {
|
||||
export PATH=$TERMUX_PKG_HOSTBUILD_DIR/config/util:$TERMUX_PKG_HOSTBUILD_DIR/tools/wml:$PATH
|
||||
}
|
||||
|
||||
termux_step_post_configure() {
|
||||
make -C tools/wml wmluiltok LIBS=-lfl
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
--- a/clients/mwm/WmFunction.c
|
||||
+++ b/clients/mwm/WmFunction.c
|
||||
@@ -1124,7 +1124,7 @@
|
||||
#ifdef SVR4
|
||||
execl ("/usr/bin/sh", "sh", "-c", args, NULL);
|
||||
#else
|
||||
- execl ("/bin/sh", "sh", "-c", args, NULL);
|
||||
+ execl ("@TERMUX_PREFIX@/bin/sh", "sh", "-c", args, NULL);
|
||||
#endif
|
||||
|
||||
|
||||
--- a/clients/uil/UilSrcSrc.c
|
||||
+++ b/clients/uil/UilSrcSrc.c
|
||||
@@ -642,7 +642,7 @@
|
||||
az_fcb->az_file_ptr = fopen(c_file_name, "r");
|
||||
|
||||
} else {
|
||||
- static char XmConst c_include_dir[]= "/usr/include/";
|
||||
+ static char XmConst c_include_dir[]= "@TERMUX_PREFIX@/include/";
|
||||
Boolean search_user_include=True;
|
||||
Boolean specific_directory=False;
|
||||
|
||||
--- a/lib/Xm/ColorS.c
|
||||
+++ b/lib/Xm/ColorS.c
|
||||
@@ -146,7 +146,7 @@
|
||||
{
|
||||
XmNrgbFile, XmCString, XmRString,
|
||||
sizeof(String), XtOffsetOf(XmColorSelectorRec, cs.rgb_file),
|
||||
- XmRString, (XtPointer) "/usr/lib/X11/rgb.txt"
|
||||
+ XmRString, (XtPointer) "@TERMUX_PREFIX@/lib/X11/rgb.txt"
|
||||
},
|
||||
#endif
|
||||
{
|
|
@ -0,0 +1,11 @@
|
|||
--- a/lib/Xm/Makefile.in
|
||||
+++ b/lib/Xm/Makefile.in
|
||||
@@ -1340,7 +1340,7 @@
|
||||
test -f XmStrDefs23.ht || $(LN_S) $(srcdir)/XmStrDefs23.ht XmStrDefs23.ht
|
||||
test -f XmStrDefsI.ht || $(LN_S) $(srcdir)/XmStrDefsI.ht XmStrDefsI.ht
|
||||
test -f XmStrDefs.ct || $(LN_S) $(srcdir)/XmStrDefs.ct XmStrDefs.ct
|
||||
- $(top_builddir)/config/util/makestrs -f $(XMSTRING_LIST) >XmStrDefs.c
|
||||
+ makestrs -f $(XMSTRING_LIST) >XmStrDefs.c
|
||||
|
||||
@MessageCatalog_TRUE@$(CAT_FILES): Xm.msg
|
||||
@MessageCatalog_TRUE@ $(mkinstalldirs) $(top_builddir)/localized/C/msg
|
|
@ -0,0 +1,11 @@
|
|||
--- a/lib/Xm/XpmI.h
|
||||
+++ b/lib/Xm/XpmI.h
|
||||
@@ -129,7 +129,7 @@
|
||||
extern FILE *popen();
|
||||
#endif
|
||||
|
||||
-#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(WIN32) || defined (_SVID_SOURCE)
|
||||
+#if defined(SYSV) || defined(SVR4) || defined(VMS) || defined(WIN32) || defined (_SVID_SOURCE) || defined(__ANDROID__)
|
||||
#include <string.h>
|
||||
|
||||
#ifndef index
|
|
@ -0,0 +1,21 @@
|
|||
--- a/tools/wml/Makefile.in
|
||||
+++ b/tools/wml/Makefile.in
|
||||
@@ -812,15 +812,15 @@
|
||||
|
||||
wml-uil.mm: wmluiltok wml UilLexPars.c $(TABLE)
|
||||
$(RM) $(WMLTARGETS) wml.report wml-uil.mm
|
||||
- ./wmluiltok <$(srcdir)/Uil.y >tokens.dat
|
||||
+ wmluiltok <$(srcdir)/Uil.y >tokens.dat
|
||||
$(RM) wml-uil.mm
|
||||
- ./wml $(srcdir)/$(TABLE)
|
||||
+ wml $(srcdir)/$(TABLE)
|
||||
$(RM) tokens.dat
|
||||
|
||||
all: motif.wmd
|
||||
|
||||
motif.wmd: wmldbcreate
|
||||
- ./wmldbcreate -o motif.wmd
|
||||
+ wmldbcreate -o motif.wmd
|
||||
|
||||
clean-local:
|
||||
$(RM) $(WMLTARGETS) $(WMDTABLE) $(REPORT) lex.yy.c libwml.a wml \
|
Loading…
Reference in New Issue