Skip to content

Commit

Permalink
Updated for Panther. Still needs gcc-3.1 until the next release.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@3864 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Gregory Wright committed Oct 30, 2003
1 parent 4602983 commit 220555f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions 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 PortSystem 1.0
name ghc name ghc
Expand Down Expand Up @@ -33,7 +33,8 @@ distfiles ${name}-${version}-src.tar.bz2:source \
checksums ghc-6.0.1-src.tar.bz2 md5 6e258de758b34905ecfc636a38fa9e23 \ checksums ghc-6.0.1-src.tar.bz2 md5 6e258de758b34905ecfc636a38fa9e23 \
ghc-6.0.1-darwin-bootstrap.tar.bz2 md5 280afe385405fa437ae274bfab2c3250 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 \ depends_lib lib:libreadline.4:readline lib:libgmp.3:gmp \
lib:libdl.1:dlcompat lib:libdl.1:dlcompat
Expand All @@ -50,6 +51,7 @@ pre-configure { set cfg [open "${worksrcpath}/mk/build.mk" w]
puts $cfg "ReadlineIncludePath=${prefix}/include" puts $cfg "ReadlineIncludePath=${prefix}/include"
puts $cfg "SRC_CC_OPTS += -I${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 += -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_HSC2HS_OPTS += -I${prefix}/include"
puts $cfg "EXTRA_LD_OPTS += -L${prefix}/lib" puts $cfg "EXTRA_LD_OPTS += -L${prefix}/lib"
close $cfg close $cfg
Expand All @@ -64,7 +66,8 @@ configure.env LDFLAGS="-L${prefix}/lib" CPPFLAGS="-I${prefix}/include" \
CFLAGS="-I${prefix}/include" CFLAGS="-I${prefix}/include"


configure.args --prefix=${destroot}/${prefix} \ 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 post-destroot { reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/ghc
reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/ghci reinplace s|${destroot}/${prefix}|${prefix}|g ${destroot}/${prefix}/bin/ghci
Expand Down

0 comments on commit 220555f

Please sign in to comment.