mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-20 14:31:47 +00:00
68 lines
2.4 KiB
Bash
68 lines
2.4 KiB
Bash
#! /bin/bash
|
|
|
|
# JasPer
|
|
# Source: https://github.com/jasper-software/jasper/archive/version-4.0.0/jasper-4.0.0.tar.gz
|
|
# Source: https://github.com/jasper-software/jasper/releases/download/version-2.0.33/jasper-2.0.33.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: CMake
|
|
# Recommended: Libjpeg-turbo
|
|
# Optional: FreeGlut, Doxygen, texlive
|
|
|
|
mkdir BUILD &&
|
|
cd BUILD &&
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_SKIP_INSTALL_RPATH=YES \
|
|
-DJAS_ENABLE_DOC=NO \
|
|
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/jasper-4.0.0 \
|
|
.. &&
|
|
read -p "Compile?" && make -j2 &&
|
|
|
|
sudo -S make DESTDIR=$BUILD install &&
|
|
sudo -S mkdir -pv /BMAN/install /BMAN/usr &&\
|
|
sudo -S mv $BUILD/usr/share /BMAN/usr/ && \
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
jasper: jasper (free implementation of the JPEG-2000 standard)
|
|
jasper:
|
|
jasper: The JasPer Project is an open-source initiative to provide a free
|
|
jasper: software-based reference implementation of the codec specified in the
|
|
jasper: JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1).jasper:
|
|
jasper:
|
|
jasper: Homepage: http://www.ece.uvic.ca/~mdadams/jasper/
|
|
jasper:
|
|
jasper:
|
|
jasper:
|
|
jasper:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/jasper-4.0.0-$PSUFFIX && \
|
|
cd /BMAN && \
|
|
cat > /tmp/slack-desc << "EOF"
|
|
jasper-doc: Manuals for jasper
|
|
jasper-doc:
|
|
jasper-doc: A free implementation of the JPEG-2000 standard. It provides
|
|
jasper-doc: a free software-based reference implementation of the codec
|
|
jasper-doc: specified in the PEG-2000 Part-1 standard.
|
|
jasper-doc:
|
|
jasper-doc: http://www.ece.uvic.ca/~mdadams/jasper/
|
|
jasper-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ && \
|
|
sudo -S makepkg -l y -c n $PKGS/jasper-doc-4.0.0-$NOPSUFFIX && \
|
|
sudo -S rm -rf ${BUILD}/* /BMAN/*
|