diff options
author | David Spencer <baildon.research@googlemail.com> | 2012-05-20 17:00:30 -0400 |
---|---|---|
committer | Erik Hanson <erik@slackbuilds.org> | 2012-05-21 17:58:12 -0500 |
commit | 4cf46fa8c5b0d59c8192b83761919dad353b977b (patch) | |
tree | a557b460f4a95557960d30cfbf882e2a458e306e /graphics/luminance-hdr/luminance-hdr.SlackBuild | |
parent | c462791b5a2a0c5ca0502b7bf8dae5d90f1a0b1e (diff) | |
download | slackbuilds-4cf46fa8c5b0d59c8192b83761919dad353b977b.tar.gz |
graphics/luminance-hdr: Updated for version 2.2.1.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/luminance-hdr/luminance-hdr.SlackBuild')
-rw-r--r-- | graphics/luminance-hdr/luminance-hdr.SlackBuild | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/graphics/luminance-hdr/luminance-hdr.SlackBuild b/graphics/luminance-hdr/luminance-hdr.SlackBuild index 15f11dcfc4..5748aa0aa3 100644 --- a/graphics/luminance-hdr/luminance-hdr.SlackBuild +++ b/graphics/luminance-hdr/luminance-hdr.SlackBuild @@ -23,13 +23,15 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=luminance-hdr -VERSION=${VERSION:-2.1.0} +VERSION=${VERSION:-2.2.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + # SSE2 instructions are now *required* at runtime, so force i686 to alert + # users of older cpus -- not the same thing, but the best we can do :-( + i?86) ARCH=i686 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,16 +42,12 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then +if [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" - SSE2=${SSE2:-yes} else SLKCFLAGS="-O2" LIBDIRSUFFIX="" @@ -61,30 +59,27 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf ${PRGNAM}-${VERSION} -tar xvf $CWD/${PRGNAM}-${VERSION}.tar.gz +tar xvf $CWD/${PRGNAM}-${VERSION}.tar.bz2 cd ${PRGNAM}-${VERSION} chown -R root:root . chmod -R u+w,go+r-w,a-s . -# Upstream unconditionally assumes SSE2 optimisation. -# We can do better than that :-) -if [ ${SSE2:-no} = "no" ]; then - sed -e 's/ -msse2//' -i project.pro -fi - -qmake \ - INSTALL_ROOT=$PKG \ - PREFIX=/usr \ - QMAKE_CFLAGS="$SLKCFLAGS" \ - QMAKE_CXXFLAGS="$SLKCFLAGS" -make -make INSTALL_ROOT=$PKG install +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ AUTHORS BUGS Changelog INSTALL LICENSE README TODO \ - $CWD/$PRGNAM.SlackBuild \ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |