textproc/libe-book: Fix build with ICU 76.1 and improve port

Fix build with ICU and while at it clean up port Makefile

PR:		283574
Approved by:	portmgr (maintainer timeout, 3+ weeks)
This commit is contained in:
Daniel Engberg 2025-01-18 18:14:35 +01:00
parent c18ce60110
commit 1e244834ad
2 changed files with 23 additions and 9 deletions

View file

@ -1,8 +1,8 @@
PORTNAME= libe-book
PORTVERSION= 0.1.3
DISTVERSION= 0.1.3
PORTREVISION= 28
CATEGORIES= textproc
MASTER_SITES= SF/libebook/${PORTNAME}-${PORTVERSION}/
MASTER_SITES= SF/libebook/${PORTNAME}-${DISTVERSION}/
MAINTAINER= office@FreeBSD.org
COMMENT= Library for import of reflowable e-book formats
@ -15,19 +15,22 @@ LIB_DEPENDS= libicui18n.so:devel/icu \
liblangtag.so:devel/liblangtag \
librevenge-0.0.so:textproc/librevenge
OPTIONS_DEFINE= DOCS
USES= autoreconf compiler:c++11-lib gmake gnome gperf libtool \
localbase pathfix pkgconfig tar:xz
USE_GNOME= libxml2
USES= compiler:c++11-lib gmake gnome gperf libtool pathfix pkgconfig \
tar:xz
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
CONFIGURE_ARGS= --disable-werror --disable-tests
CPPFLAGS+= -I${LOCALBASE}/include -DBOOST_ERROR_CODE_HEADER_ONLY
PORTDOCS= *
CPPFLAGS+= -DBOOST_ERROR_CODE_HEADER_ONLY
CONFIGURE_ARGS= --disable-werror --disable-tests
OPTIONS_DEFINE= DOCS
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
DOCS_CONFIGURE_OFF= --without-docs

View file

@ -0,0 +1,11 @@
--- configure.ac.orig 2025-01-04 19:00:12 UTC
+++ configure.ac
@@ -127,7 +127,7 @@ AC_SUBST([BOOST_CFLAGS])
# ========
# Find icu
# ========
-PKG_CHECK_MODULES([ICU], [icu-i18n])
+PKG_CHECK_MODULES([ICU], [icu-i18n icu-uc])
AC_SUBST(ICU_CFLAGS)
AC_SUBST(ICU_LIBS)