-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Administrator
committed
Jul 8, 2019
0 parents
commit 29dd028
Showing
16 changed files
with
302 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Created by: dwm | ||
# $FreeBSD: head/devel/icu/Makefile 422711 2016-09-24 11:06:57Z tijl $ | ||
|
||
PORTNAME= icu-lib | ||
DISTVERSION= 57_1 | ||
PORTEPOCH= 1 | ||
CATEGORIES= devel | ||
MASTER_SITES= http://download.icu-project.org/files/icu4c/${PORTVERSION}/ | ||
DISTNAME= icu4c-${DISTVERSION}-src | ||
|
||
MAINTAINER= [email protected] | ||
COMMENT= International Components for Unicode (from IBM) | ||
|
||
LICENSE= ICU | ||
LICENSE_NAME= ICU license | ||
LICENSE_FILE= ${WRKSRC}/../LICENSE | ||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept | ||
|
||
GNU_CONFIGURE= yes | ||
CONFIGURE_ARGS+=--with-data-packaging=archive \ | ||
--disable-renaming \ | ||
--disable-samples \ | ||
--enable-static | ||
CPPFLAGS+= -DICU_NO_USER_DATA_OVERRIDE | ||
MAKE_ARGS= VERBOSE=1 | ||
TEST_TARGET= check | ||
USES= compiler:c++0x gmake pathfix tar:tgz | ||
USE_LDCONFIG= yes | ||
WRKSRC= ${WRKDIR}/icu/source | ||
|
||
ICUMAJOR= ${PORTVERSION:C/\..*//} | ||
PLIST_SUB+= ICUMAJOR=${ICUMAJOR} ICUVER=${PORTVERSION} | ||
|
||
.include <bsd.port.options.mk> | ||
|
||
#.if ${ARCH} == "mips" || ${ARCH} == "mips64" || ${ARCH} == "sparc64" \ | ||
# || ${ARCH} == "powerpc" || ${ARCH} == "powerpc64" | ||
#PLIST_FILES+= %%DATADIR%%/%%ICUVER%%/icudt%%ICUMAJOR%%b.dat | ||
#.else | ||
#PLIST_FILES+= %%DATADIR%%/%%ICUVER%%/icudt%%ICUMAJOR%%l.dat | ||
#.endif | ||
|
||
#post-stage: | ||
# @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/g* \ | ||
# ${STAGEDIR}${PREFIX}/bin/*conv \ | ||
# ${STAGEDIR}${PREFIX}/bin/icuinfo \ | ||
# ${STAGEDIR}${PREFIX}/bin/derb \ | ||
# ${STAGEDIR}${PREFIX}/bin/pkgdata | ||
# @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/* | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1464596691 | ||
SHA256 (icu4c-57_1-src.tgz) = ff8c67cb65949b1e7808f2359f2b80f722697048e90e7cfc382ec1fe229e9581 | ||
SIZE (icu4c-57_1-src.tgz) = 22360664 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- common/Makefile.in.orig 2016-03-23 20:50:12 UTC | ||
+++ common/Makefile.in | ||
@@ -146,7 +146,7 @@ install-local: install-headers install-l | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- common/umutex.cpp.orig 2016-03-23 20:50:10 UTC | ||
+++ common/umutex.cpp | ||
@@ -264,19 +264,19 @@ static pthread_cond_t initCondition = PT | ||
U_COMMON_API UBool U_EXPORT2 | ||
umtx_initImplPreInit(UInitOnce &uio) { | ||
pthread_mutex_lock(&initMutex); | ||
- int32_t state = uio.fState; | ||
+ int32_t state = umtx_loadAcquire(uio.fState); | ||
if (state == 0) { | ||
umtx_storeRelease(uio.fState, 1); | ||
pthread_mutex_unlock(&initMutex); | ||
return TRUE; // Caller will next call the init function. | ||
} else { | ||
- while (uio.fState == 1) { | ||
+ while (umtx_loadAcquire(uio.fState) == 1) { | ||
// Another thread is currently running the initialization. | ||
// Wait until it completes. | ||
pthread_cond_wait(&initCondition, &initMutex); | ||
} | ||
pthread_mutex_unlock(&initMutex); | ||
- U_ASSERT(uio.fState == 2); | ||
+ U_ASSERT(umtx_loadAcquire(uio.fState) == 2); | ||
return FALSE; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- common/unicode/platform.h.orig 2016-03-23 20:49:58 UTC | ||
+++ common/unicode/platform.h | ||
@@ -379,8 +379,8 @@ | ||
*/ | ||
#ifdef U_IS_BIG_ENDIAN | ||
/* Use the predefined value. */ | ||
-#elif defined(BYTE_ORDER) && defined(BIG_ENDIAN) | ||
-# define U_IS_BIG_ENDIAN (BYTE_ORDER == BIG_ENDIAN) | ||
+#elif defined(_BYTE_ORDER) && defined(_BIG_ENDIAN) | ||
+# define U_IS_BIG_ENDIAN (_BYTE_ORDER == _BIG_ENDIAN) | ||
#elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) | ||
/* gcc */ | ||
# define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- common/unicode/uconfig.h.orig 2016-03-23 20:49:54 UTC | ||
+++ common/unicode/uconfig.h | ||
@@ -87,7 +87,7 @@ | ||
* @internal | ||
*/ | ||
#ifndef U_DISABLE_RENAMING | ||
-#define U_DISABLE_RENAMING 0 | ||
+#define U_DISABLE_RENAMING 1 | ||
#endif | ||
|
||
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
--- config/mh-bsd-gcc.orig 2016-03-23 20:50:50 UTC | ||
+++ config/mh-bsd-gcc | ||
@@ -4,8 +4,8 @@ | ||
## 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) | ||
+GEN_DEPS.c= $(CC) -E -MM $(DEFS) $(CPPFLAGS) | ||
+GEN_DEPS.cc= $(CXX) -E -MM $(DEFS) $(CPPFLAGS) $(CXXFLAGS) | ||
|
||
## Flags for position independent code | ||
SHAREDLIBCFLAGS = -fPIC | ||
@@ -18,10 +18,16 @@ LIBCPPFLAGS = | ||
|
||
## Compiler switch to embed a runtime search path | ||
LD_RPATH= | ||
-LD_RPATH_PRE= -Wl,-rpath, | ||
+LD_RPATH_PRE = -Wl,-rpath, | ||
+ | ||
+## These are the library specific LDFLAGS | ||
+LDFLAGSICUDT=-nodefaultlibs -nostdlib | ||
|
||
## Compiler switch to embed a library name | ||
-LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) | ||
+# The initial tab in the next line is to prevent icu-config from reading it. | ||
+ LD_SONAME = -Wl,-soname -Wl,$(notdir $(MIDDLE_SO_TARGET)) | ||
+#SH# # We can't depend on MIDDLE_SO_TARGET being set. | ||
+#SH# LD_SONAME= | ||
|
||
## Shared library options | ||
LD_SOOPTIONS= -Wl,-Bsymbolic | ||
@@ -33,27 +39,27 @@ STATIC_O = ao | ||
|
||
## Compilation rules | ||
%.$(STATIC_O): $(srcdir)/%.c | ||
- $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS) -o $@ $< | ||
+ $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(STATICCPPFLAGS) $(STATICCFLAGS)) -o $@ $<) | ||
%.o: $(srcdir)/%.c | ||
- $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $< | ||
+ $(call SILENT_COMPILE,$(strip $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS)) -o $@ $<) | ||
|
||
%.$(STATIC_O): $(srcdir)/%.cpp | ||
- $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $< | ||
+ $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS)) -o $@ $<) | ||
%.o: $(srcdir)/%.cpp | ||
- $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $< | ||
+ $(call SILENT_COMPILE,$(strip $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS)) -o $@ $<) | ||
|
||
|
||
## Dependency rules | ||
%.d: $(srcdir)/%.c | ||
- @echo "generating dependency information for $<" | ||
+ $(call ICU_MSG,(deps)) $< | ||
@$(SHELL) -ec '$(GEN_DEPS.c) $< \ | ||
- | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ | ||
+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ | ||
[ -s $@ ] || rm -f $@' | ||
|
||
%.d: $(srcdir)/%.cpp | ||
- @echo "generating dependency information for $<" | ||
+ $(call ICU_MSG,(deps)) $< | ||
@$(SHELL) -ec '$(GEN_DEPS.cc) $< \ | ||
- | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' > $@; \ | ||
+ | sed '\''s%\($*\)\.o[ :]*%\1.o $@ : %g'\'' > $@; \ | ||
[ -s $@ ] || rm -f $@' | ||
|
||
## Versioned libraries rules | ||
@@ -64,7 +70,7 @@ STATIC_O = ao | ||
$(RM) $@ && ln -s ${*F}.$(SO).$(SO_TARGET_VERSION) $@ | ||
|
||
## Bind internal references | ||
- | ||
+ | ||
# LDflags that pkgdata will use | ||
BIR_LDFLAGS= -Wl,-Bsymbolic | ||
|
||
@@ -77,4 +83,3 @@ STATIC_PREFIX = | ||
|
||
## End BSD-specific setup | ||
|
||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- i18n/Makefile.in.orig 2016-03-23 20:49:38 UTC | ||
+++ i18n/Makefile.in | ||
@@ -135,7 +135,7 @@ install-local: install-headers install-l | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- io/Makefile.in.orig 2016-03-23 20:50:52 UTC | ||
+++ io/Makefile.in | ||
@@ -96,7 +96,7 @@ install-local: install-headers install-l | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- layout/Makefile.in.orig 2016-03-23 20:56:48 UTC | ||
+++ layout/Makefile.in | ||
@@ -180,7 +180,7 @@ install-local: install-headers install-l | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- layoutex/Makefile.in.orig 2016-03-23 20:56:38 UTC | ||
+++ layoutex/Makefile.in | ||
@@ -109,7 +109,7 @@ endif | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- stubdata/Makefile.in.orig 2016-03-23 20:50:52 UTC | ||
+++ stubdata/Makefile.in | ||
@@ -82,7 +82,7 @@ install-local: install-library | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- tools/ctestfw/Makefile.in.orig 2016-03-23 20:50:16 UTC | ||
+++ tools/ctestfw/Makefile.in | ||
@@ -78,7 +78,7 @@ install-local: install-library | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- tools/toolutil/Makefile.in.orig 2016-03-23 20:50:26 UTC | ||
+++ tools/toolutil/Makefile.in | ||
@@ -89,7 +89,7 @@ install-local: install-library | ||
install-library: all-local | ||
$(MKINSTALLDIRS) $(DESTDIR)$(libdir) | ||
ifneq ($(ENABLE_STATIC),) | ||
- $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir) | ||
+ $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(libdir) | ||
endif | ||
ifneq ($(ENABLE_SHARED),) | ||
$(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
The International Components for Unicode (ICU) is a C and C++ library | ||
providing Unicode support (ex. character set conversions, locales, | ||
normalization, transliteration, etc.). | ||
|
||
More information on ICU can be found on the homepage | ||
|
||
WWW: http://site.icu-project.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
lib/libicudata.so.%%ICUMAJOR%% | ||
lib/libicudata.so.%%ICUVER%% | ||
lib/libicui18n.so.%%ICUMAJOR%% | ||
lib/libicui18n.so.%%ICUVER%% | ||
lib/libicuio.so.%%ICUMAJOR%% | ||
lib/libicuio.so.%%ICUVER%% | ||
lib/libicule.a | ||
lib/libicule.so | ||
lib/libicule.so.%%ICUMAJOR%% | ||
lib/libicule.so.%%ICUVER%% | ||
lib/libiculx.a | ||
lib/libiculx.so | ||
lib/libiculx.so.%%ICUMAJOR%% | ||
lib/libiculx.so.%%ICUVER%% | ||
lib/libicutest.so.%%ICUMAJOR%% | ||
lib/libicutest.so.%%ICUVER%% | ||
lib/libicutu.so.%%ICUMAJOR%% | ||
lib/libicutu.so.%%ICUVER%% | ||
lib/libicuuc.so.%%ICUMAJOR%% | ||
lib/libicuuc.so.%%ICUVER%% | ||
lib/icu/%%ICUVER%%/pkgdata.inc | ||
lib/icu/%%ICUVER%%/Makefile.inc |