the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: ghc
Version: 6.6
Revision: 2
Depends: readline5-shlibs (>= 5.0-1004), gmp-shlibs (>= 4.1.4-1), libmpfr1-shlibs
BuildDepends: <<
readline5 (>= 5.0-1004), gmp (>= 4.1.4-1), libmpfr1, docbook-xsl,
fink (>= 0.24.12)
<<
# x86 bootstrap not yet tested (no x86 mac here)
Architecture: powerpc
Source: http://www.haskell.org/ghc/dist/%v/%n-%v-src.tar.bz2
Source-MD5: 2427a8d7d14f86e0878df6b54938acf7
SourceDirectory: %n-%v
Source2: http://www.haskell.org/ghc/dist/%v/%n-%v-src-extralibs.tar.bz2
Source2-MD5: 14b22fce36caffa509046361724bc119
Source3: http://www.haskell.org/%n/dist/6.6/MacOSX/%n-6.4-darwin-bootstrap-tiger.tar.bz2
Source3-MD5: 1665720d4d35cf89b9efa7865d0228f6
PatchFile: %n.patch
PatchFile-MD5: a86887b351cf52a8a11601fa21397d7c
PatchScript: <<
#!/bin/sh -ev
BS=../%n-bootstrap
BSVER=6.4
BSLIB=$BS/lib/%n-$BSVER
OLDROOT=/opt/local
sed -i.bak -e "2,3s,$OLDROOT,%b/$BS," -e "s,$OLDROOT,%p,g" $BS/bin/%n-$BSVER
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-asm
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-split
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-$BSVER
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-pkg.bin
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/hsc2hs-bin
sed -i.bak -e "s,$OLDROOT,%b/$BS,g" $BSLIB/package.conf
cat > mk/build.mk <
SRC_CC_OPTS += -I%p/include
SRC_HC_OPTS += -I%p/include -L%p/lib
EXTRA_HSC2HS_OPTS += -I%p/include
EXTRA_LD_OPTS += -L%p/lib
EXTRA_HC_OPTS += -H128M
BUILDMK
sed -e 's|@FINKPREFIX@|%p|g' %{PatchFile} | patch -p1
<<
ConfigureParams: --mandir=%d/share/man/ --with-ghc='%b/../%n-bootstrap/bin/ghc' --disable-openal --disable-alut
CompileScript: <<
./configure %c
make
cd docs/users_guide && make html
sed -i.bak -e 's,},} -I%p/include -L%p/lib,' driver/ghc/ghc-%v
<<
InstallScript: <<
make install prefix=%i
mkdir -p %i/share/doc/%n
cp -r docs/users_guide/users_guide %i/share/doc/%n
mkdir -p %i/share/man/man1
cp ghc.1 hp2ps.1 %i/share/man/man1
<<
SplitOff: <<
Package: %N-prof
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*_p.a
<<
Description: Glasgow Haskell Compiler (profiling libraries)
DescDetail: <<
This package contains additional profiling libraries. They are not
needed for normal use.
<<
DocFiles: LICENSE
<<
SplitOff2: <<
Package: %N-dev
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*.a
lib/%N-%v/include
<<
Description: Glasgow Haskell Compiler
DescDetail: <<
This package installs the includes and libraries needed to
compile Haskell into native code rather than interpret it.
<<
DocFiles: LICENSE
<<
DocFiles: ANNOUNCE LICENSE README
Description: Glasgow Haskell Interpreter
DescDetail: <<
The Glasgow Haskell Compiler/Interpreter is a robust, fully-featured,
optimising compiler and interactive environment for Haskell 98, GHC
compiles Haskell to either native code or C. It implements numerous
experimental language extensions to Haskell 98, for example: concurrency,
a foreign language interface, multi-parameter type classes, scoped type
variables, existential and universal quantification, unboxed types,
exceptions, weak pointers, and so on. GHC comes with a generational
garbage collector, and a space and time profiler.
<<
DescPort: <<
This port borrows heavily from Gregory Wright's DarwinPorts package.
<<
Homepage: http://www.haskell.org/ghc/
License: BSD
Maintainer: Brendan Cully
Package: ghc
Version: 6.6
Revision: 2
Depends: readline5-shlibs (>= 5.0-1004), gmp-shlibs (>= 4.2.1-1), libmpfr1-shlibs
BuildDepends: <<
readline5 (>= 5.0-1004), gmp (>= 4.2.1-1), libmpfr1, docbook-xsl,
fink (>= 0.24.12)
<<
# x86 bootstrap not yet tested (no x86 mac here)
Architecture: powerpc
Source: http://www.haskell.org/ghc/dist/%v/%n-%v-src.tar.bz2
Source-MD5: 2427a8d7d14f86e0878df6b54938acf7
SourceDirectory: %n-%v
Source2: http://www.haskell.org/ghc/dist/%v/%n-%v-src-extralibs.tar.bz2
Source2-MD5: 14b22fce36caffa509046361724bc119
Source3: http://www.haskell.org/%n/dist/6.6/MacOSX/%n-6.4-darwin-bootstrap-tiger.tar.bz2
Source3-MD5: 1665720d4d35cf89b9efa7865d0228f6
PatchFile: %n.patch
PatchFile-MD5: a86887b351cf52a8a11601fa21397d7c
PatchScript: <<
#!/bin/sh -ev
BS=../%n-bootstrap
BSVER=6.4
BSLIB=$BS/lib/%n-$BSVER
OLDROOT=/opt/local
sed -i.bak -e "2,3s,$OLDROOT,%b/$BS," -e "s,$OLDROOT,%p,g" $BS/bin/%n-$BSVER
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-asm
sed -i.bak -e "s,$OLDROOT/bin/,/usr/bin/env ," $BSLIB/%n-split
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-$BSVER
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/%n-pkg.bin
install_name_tool -change $OLDROOT/lib/libgmp.3.dylib %p/lib/libgmp.3.dylib $BSLIB/hsc2hs-bin
sed -i.bak -e "s,$OLDROOT,%b/$BS,g" $BSLIB/package.conf
cat > mk/build.mk <
SRC_CC_OPTS += -I%p/include
SRC_HC_OPTS += -I%p/include -L%p/lib
EXTRA_HSC2HS_OPTS += -I%p/include
EXTRA_LD_OPTS += -L%p/lib
EXTRA_HC_OPTS += -H128M
BUILDMK
sed -e 's|@FINKPREFIX@|%p|g' %{PatchFile} | patch -p1
<<
ConfigureParams: --mandir=%d/share/man/ --with-ghc='%b/../%n-bootstrap/bin/ghc' --disable-openal --disable-alut
CompileScript: <<
./configure %c
make
cd docs/users_guide && make html
sed -i.bak -e 's,},} -I%p/include -L%p/lib,' driver/ghc/ghc-%v
<<
InstallScript: <<
make install prefix=%i
mkdir -p %i/share/doc/%n
cp -r docs/users_guide/users_guide %i/share/doc/%n
mkdir -p %i/share/man/man1
cp ghc.1 hp2ps.1 %i/share/man/man1
<<
SplitOff: <<
Package: %N-prof
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*_p.a
<<
Description: Glasgow Haskell Compiler (profiling libraries)
DescDetail: <<
This package contains additional profiling libraries. They are not
needed for normal use.
<<
DocFiles: LICENSE
<<
SplitOff2: <<
Package: %N-dev
Depends: %N (= %v-%r)
Files: <<
lib/%N-%v/*.a
lib/%N-%v/include
<<
Description: Glasgow Haskell Compiler
DescDetail: <<
This package installs the includes and libraries needed to
compile Haskell into native code rather than interpret it.
<<
DocFiles: LICENSE
<<
DocFiles: ANNOUNCE LICENSE README
Description: Glasgow Haskell Interpreter
DescDetail: <<
The Glasgow Haskell Compiler/Interpreter is a robust, fully-featured,
optimising compiler and interactive environment for Haskell 98, GHC
compiles Haskell to either native code or C. It implements numerous
experimental language extensions to Haskell 98, for example: concurrency,
a foreign language interface, multi-parameter type classes, scoped type
variables, existential and universal quantification, unboxed types,
exceptions, weak pointers, and so on. GHC comes with a generational
garbage collector, and a space and time profiler.
<<
DescPort: <<
This port borrows heavily from Gregory Wright's DarwinPorts package.
<<
Homepage: http://www.haskell.org/ghc/
License: BSD
Maintainer: Brendan Cully