ports: Add a lot of x library ports + xeyes/xclock
This commit is contained in:
45
ports/icu/build.sh
Executable file
45
ports/icu/build.sh
Executable file
@@ -0,0 +1,45 @@
|
||||
#!/bin/bash ../install.sh
|
||||
|
||||
NAME='icu'
|
||||
VERSION='78.1'
|
||||
DOWNLOAD_URL="https://github.com/unicode-org/icu/releases/download/release-$VERSION/icu4c-$VERSION-sources.tgz#6217f58ca39b23127605cfc6c7e0d3475fe4b0d63157011383d716cb41617886"
|
||||
TAR_CONTENT='icu'
|
||||
_DEPENDENCIES=('ca-certificates' 'openssl' 'zlib' 'zstd')
|
||||
CONFIG_SUB=('source/config.sub')
|
||||
CONFIGURE_OPTIONS=(
|
||||
"--with-cross-build=$BANAN_PORT_DIR/icu/icu-$VERSION-$BANAN_ARCH/source/build-host"
|
||||
'--disable-tests'
|
||||
'--disable-samples'
|
||||
)
|
||||
|
||||
pre_configure() {
|
||||
unset CC CXX LD AS AR
|
||||
|
||||
mkdir -p source/build-host || exit 1
|
||||
pushd source/build-host || exit 1
|
||||
../configure --disable-tests --disable-samples || exit 1
|
||||
make -j$(proc) || exit 1
|
||||
popd >/dev/null || exit 1
|
||||
|
||||
pushd source >/dev/null || exit 1
|
||||
}
|
||||
|
||||
post_configure() {
|
||||
popd >/dev/null || exit 1
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
pushd source >/dev/null || exit 1
|
||||
}
|
||||
|
||||
post_build() {
|
||||
popd >/dev/null || exit 1
|
||||
}
|
||||
|
||||
pre_install() {
|
||||
pushd source >/dev/null || exit 1
|
||||
}
|
||||
|
||||
post_install() {
|
||||
popd >/dev/null || exit 1
|
||||
}
|
||||
95
ports/icu/patches/0001-add-banan_os-support.patch
Normal file
95
ports/icu/patches/0001-add-banan_os-support.patch
Normal file
@@ -0,0 +1,95 @@
|
||||
diff -ruN icu-78.1/source/config/mh-banan_os icu-78.1-banan_os/source/config/mh-banan_os
|
||||
--- icu-78.1/source/config/mh-banan_os 1970-01-01 02:00:00.000000000 +0200
|
||||
+++ icu-78.1-banan_os/source/config/mh-banan_os 2025-11-06 23:07:11.542495330 +0200
|
||||
@@ -0,0 +1,80 @@
|
||||
+## -*-makefile-*-
|
||||
+## Copyright (C) 2016 and later: Unicode, Inc. and others.
|
||||
+## License & terms of use: http://www.unicode.org/copyright.html
|
||||
+## haiku-specific setup
|
||||
+## Copyright (c) 2010-2012, International Business Machines Corporation and
|
||||
+## others. All Rights Reserved.
|
||||
+##
|
||||
+
|
||||
+## Commands to generate dependency files
|
||||
+GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
+GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS)
|
||||
+
|
||||
+## Flags for position independent code
|
||||
+SHAREDLIBCFLAGS = -fPIC
|
||||
+SHAREDLIBCXXFLAGS = -fPIC
|
||||
+SHAREDLIBCPPFLAGS = -DPIC
|
||||
+
|
||||
+## Additional flags when building libraries and with threads
|
||||
+LIBCPPFLAGS =
|
||||
+THREADSCPPFLAGS =
|
||||
+
|
||||
+#
|
||||
+CPPFLAGS += -DU_CHARSET_IS_UTF8=1
|
||||
+
|
||||
+## Compiler switch to embed a runtime search path
|
||||
+LD_RPATH=
|
||||
+LD_RPATH_PRE = -Wl,-rpath,
|
||||
+
|
||||
+## Compiler switch to embed a library name
|
||||
+LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET))
|
||||
+
|
||||
+## Shared object suffix
|
||||
+SO = so
|
||||
+## Non-shared intermediate object suffix
|
||||
+STATIC_O = ao
|
||||
+
|
||||
+## Compilation rules
|
||||
+%.$(STATIC_O): $(srcdir)/%.c
|
||||
+ $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $<
|
||||
+%.o: $(srcdir)/%.c
|
||||
+ $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
|
||||
+
|
||||
+%.$(STATIC_O): $(srcdir)/%.cpp
|
||||
+ $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
|
||||
+%.o: $(srcdir)/%.cpp
|
||||
+ $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
|
||||
+
|
||||
+
|
||||
+## Dependency rules
|
||||
+%.d: $(srcdir)/%.c
|
||||
+ @echo "generating dependency information for $<"
|
||||
+ @$(SHELL) -ec '$(GEN_DEPS.c) $< \
|
||||
+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
|
||||
+ [ -s $@ ] || rm -f $@'
|
||||
+
|
||||
+%.d: $(srcdir)/%.cpp
|
||||
+ @echo "generating dependency information for $<"
|
||||
+ @$(SHELL) -ec '$(GEN_DEPS.cc) $< \
|
||||
+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \
|
||||
+ [ -s $@ ] || rm -f $@'
|
||||
+
|
||||
+## Versioned libraries rules
|
||||
+
|
||||
+%.$(SO).$(SO_TARGET_VERSION_MAJOR): %.$(SO).$(SO_TARGET_VERSION)
|
||||
+ $(RM) $@ && ln -s ${<F} $@
|
||||
+%.$(SO): %.$(SO).$(SO_TARGET_VERSION_MAJOR)
|
||||
+ $(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@
|
||||
+
|
||||
+## Bind internal references
|
||||
+
|
||||
+# LDflags that pkgdata will use
|
||||
+BIR_LDFLAGS= -Wl,-Bsymbolic
|
||||
+
|
||||
+# Dependencies [i.e. map files] for the final library
|
||||
+BIR_DEPS=
|
||||
+
|
||||
+# Use LIBRARY_PATH instead of LD_LIBRARY_PATH
|
||||
+LDLIBRARYPATH_ENVVAR= LIBRARY_PATH
|
||||
+
|
||||
+## End haiku-specific setup
|
||||
diff -ruN icu-78.1/source/configure icu-78.1-banan_os/source/configure
|
||||
--- icu-78.1/source/configure 2025-10-30 19:37:19.000000000 +0200
|
||||
+++ icu-78.1-banan_os/source/configure 2025-11-06 23:06:17.308923216 +0200
|
||||
@@ -5829,6 +5829,7 @@
|
||||
*-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
|
||||
*-*-beos) icu_cv_host_frag=mh-beos ;;
|
||||
*-*-haiku) icu_cv_host_frag=mh-haiku ;;
|
||||
+*-*-banan_os) icu_cv_host_frag=mh-banan_os ;;
|
||||
*-*-irix*) icu_cv_host_frag=mh-irix ;;
|
||||
*-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
|
||||
*-*-nto*) icu_cv_host_frag=mh-qnx ;;
|
||||
11
ports/icu/patches/0002-fix-inverted-marco-condition.patch
Normal file
11
ports/icu/patches/0002-fix-inverted-marco-condition.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- icu/source/common/unicode/ptypes.h 2025-10-30 19:37:19.000000000 +0200
|
||||
+++ icu-78.1-x86_64/source/common/unicode/ptypes.h 2025-11-06 23:12:15.984514832 +0200
|
||||
@@ -56,7 +56,7 @@
|
||||
// implementations (looking at you, Apple, spring 2024) actually do this, so
|
||||
// ICU4C must detect and deal with that.
|
||||
#if !defined(__cplusplus) && !defined(U_IN_DOXYGEN)
|
||||
-# if U_HAVE_CHAR16_T
|
||||
+# if ! U_HAVE_CHAR16_T
|
||||
# include <uchar.h>
|
||||
# else
|
||||
typedef uint16_t char16_t;
|
||||
Reference in New Issue
Block a user