Skip to content
Permalink
Browse files

Fixed ghc script to look for libraries in ${prefix}/lib.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4344 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Gregory Wright
Gregory Wright committed Dec 28, 2003
1 parent 901fb9b commit 365a070c6b2c2d0d30e20b820af05bf83bbf9116
Showing with 6 additions and 3 deletions.
  1. +6 −3 lang/ghc/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.3 2003/12/23 14:40:26 gwright Exp $
# $Id: Portfile,v 1.4 2003/12/28 21:36:44 gwright Exp $

PortSystem 1.0
name ghc
@@ -21,8 +21,8 @@ long_description \
and a space and time profiler.

homepage http://www.haskell.org/ghc/
master_sites http://www.haskell.org/ghc/dist/${version}/:source \
http://haskell.org/ghc/dist/6.0.1/MacOSX/:bootstrap \
master_sites ${homepage}/dist/${version}/:source \
${homepage}/dist/6.0.1/MacOSX/:bootstrap \
http://distfiles.opendarwin.org/:bootstrap

use_bzip2 yes
@@ -65,6 +65,7 @@ configure.env LDFLAGS="-L${prefix}/lib" CPPFLAGS="-I${prefix}/include" \
CFLAGS="-I${prefix}/include"

configure.args --prefix=${destroot}/${prefix} \
--mandir=${destroot}/${prefix}/share/man/ \
--with-ghc='${workpath}/${name}-bootstrap/bin/ghc -pgmP \"gcc3 -E -traditional\"' \
--with-gcc=gcc3

@@ -73,5 +74,7 @@ post-destroot { reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${pref
reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/ghc-pkg
reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/ghcprof
reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/hsc2hs

reinplace "s|GHCBIN \\\$TOPDIROPT|GHCBIN \\\$TOPDIROPT -L${prefix}/lib|" ${destroot}/${prefix}/bin/ghc
}

0 comments on commit 365a070

Please sign in to comment.
You can’t perform that action at this time.