[arch-commits] Commit in jxrlib/repos/community-x86_64 (4 files)
Filipe Laíns
ffy00 at archlinux.org
Mon Aug 20 12:26:14 UTC 2018
Date: Monday, August 20, 2018 @ 12:26:13
Author: ffy00
Revision: 372872
archrelease: copy trunk to community-x86_64
Added:
jxrlib/repos/community-x86_64/CMakeLists.txt
(from rev 372871, jxrlib/trunk/CMakeLists.txt)
jxrlib/repos/community-x86_64/PKGBUILD
(from rev 372871, jxrlib/trunk/PKGBUILD)
Deleted:
jxrlib/repos/community-x86_64/CMakeLists.txt
jxrlib/repos/community-x86_64/PKGBUILD
----------------+
CMakeLists.txt | 162 +++++++++++++++++++++++++++++++------------------------
PKGBUILD | 84 +++++++++++++++++-----------
2 files changed, 147 insertions(+), 99 deletions(-)
Deleted: CMakeLists.txt
===================================================================
--- CMakeLists.txt 2018-08-20 12:24:15 UTC (rev 372871)
+++ CMakeLists.txt 2018-08-20 12:26:13 UTC (rev 372872)
@@ -1,68 +0,0 @@
-cmake_minimum_required(VERSION 2.8)
-project(jxrlib C)
-
-set(JXRLIB_MAJOR 0)
-set(JXRLIB_MINOR 0)
-
-set(JXRLIB_LIB_VERSION ${JXRLIB_MAJOR}.${JXRLIB_MINOR}.0)
-set(JXRLIB_SO_VERSION ${JXRLIB_MAJOR})
-
-include(TestBigEndian)
-test_big_endian(ISBIGENDIAN)
-if(ISBIGENDIAN)
- set(DEF_ENDIAN -D_BIG__ENDIAN_)
-endif()
-
-add_definitions(-D__ANSI__ -DDISABLE_PERF_MEASUREMENT ${DEF_ENDIAN})
-
-include_directories(
- common/include
- image/sys
- jxrgluelib
- jxrtestlib
-)
-
-# JXR Library
-file(GLOB jpegxr_SRC image/sys/*.c image/decode/*.c image/encode/*.c)
-file(GLOB jpegxr_HDR image/sys/*.h image/decode/*.h image/encode/*.h)
-
-add_library(jpegxr SHARED ${jpegxr_SRC} ${jpegxr_HDR})
-set_target_properties(jpegxr PROPERTIES VERSION ${JXRLIB_LIB_VERSION} SOVERSION ${JXRLIB_SO_VERSION})
-
-install(TARGETS jpegxr
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib${LIB_SUFFIX}
- ARCHIVE DESTINATION lib${LIB_SUFFIX}
-)
-
-# JXR-GLUE Library
-file(GLOB jxrglue_SRC jxrgluelib/*.c jxrtestlib/*.c)
-file(GLOB jxrglue_HDR jxrgluelib/*.h jxrtestlib/*.h)
-
-add_library(jxrglue SHARED ${jxrglue_SRC} ${jxrglue_HDR})
-set_target_properties(jxrglue PROPERTIES VERSION ${JXRLIB_LIB_VERSION} SOVERSION ${JXRLIB_SO_VERSION})
-target_link_libraries(jxrglue jpegxr m)
-
-install(TARGETS jxrglue
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib${LIB_SUFFIX}
- ARCHIVE DESTINATION lib${LIB_SUFFIX}
-)
-
-# JxrEncApp Executable
-add_executable(JxrEncApp jxrencoderdecoder/JxrEncApp.c)
-target_link_libraries(JxrEncApp jxrglue)
-install(TARGETS JxrEncApp RUNTIME DESTINATION bin)
-
-# JxrDecApp Executable
-add_executable(JxrDecApp jxrencoderdecoder/JxrDecApp.c)
-target_link_libraries(JxrDecApp jxrglue)
-install(TARGETS JxrDecApp RUNTIME DESTINATION bin)
-
-# Headers
-install(FILES jxrgluelib/JXRGlue.h jxrgluelib/JXRMeta.h jxrtestlib/JXRTest.h image/sys/windowsmediaphoto.h
- DESTINATION include/jxrlib
-)
-install(DIRECTORY common/include/ DESTINATION include/jxrlib
- FILES_MATCHING PATTERN "*.h"
-)
Copied: jxrlib/repos/community-x86_64/CMakeLists.txt (from rev 372871, jxrlib/trunk/CMakeLists.txt)
===================================================================
--- CMakeLists.txt (rev 0)
+++ CMakeLists.txt 2018-08-20 12:26:13 UTC (rev 372872)
@@ -0,0 +1,94 @@
+cmake_minimum_required(VERSION 2.8)
+project(jxrlib C CXX)
+
+set(JXRLIB_MAJOR 0)
+set(JXRLIB_MINOR 0)
+
+set(JXRLIB_LIB_VERSION ${JXRLIB_MAJOR}.${JXRLIB_MINOR}.0)
+set(JXRLIB_SO_VERSION ${JXRLIB_MAJOR})
+
+#find_package(JNI)
+#if (JNI_FOUND)
+# message (STATUS "JNI_INCLUDE_DIRS=${JNI_INCLUDE_DIRS}")
+# message (STATUS "JNI_LIBRARIES=${JNI_LIBRARIES}")
+# message (STATUS "JAVA_INCLUDE_PATH=${JAVA_INCLUDE_PATH}")
+# message (STATUS "JAVA_INCLUDE_PATH2=${JAVA_INCLUDE_PATH2}")
+#endif()
+#INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH})
+#INCLUDE_DIRECTORIES(${JAVA_INCLUDE_PATH2})
+
+include(TestBigEndian)
+test_big_endian(ISBIGENDIAN)
+if(ISBIGENDIAN)
+ set(DEF_ENDIAN -D_BIG__ENDIAN_)
+endif()
+
+add_definitions(-D__ANSI__ -DDISABLE_PERF_MEASUREMENT ${DEF_ENDIAN})
+
+include_directories(
+ common/include
+ image/sys
+ jxrgluelib
+ jxrtestlib
+)
+
+# JXR Library
+file(GLOB jpegxr_SRC image/sys/*.c image/decode/*.c image/encode/*.c)
+file(GLOB jpegxr_HDR image/sys/*.h image/decode/*.h image/encode/*.h)
+
+add_library(jpegxr SHARED ${jpegxr_SRC} ${jpegxr_HDR})
+set_target_properties(jpegxr PROPERTIES VERSION ${JXRLIB_LIB_VERSION} SOVERSION ${JXRLIB_SO_VERSION})
+
+install(TARGETS jpegxr
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}
+)
+
+# JXR-GLUE Library
+file(GLOB jxrglue_SRC jxrgluelib/*.c jxrtestlib/*.c)
+file(GLOB jxrglue_HDR jxrgluelib/*.h jxrtestlib/*.h)
+
+add_library(jxrglue SHARED ${jxrglue_SRC} ${jxrglue_HDR})
+set_target_properties(jxrglue PROPERTIES VERSION ${JXRLIB_LIB_VERSION} SOVERSION ${JXRLIB_SO_VERSION})
+target_link_libraries(jxrglue jpegxr m)
+
+install(TARGETS jxrglue
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib${LIB_SUFFIX}
+ ARCHIVE DESTINATION lib${LIB_SUFFIX}
+)
+
+# JXR-JAVA Library
+#file(GLOB jxrjava_SRC java/target/swig/JXR_wrap.cxx cpp/lib/*.cpp)
+#file(GLOB jxrjava_SRC cpp/lib/*.hpp)
+
+#add_library(jxrjava SHARED ${jxrjava_SRC} ${jxrjava_HDR})
+#set_target_properties(jxrjava PROPERTIES VERSION ${JXRLIB_LIB_VERSION} SOVERSION ${JXRLIB_SO_VERSION})
+#target_link_libraries(jxrjava jpegxr m)
+
+#install(TARGETS jxrjava
+# RUNTIME DESTINATION bin
+# LIBRARY DESTINATION lib${LIB_SUFFIX}
+# ARCHIVE DESTINATION lib${LIB_SUFFIX}
+#)
+
+# JxrEncApp Executable
+add_executable(JxrEncApp jxrencoderdecoder/JxrEncApp.c)
+target_link_libraries(JxrEncApp jxrglue)
+install(TARGETS JxrEncApp RUNTIME DESTINATION bin)
+
+# JxrDecApp Executable
+add_executable(JxrDecApp jxrencoderdecoder/JxrDecApp.c)
+target_link_libraries(JxrDecApp jxrglue)
+install(TARGETS JxrDecApp RUNTIME DESTINATION bin)
+
+# Headers
+install(FILES jxrgluelib/JXRGlue.h jxrgluelib/JXRMeta.h jxrtestlib/JXRTest.h image/sys/windowsmediaphoto.h
+ DESTINATION include/jxrlib
+)
+install(DIRECTORY common/include/ DESTINATION include/jxrlib
+ FILES_MATCHING PATTERN "*.h"
+)
+
+
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-20 12:24:15 UTC (rev 372871)
+++ PKGBUILD 2018-08-20 12:26:13 UTC (rev 372872)
@@ -1,31 +0,0 @@
-# Maintainer:
-
-pkgname=jxrlib
-pkgver=0.2.1
-pkgrel=1
-pkgdesc="Open source implementation of jpegxr"
-arch=(x86_64)
-url="https://archive.codeplex.com/?p=jxrlib"
-license=(GPL)
-depends=(glibc)
-makedepends=(cmake)
-source=($pkgname-$pkgver.tar.gz::https://github.com/glencoesoftware/jxrlib/archive/v$pkgver.tar.gz
- CMakeLists.txt)
-sha256sums=('5ae964ae61f301f38a62b8e18eb8d2eee27eaf2b942477b033435ebf38fa4a19'
- '8d6d49f6288b4e7f425aff7b5e33d2dc89b6ae85fd6805ae5a103f50bb28e746')
-
-prepare() {
- cp CMakeLists.txt $pkgname-$pkgver
- mkdir -p build
-}
-
-build() {
- cd build
- cmake ../$pkgname-$pkgver \
- -DCMAKE_INSTALL_PREFIX=/usr
-}
-
-package() {
- cd build
- make DESTDIR="$pkgdir" install
-}
Copied: jxrlib/repos/community-x86_64/PKGBUILD (from rev 372871, jxrlib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-08-20 12:26:13 UTC (rev 372872)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Contributor: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=jxrlib
+pkgver=0.2.1
+pkgrel=2
+pkgdesc="Open source implementation of jpegxr"
+arch=('x86_64')
+url="https://archive.codeplex.com/?p=jxrlib"
+license=('GPL')
+depends=('glibc' 'java-runtime')
+makedepends=('cmake' 'swig' 'maven' 'java-environment')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/glencoesoftware/jxrlib/archive/v$pkgver.tar.gz"
+ 'CMakeLists.txt')
+sha512sums=('bcf69c9bec32829c266e60540fdc2e8d16d9bf7e0d3930327db5bfce6d1fc2c8b67c7a2b236d128ff3ce89b1c2a14b27a69cdf5bda365c4fcaac98d76b8bd406'
+ '832557a5aa0825132aefe38f5136159f1d2ac46bf8455745877342e08db5752c73c34f16a7edf3fd5fa8813f1c48a1b5d77d91901301e2322f18b520bbe97ae6')
+
+prepare() {
+ cp CMakeLists.txt $pkgname-$pkgver/
+}
+
+build() {
+ # Generate jni files
+ cd $pkgname-$pkgver/java
+
+ mkdir -p target/swig/ome/jxrlib
+ swig -java -c++ -package ome.jxrlib -outdir target/swig/ome/jxrlib -o target/swig/JXR_wrap.cxx JXR.i
+
+ # Build source
+ mkdir -p ../build
+ cd ../build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release
+
+ make
+
+ # Compile java library
+ cd ../java
+ mvn install -DskipTests
+}
+
+package() {
+ cd $pkgname-$pkgver/build
+
+ make DESTDIR="$pkgdir" install
+
+ cd ../java/target
+
+ install -Dm 644 $pkgname-$pkgver.jar "$pkgdir"/usr/share/java/$pkgname-$pkgver.jar
+}
More information about the arch-commits
mailing list