milis/talimatname/genel/o/openjpeg2/talimat

33 lines
950 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# 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
2018-08-01 13:31:40 +02:00
# Grup: medya
2018-06-09 00:06:58 +02:00
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
}