aboutsummaryrefslogtreecommitdiffstats
path: root/devel/hs-tclhaskell-ghc/pkg-install.in
blob: 16cbef5544a6a9a9c87a8510b059ea9252e5ef81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

GHC_LIB=$PKG_PREFIX/lib/ghc-GHC_VERSION

if [ x"$2" = xPOST-INSTALL ]; then
cat << CONFEOF | $PKG_PREFIX/bin/ghc-pkg -a
Package
   {name = "TclHaskell",
    import_dirs = ["$GHC_LIB/imports/tclhaskell/"],
    source_dirs = [],
    library_dirs = ["$GHC_LIB/"],
    hs_libraries = ["HSTclHaskell"],
    extra_libraries = ["tcl83","tk83","HSTclHaskell_cbits"],
    include_dirs = ["$GHC_LIB/include"],
    c_includes = [],
    package_deps = [ "rts","lang","concurrent" ],
    extra_ghc_opts = [ "-fglasgow-exts", "-fvia-C" ],
    extra_cc_opts = [],
    extra_ld_opts = [ "-L$PKG_PREFIX/lib -lncurses"  ]
}
CONFEOF
fi