From e5c93d0cadc433bf6be15b1e43fa49f2f534447b Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Sat, 18 Jan 2025 18:22:05 +0100 Subject: textproc/libqxp: Fix build with ICU 76.1 and improve port Fix build with ICU and while at it clean up port Makefile PR: 283545 --- textproc/libqxp/files/patch-configure.ac | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 textproc/libqxp/files/patch-configure.ac (limited to 'textproc/libqxp/files/patch-configure.ac') diff --git a/textproc/libqxp/files/patch-configure.ac b/textproc/libqxp/files/patch-configure.ac new file mode 100644 index 000000000000..412056403676 --- /dev/null +++ b/textproc/libqxp/files/patch-configure.ac @@ -0,0 +1,25 @@ +--- configure.ac.orig 2025-01-04 21:30:40 UTC ++++ configure.ac +@@ -69,21 +69,7 @@ AC_SUBST([BOOST_CFLAGS]) + # ======== + # Find icu + # ======== +-AS_IF([test "${ICU_CFLAGS+set}" = set],[ +- ICU_CFLAGS_overriden=yes],[ +- ICU_CFLAGS_overriden=no]) +-PKG_CHECK_MODULES([ICU],[icu-i18n],[ +- AS_IF([test "${ICU_CFLAGS_overriden}" = no], [ +- ICU_CFLAGS="${ICU_CFLAGS} `${PKG_CONFIG} icu-i18n --variable=CXXFLAGS`"]) +- ], [ +- AC_PATH_PROG([ICU_CONFIG],[icu-config]) +- AC_MSG_CHECKING([ICU installation]) +- AS_IF([${ICU_CONFIG} --cflags >/dev/null 2>&1],[ +- ICU_CFLAGS=`${ICU_CONFIG} --cppflags-searchpath --cxxflags` +- ICU_LIBS=`${ICU_CONFIG} --ldflags` +- AC_MSG_RESULT([found])],[ +- AC_MSG_ERROR([libicu config program icu-config not found])])] +-) ++PKG_CHECK_MODULES([ICU],[icu-i18n icu-uc]) + AC_SUBST(ICU_CFLAGS) + AC_SUBST(ICU_LIBS) + -- cgit v1.2.3