@@ -19,7 +19,7 @@ CONFIGURE_COMMON += F77="$(FC)" CC="$(CC)" CXX="$(CXX)"
19
19
MAKE_COMMON = DESTDIR="" prefix=$(build_prefix ) bindir=$(build_bindir ) libdir=$(build_libdir ) libexecdir=$(build_libexecdir ) datarootdir=$(build_datarootdir ) includedir=$(build_includedir ) sysconfdir=$(build_sysconfdir )
20
20
21
21
# autoconf configure-driven scripts: llvm pcre arpack fftw unwind gmp mpfr patchelf uv
22
- # custom Makefile rules: openlibm Rmath double-conversion dsfmt suitesparse-wrapper suitesparse lapack openblas utf8proc
22
+ # custom Makefile rules: openlibm Rmath double-conversion dsfmt suitesparse-wrapper suitesparse lapack openblas mojibake
23
23
24
24
# prevent installing libs into usr/lib64 on opensuse
25
25
unexport CONFIG_SITE
@@ -111,8 +111,8 @@ ifeq ($(USE_SYSTEM_SUITESPARSE), 0)
111
111
STAGE2_DEPS += suitesparse
112
112
endif
113
113
114
- ifeq ($(USE_SYSTEM_UTF8PROC ) , 0)
115
- STAGE2_DEPS += utf8proc
114
+ ifeq ($(USE_SYSTEM_MOJIBAKE ) , 0)
115
+ STAGE2_DEPS += mojibake
116
116
endif
117
117
118
118
# Only compile standalone LAPACK if we are not using OpenBLAS.
@@ -144,7 +144,7 @@ install: $(addprefix install-, $(LIBS))
144
144
cleanall : $(addprefix clean-, $(LIBS ) )
145
145
distcleanall : $(addprefix distclean-, $(LIBS ) )
146
146
rm -rf $(build_prefix )
147
- getall : get-llvm get-uv get-pcre get-double-conversion get-openlibm get-openspecfun get-dsfmt get-Rmath get-openblas get-lapack get-fftw get-suitesparse get-arpack get-unwind get-osxunwind get-gmp get-mpfr get-zlib get-patchelf get-utf8proc
147
+ getall : get-llvm get-uv get-pcre get-double-conversion get-openlibm get-openspecfun get-dsfmt get-Rmath get-openblas get-lapack get-fftw get-suitesparse get-arpack get-unwind get-osxunwind get-gmp get-mpfr get-zlib get-patchelf get-mojibake
148
148
149
149
# # PATHS ##
150
150
# sort is used to remove potential duplicates
@@ -1203,42 +1203,47 @@ compile-fftw-double: $(FFTW_DOUBLE_OBJ_TARGET)
1203
1203
check-fftw-double : fftw-$(FFTW_VER ) -double/checked
1204
1204
install-fftw-double : $(FFTW_DOUBLE_OBJ_TARGET )
1205
1205
1206
- # # UTF8PROC ##
1206
+ # # MOJIBAKE ##
1207
1207
1208
- UTF8PROC_OBJ_SOURCE = utf8proc-v $( UTF8PROC_VER ) /libutf8proc .a
1209
- UTF8PROC_OBJ_LIB = $(build_libdir ) /libutf8proc .a
1210
- UTF8PROC_OBJ_HEADER = $(build_includedir ) /utf8proc .h
1211
- UTF8PROC_OBJ_TARGET = $(UTF8PROC_OBJ_LIB ) $(UTF8PROC_OBJ_HEADER )
1208
+ MOJIBAKE_SRC_TARGET = libmojibake/libmojibake .a
1209
+ MOJIBAKE_OBJ_LIB = $(build_libdir ) /libmojibake .a
1210
+ MOJIBAKE_OBJ_HEADER = $(build_includedir ) /mojibake .h
1211
+ MOJIBAKE_OBJ_TARGET = $(MOJIBAKE_OBJ_LIB ) $(MOJIBAKE_OBJ_HEADER )
1212
1212
1213
- utf8proc-v$(UTF8PROC_VER ) .tar.gz :
1214
- $(JLDOWNLOAD ) $@ http://www.public-software-group.org/pub/projects/utf8proc/v$(UTF8PROC_VER ) /$@
1215
1213
1216
- utf8proc-v$(UTF8PROC_VER ) /Makefile : utf8proc-v$(UTF8PROC_VER ) .tar.gz
1217
- $(JLCHECKSUM ) $<
1218
- $(TAR ) -xzf $<
1219
- patch $@ < utf8proc_Makefile.patch
1220
- cd utf8proc-v$(UTF8PROC_VER ) && patch < ../utf8proc_msvc.patch
1214
+ libmojibake/Makefile :
1215
+ (cd .. && git submodule init && git submodule update)
1216
+ ifeq (exists, $(shell [ -d libmojibake/.git ] && echo exists ) )
1217
+ $(MOJIBAKE_SRC_TARGET ) : libmojibake/.git/HEAD
1218
+ endif
1219
+ ifeq (exists, $(shell [ -d $(JULIAHOME ) /.git/modules/deps/libmojibake ] && echo exists ) )
1220
+ $(MOJIBAKE_SRC_TARGET ) : $(JULIAHOME ) /.git/modules/deps/libmojibake/HEAD
1221
+ endif
1222
+ $(MOJIBAKE_SRC_TARGET ) : libmojibake/Makefile
1223
+ $(MAKE ) -C libmojibake cc=" $( CC) -O2 -std=c99 $( fPIC) " AR=" $( AR) " libmojibake.a
1221
1224
touch -c $@
1225
+ libmojibake/checked : $(MOJIBAKE_SRC_TARGET )
1226
+ ifeq ($(OS ) ,$(BUILD_OS ) )
1227
+ -$(MAKE) -C libmojibake check
1228
+ endif
1229
+ echo 1 > $@
1222
1230
1223
- $(UTF8PROC_OBJ_SOURCE ) : utf8proc-v$(UTF8PROC_VER ) /Makefile
1224
- $(MAKE ) -C utf8proc-v$(UTF8PROC_VER ) cc=" $( CC) -O2 -std=c99 $( fPIC) " AR=" $( AR) " libutf8proc.a
1225
-
1226
- $(UTF8PROC_OBJ_LIB ) : $(UTF8PROC_OBJ_SOURCE )
1231
+ $(MOJIBAKE_OBJ_LIB ) : $(MOJIBAKE_SRC_TARGET )
1227
1232
cp -f $< $@
1228
1233
1229
- $(UTF8PROC_OBJ_HEADER ) : utf8proc-v $( UTF8PROC_VER ) /Makefile
1230
- cp -f utf8proc-v $( UTF8PROC_VER ) /utf8proc .h $@
1234
+ $(MOJIBAKE_OBJ_HEADER ) : libmojibake /Makefile
1235
+ cp -f libmojibake/mojibake .h $@
1231
1236
1232
- clean-utf8proc :
1233
- -$(MAKE ) -C utf8proc-v $( UTF8PROC_VER ) clean
1234
- distclean-utf8proc : clean-utf8proc
1235
- -rm -rf utf8proc-v $( UTF8PROC_VER ) .tar.gz utf8proc-v $( UTF8PROC_VER )
1237
+ clean-mojibake :
1238
+ -$(MAKE ) -C libmojibake clean
1239
+ -rm -rf $( build_libdir ) /libmojibake.a $( build_includedir ) /mojibake.h
1240
+ distclean-mojibake : clean-mojibake
1236
1241
1237
- get-utf8proc : utf8proc-v $( UTF8PROC_VER ) .tar.gz
1238
- configure-utf8proc : get-utf8proc
1239
- compile-utf8proc : $(UTF8PROC_OBJ_SOURCE )
1240
- check-utf8proc :
1241
- install-utf8proc : $(UTF8PROC_OBJ_TARGET )
1242
+ get-mojibake : libmojibake/Makefile
1243
+ configure-mojibake : get-mojibake
1244
+ compile-mojibake : $(MOJIBAKE_SRC_TARGET )
1245
+ check-mojibake : libmojibake/checked
1246
+ install-mojibake : $(MOJIBAKE_OBJ_TARGET )
1242
1247
1243
1248
# # SUITESPARSE ##
1244
1249
0 commit comments