openbsd-ports/textproc/icu4c/patches/patch-source_configure
landry e974342660 Update icu4c to 4.0, somehow based on a diff my MAINTAINER reworked by me.
Tested in a mulk muild, webkit and openoffice are happy with it.

ok robert@
2008-10-31 09:56:15 +00:00

22 lines
791 B
Plaintext

Needed to adjust the version numbering scheme. Without it,
librairies ends up with weird names.
--- source/configure.orig Mon Sep 22 21:04:14 2008
+++ source/configure Wed Oct 29 11:15:42 2008
@@ -1359,6 +1359,7 @@ echo "$as_me: error: Cannot determine ICU version numb
{ (exit 1); exit 1; }; }
fi
fi
+ENTRYPOINT_VERSION=`echo $VERSION | sed -e 's/\.//'`
LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`
LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
@@ -9091,6 +9092,7 @@ s,@ECHO_T@,$ECHO_T,;t t
s,@LIBS@,$LIBS,;t t
s,@PACKAGE@,$PACKAGE,;t t
s,@VERSION@,$VERSION,;t t
+s,@ENTRYPOINT_VERSION@,$ENTRYPOINT_VERSION,;t t
s,@LIB_VERSION@,$LIB_VERSION,;t t
s,@LIB_VERSION_MAJOR@,$LIB_VERSION_MAJOR,;t t
s,@UNICODE_VERSION@,$UNICODE_VERSION,;t t