]> granicus.if.org Git - libjpeg-turbo/commitdiff
OS X Tiger requires that JNI libraries have the extension .jnilib, so create a sym...
authorDRC <dcommander@users.sourceforge.net>
Sat, 5 Feb 2011 04:41:36 +0000 (04:41 +0000)
committerDRC <dcommander@users.sourceforge.net>
Sat, 5 Feb 2011 04:41:36 +0000 (04:41 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@343 632fc199-4ca6-4c93-a231-07263d6284db

configure.ac
release/makemacpkg.in

index b95a85e8eede1908aae9292a39f74a926e8c39ce..73adc925a652a7aab7e57c6bdf786c25f15e9a79 100644 (file)
@@ -231,9 +231,11 @@ AM_CONDITIONAL([WITH_ARITH_DEC], [test "x$with_arith_dec" != "xno"])
 
 AM_CONDITIONAL([WITH_ARITH], [test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"])
 
+BUILDJNILIB=0
 case $host_os in
   darwin*)
     DEFAULT_JAVA_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
+    BUILDJNILIB=1
     ;;
   solaris*)
     DEFAULT_JAVA_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris'
@@ -263,6 +265,7 @@ else
     AC_MSG_RESULT(no)
 fi
 AM_CONDITIONAL([WITH_JNI], [test "x$with_jni" = "xyes"])
+AC_SUBST(BUILDJNILIB)
 
 # SIMD is optional
 AC_ARG_WITH([simd],
index e285e6b2e499c449d12cee411662563ef2d72c03..5f5e2b44bb18ce155b68ecff8a702e7204728ad7 100644 (file)
@@ -28,6 +28,7 @@ VERSION=@VERSION@
 BUILD=@BUILD@
 SRCDIR=@srcdir@
 BUILDDIR32=@srcdir@/osxx86
+BUILDJNILIB=@BUILDJNILIB@
 if [ $# -gt 0 ]; then
        if [ "$1" = "universal" ]; then
                UNIVERSAL=1
@@ -118,6 +119,9 @@ install_name_tool -id libturbojpeg.dylib $PKGROOT/usr/lib/libturbojpeg.dylib
 
 ln -fs /usr/include/turbojpeg.h $PKGROOT/opt/$PACKAGE_NAME/include/
 ln -fs /usr/lib/libturbojpeg.a $PKGROOT/opt/$PACKAGE_NAME/lib/
+if [ $BUILDJNILIB = 1 ]; then
+       ln -fs libturbojpeg.dylib $PKGROOT/usr/lib/libturbojpeg.jnilib
+fi
 if [ ! -h $PKGROOT/opt/$PACKAGE_NAME/lib32 ]; then
        ln -fs lib $PKGROOT/opt/$PACKAGE_NAME/lib32
 fi