Skip to content

Commit

Permalink
* Upgrade presets for GSL 2.1 (issue bytedeco/javacpp#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Dec 24, 2015
1 parent f594e8d commit 2ec982b
Show file tree
Hide file tree
Showing 8 changed files with 1,969 additions and 333 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

* Avoid versioning of FFTW and GSL libraries, preventing them from working on Android ([issue #127](https://github.com/bytedeco/javacpp-presets/issues/127))
* Upgrade presets for FFmpeg 2.8.3 and Caffe, including the latest versions of their dependencies
* Upgrade presets for FFmpeg 2.8.3, GSL 2.1, and Caffe, including the latest versions of their dependencies ([issue bytedeco/javacpp#55](https://github.com/bytedeco/javacpp/issues/55))
* Add presets for TensorFlow ([issue #111](https://github.com/bytedeco/javacpp-presets/issues/111))
* Virtualize `opencv_videostab.IFrameSource` to let us implement it in Java ([issue bytedeco/javacv#277](https://github.com/bytedeco/javacv/issues/277))
* Fix MinGW-w64 builds with recent versions of GCC 5.x and potential issue with using "w32threads" for FFmpeg
Expand Down
2 changes: 1 addition & 1 deletion gsl/cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ -z "$PLATFORM" ]]; then
exit
fi

GSL_VERSION=1.16
GSL_VERSION=2.1
download ftp://ftp.gnu.org/gnu/gsl/gsl-$GSL_VERSION.tar.gz gsl-$GSL_VERSION.tar.gz

mkdir -p $PLATFORM
Expand Down
46 changes: 0 additions & 46 deletions gsl/gsl-1.16-android.patch

This file was deleted.

46 changes: 46 additions & 0 deletions gsl/gsl-2.1-android.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
diff -ruN gsl-2.1/cblas/Makefile.am gsl-2.1-android/cblas/Makefile.am
--- gsl-2.1/cblas/Makefile.am 2015-11-04 01:21:55.000000000 +0900
+++ gsl-2.1-android/cblas/Makefile.am 2015-12-24 22:10:30.143384843 +0900
@@ -1,5 +1,5 @@
lib_LTLIBRARIES = libgslcblas.la
-libgslcblas_la_LDFLAGS = $(GSLCBLAS_LDFLAGS) -version-info $(GSL_LT_CBLAS_VERSION)
+libgslcblas_la_LDFLAGS = $(GSLCBLAS_LDFLAGS) -avoid-version

pkginclude_HEADERS = gsl_cblas.h

diff -ruN gsl-2.1/cblas/Makefile.in gsl-2.1-android/cblas/Makefile.in
--- gsl-2.1/cblas/Makefile.in 2015-11-12 08:26:24.000000000 +0900
+++ gsl-2.1-android/cblas/Makefile.in 2015-12-24 22:10:37.342533156 +0900
@@ -557,7 +557,7 @@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
lib_LTLIBRARIES = libgslcblas.la
-libgslcblas_la_LDFLAGS = $(GSLCBLAS_LDFLAGS) -version-info $(GSL_LT_CBLAS_VERSION)
+libgslcblas_la_LDFLAGS = $(GSLCBLAS_LDFLAGS) -avoid-version
pkginclude_HEADERS = gsl_cblas.h
AM_CPPFLAGS = -I$(top_srcdir)
libgslcblas_la_SOURCES = sasum.c saxpy.c scasum.c scnrm2.c scopy.c \
diff -ruN gsl-2.1/Makefile.am gsl-2.1-android/Makefile.am
--- gsl-2.1/Makefile.am 2015-11-09 15:08:09.000000000 +0900
+++ gsl-2.1-android/Makefile.am 2015-12-24 22:09:31.903185006 +0900
@@ -20,7 +20,7 @@
lib_LTLIBRARIES = libgsl.la
libgsl_la_SOURCES = version.c
libgsl_la_LIBADD = $(GSL_LIBADD) $(SUBLIBS)
-libgsl_la_LDFLAGS = $(GSL_LDFLAGS) -version-info $(GSL_LT_VERSION)
+libgsl_la_LDFLAGS = $(GSL_LDFLAGS) -avoid-version
noinst_HEADERS = templates_on.h templates_off.h build.h

m4datadir = $(datadir)/aclocal
diff -ruN gsl-2.1/Makefile.in gsl-2.1-android/Makefile.in
--- gsl-2.1/Makefile.in 2015-11-12 08:26:24.000000000 +0900
+++ gsl-2.1-android/Makefile.in 2015-12-24 22:09:39.804347783 +0900
@@ -629,7 +629,7 @@
lib_LTLIBRARIES = libgsl.la
libgsl_la_SOURCES = version.c
libgsl_la_LIBADD = $(GSL_LIBADD) $(SUBLIBS)
-libgsl_la_LDFLAGS = $(GSL_LDFLAGS) -version-info $(GSL_LT_VERSION)
+libgsl_la_LDFLAGS = $(GSL_LDFLAGS) -avoid-version
noinst_HEADERS = templates_on.h templates_off.h build.h
m4datadir = $(datadir)/aclocal
m4data_DATA = gsl.m4
File renamed without changes.
2 changes: 1 addition & 1 deletion gsl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>gsl</artifactId>
<version>1.16-${project.parent.version}</version>
<version>2.1-${project.parent.version}</version>
<packaging>jar</packaging>
<name>JavaCPP Presets for GSL</name>

Expand Down
Loading

0 comments on commit 2ec982b

Please sign in to comment.