aboutsummaryrefslogtreecommitdiff
path: root/haskell/haskell-platform/haskell-platform.SlackBuild
diff options
context:
space:
mode:
authorChristoph Willing <c.willing@uq.edu.au>2012-09-20 23:24:29 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-22 11:40:54 -0500
commit2979588139062af31cb4f2e97f1a2664ace4179e (patch)
treef2209492efe5f2ac1081a39d79514df060f8d3ba /haskell/haskell-platform/haskell-platform.SlackBuild
parente13e83029ce0ded6fe251c7d39ee8b9816a4d5e1 (diff)
haskell/haskell-platform: Use proper libdir in packaging
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'haskell/haskell-platform/haskell-platform.SlackBuild')
-rw-r--r--haskell/haskell-platform/haskell-platform.SlackBuild28
1 files changed, 8 insertions, 20 deletions
diff --git a/haskell/haskell-platform/haskell-platform.SlackBuild b/haskell/haskell-platform/haskell-platform.SlackBuild
index b119e9a8b0..5204ecaa88 100644
--- a/haskell/haskell-platform/haskell-platform.SlackBuild
+++ b/haskell/haskell-platform/haskell-platform.SlackBuild
@@ -4,11 +4,8 @@
#
# Written by Jockey S. Kyd (jockey dot kyd at gmail dot com)
# Public domain
-
-# 20120712 Christoph Willing <c.willing@uq.edu.au>
-# - bump version to 2012.2.0.0
-# - add configure option --enable-unsupported-ghc-version
-# (to allow latest ghc version used in current SBo)
+#
+# From 20120712, Christoph Willing <c.willing@uq.edu.au>
PRGNAM=haskell-platform
VERSION=${VERSION:-2012.2.0.0}
@@ -56,32 +53,23 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# If using freeflut, the libs may have been
-# named either libglut.* (replacing mesa's libglut.*) or libfreeglut.*
-strings /usr/lib${LIBDIRSUFFIX}/libglut.so |grep glEnd >/dev/null 2>/dev/null
-if [ $? -eq 0 ]; then
- GLUTFLAGS="-lglut "
-else
- GLUTFLAGS="-lfreeglut "
-fi
+# Ensure libdir is passed to each package
+patch -p0 < $CWD/honour_libdir.diff
+
+# get path and version of ghc
+GHC_VERSION=$(ghc --numeric-version)
# Recommended ghc version for this haskell-platform is ghc-7.4.1 but
# to allow for other ghc versions (current SBo is ghc-7.4.2),
# configure needs the --enable-unsupported-ghc-version option.
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-LDFLAGS="$GLUTFLAGS" \
./configure \
--enable-unsupported-ghc-version \
--prefix=/usr \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --libdir=/usr/lib${LIBDIRSUFFIX}
-
-# get path and version of ghc
-eval $(grep '^GHC=' scripts/config)
-eval $(grep '^GHC_PKG=' scripts/config)
-GHC_VERSION=$($GHC --numeric-version)
+ --libdir=/usr/lib${LIBDIRSUFFIX}/ghc-${GHC_VERSION}
make