Skip to content
Permalink
Browse files

Updated for Panther. Still needs gcc-3.1 until the next release.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3864 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Gregory Wright
Gregory Wright committed Oct 30, 2003
1 parent 4602983 commit 220555ffcd3807debd77b9af576270595c6b64f6
Showing with 6 additions and 3 deletions.
  1. +6 −3 lang/ghc/Portfile
@@ -1,4 +1,4 @@
# $Id: Portfile,v 1.1 2003/08/19 13:55:13 gwright Exp $
# $Id: Portfile,v 1.2 2003/10/30 22:33:31 gwright Exp $

PortSystem 1.0
name ghc
@@ -33,7 +33,8 @@ distfiles ${name}-${version}-src.tar.bz2:source \
checksums ghc-6.0.1-src.tar.bz2 md5 6e258de758b34905ecfc636a38fa9e23 \
ghc-6.0.1-darwin-bootstrap.tar.bz2 md5 280afe385405fa437ae274bfab2c3250

patchfiles patch-configure.in patch-Linker.c
patchfiles patch-configure.in patch-Linker.c patch-InteractiveUI.hs
# patch-ghc-split.lprl

depends_lib lib:libreadline.4:readline lib:libgmp.3:gmp \
lib:libdl.1:dlcompat
@@ -50,6 +51,7 @@ pre-configure { set cfg [open "${worksrcpath}/mk/build.mk" w]
puts $cfg "ReadlineIncludePath=${prefix}/include"
puts $cfg "SRC_CC_OPTS += -I${prefix}/include"
puts $cfg "SRC_HC_OPTS += -I${prefix}/include -L${prefix}/lib"
puts $cfg "SRC_HC_OPTS += -pgmP \"gcc3 -E -traditional\""
puts $cfg "EXTRA_HSC2HS_OPTS += -I${prefix}/include"
puts $cfg "EXTRA_LD_OPTS += -L${prefix}/lib"
close $cfg
@@ -64,7 +66,8 @@ configure.env LDFLAGS="-L${prefix}/lib" CPPFLAGS="-I${prefix}/include" \
CFLAGS="-I${prefix}/include"

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

post-destroot { reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/ghc
reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/ghci

0 comments on commit 220555f

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