Date: Friday, April 28, 2023 @ 07:34:49 Author: arojas Revision: 1449047
archrelease: copy trunk to community-x86_64 Added: jxrlib/repos/community-x86_64/CMakeLists.txt (from rev 1449046, jxrlib/trunk/CMakeLists.txt) jxrlib/repos/community-x86_64/PKGBUILD (from rev 1449046, jxrlib/trunk/PKGBUILD) Deleted: jxrlib/repos/community-x86_64/CMakeLists.txt jxrlib/repos/community-x86_64/PKGBUILD ----------------+ CMakeLists.txt | 188 +++++++++++++++++++++++++++---------------------------- PKGBUILD | 84 +++++++++--------------- 2 files changed, 125 insertions(+), 147 deletions(-) Deleted: CMakeLists.txt =================================================================== --- CMakeLists.txt 2023-04-28 07:34:34 UTC (rev 1449046) +++ CMakeLists.txt 2023-04-28 07:34:49 UTC (rev 1449047) @@ -1,94 +0,0 @@ -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" -) - - Copied: jxrlib/repos/community-x86_64/CMakeLists.txt (from rev 1449046, jxrlib/trunk/CMakeLists.txt) =================================================================== --- CMakeLists.txt (rev 0) +++ CMakeLists.txt 2023-04-28 07:34:49 UTC (rev 1449047) @@ -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 2023-04-28 07:34:34 UTC (rev 1449046) +++ PKGBUILD 2023-04-28 07:34:49 UTC (rev 1449047) @@ -1,53 +0,0 @@ -# Maintainer: Filipe Laíns (FFY00) <la...@archlinux.org> -# Contributor: Antonio Rojas <aro...@archlinux.org> - -pkgname=jxrlib -pkgver=0.2.4 -pkgrel=1 -pkgdesc="Open source implementation of jpegxr" -arch=('x86_64') -url="https://archive.codeplex.com/?p=jxrlib" -license=('GPL') -depends=('glibc') -optdepends=('java-runtime: Java bindings') -makedepends=('cmake' 'swig' 'maven' 'java-environment') -source=($pkgname-$pkgver.tar.gz::https://github.com/glencoesoftware/jxrlib/archive/v$pkgver/$pkgname-$pkgver.tar.gz - CMakeLists.txt) -sha512sums=('e93fe0fbd63a36f943504f0ebf2e3f2679ec3db8997927c405b8e6310f5b55b6dd5e08cdc2e5bf09681c84da923b8c770f03bf22a21746ff5cef01b4ef8de96a' - '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 -} Copied: jxrlib/repos/community-x86_64/PKGBUILD (from rev 1449046, jxrlib/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2023-04-28 07:34:49 UTC (rev 1449047) @@ -0,0 +1,31 @@ +# Maintainer: +# Contributor: Filipe Laíns (FFY00) <la...@archlinux.org> +# Contributor: Antonio Rojas <aro...@archlinux.org> + +pkgname=jxrlib +pkgver=0.2.4 +pkgrel=2 +pkgdesc="Open source implementation of jpegxr" +arch=('x86_64') +url="https://archive.codeplex.com/?p=jxrlib" +license=('GPL') +depends=('glibc') +makedepends=('cmake') +source=(https://github.com/glencoesoftware/jxrlib/archive/v$pkgver/$pkgname-$pkgver.tar.gz + CMakeLists.txt) +sha512sums=('e93fe0fbd63a36f943504f0ebf2e3f2679ec3db8997927c405b8e6310f5b55b6dd5e08cdc2e5bf09681c84da923b8c770f03bf22a21746ff5cef01b4ef8de96a' + '832557a5aa0825132aefe38f5136159f1d2ac46bf8455745877342e08db5752c73c34f16a7edf3fd5fa8813f1c48a1b5d77d91901301e2322f18b520bbe97ae6') + +prepare() { + cp CMakeLists.txt $pkgname-$pkgver/ +} + +build() { + cmake -B build -S $pkgname-$pkgver \ + -DCMAKE_INSTALL_PREFIX=/usr + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build +}