milis/talimatname/genel/o/openjpeg2/talimat

33 lines
950 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Açık kaynaklı bir JPEG 2000 codec bileşeni
# URL: https://github.com/uclouvain/openjpeg
# Paketçi: Cihan_Alkan
# Gerekler: zlib libpng libtiff lcms2 cmake doxygen
# Grup: medya
isim=openjpeg2
surum=2.3.0
devir=1
kaynak=(https://github.com/uclouvain/openjpeg/archive/v2.3.0.tar.gz::openjpeg-${surum}.tar.gz)
derle() {
mkdir build
# remove thirdparty libs
sed -i '/add_subdirectory(thirdparty)/d' openjpeg-${surum}/CMakeLists.txt
# Install doxygen docs to the right directory
sed -i -e "s:DESTINATION\ share/doc:DESTINATION\ share/doc/${isim}:" openjpeg-${surum}/doc/CMakeLists.txt
cd build
cmake "../openjpeg-${surum}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_DOC=on
make
make DESTDIR="${PKG}" install
install -m755 -d "${PKG}/usr/share/licenses/openjpeg2"
mv ${PKG}/usr/share/doc/openjpeg-*/LICENSE ${PKG}/usr/share/licenses/openjpeg2
rm -rf ${PKG}/usr/share/doc
}