summaryrefslogtreecommitdiff
path: root/academic/seaview/seaview.SlackBuild
diff options
context:
space:
mode:
authorPetar Petrov <petar.petrov@student.oulu.fi>2015-03-27 07:58:54 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-27 07:58:54 +0700
commitc58570189ad9e3f5b13ae08737267c7d42aa2e1e (patch)
tree5d15106c11dc068533a3511bb10f0b9340f1fe63 /academic/seaview/seaview.SlackBuild
parent25b5e0f23027f4b9bb01e66d742aa4ca3a9ca2e5 (diff)
downloadslackbuilds-c58570189ad9e3f5b13ae08737267c7d42aa2e1e.tar.gz
academic/seaview: Updated for version 4.5.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/seaview/seaview.SlackBuild')
-rw-r--r--academic/seaview/seaview.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/academic/seaview/seaview.SlackBuild b/academic/seaview/seaview.SlackBuild
index 651cf2a4b3..de4b13147b 100644
--- a/academic/seaview/seaview.SlackBuild
+++ b/academic/seaview/seaview.SlackBuild
@@ -26,7 +26,7 @@
# Thanks to developer Dr. Manolo Gouy for all his help.
PRGNAM=seaview
-VERSION=${VERSION:-4.5.3.4}
+VERSION=${VERSION:-4.5.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -77,13 +77,16 @@ sed -i "/^CFLAGS/s/=/+=/" Makefile
# Enable PDF output. If you do not want it, comment out the next two
# lines. Then you do not need to install PDFlib-Lite.
-sed -i "7 c PDF_INC = /usr/include" Makefile
-sed -i "8 c PDF_LIB = /usr/lib${LIBDIRSUFFIX}" Makefile
+sed -i "8 c PDF_INC = /usr/include" Makefile
+sed -i "9 c PDF_LIB = /usr/lib${LIBDIRSUFFIX}" Makefile
+sed -i "s:#PDF_PS_FLAGS:PDF_PS_FLAGS:" Makefile
+sed -i "s:#LPDF:LPDF:" Makefile
# Point to fltk13 during compilation and make the produced executable
# aware of the libraries' custom location
-sed -i "11 c FLTK = /usr/include/fltk13" Makefile
-sed -i "15 c CONFIG = /usr/bin/fltk13-config" Makefile
+sed -i "16 c FLTK = /usr/include/fltk13" Makefile
+sed -i "18 c CONFIG = /usr/bin/fltk13-config" Makefile
+sed -i "s:#IFLTK:IFLTK:" Makefile
# Point to the correct documentation path and phyml executable name
sed -i "s:#HELPFILE:HELPFILE:" Makefile
@@ -94,8 +97,8 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
make
-install -D -m755 seaview $PKG/usr/bin/$PRGNAM
-install -D -m644 seaview.1 $PKG/usr/man/man1/$PRGNAM.1
+install -D -m755 $PRGNAM $PKG/usr/bin/$PRGNAM
+install -D -m644 $PRGNAM.1 $PKG/usr/man/man1/$PRGNAM.1
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true