| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: haskell.mk,v 1.40 2022/02/11 05:24:06 pho Exp $ | | 1 | # $NetBSD: haskell.mk,v 1.41 2022/02/12 08:38:15 pho Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment handles Haskell Cabal packages. Package | | 3 | # This Makefile fragment handles Haskell Cabal packages. Package |
4 | # configuration, building, installation, registration and unregistration | | 4 | # configuration, building, installation, registration and unregistration |
5 | # are fully automated. See also mk/haskell/README.md for a packaging guide. | | 5 | # are fully automated. See also mk/haskell/README.md for a packaging guide. |
6 | # | | 6 | # |
7 | # Package-settable variables: | | 7 | # Package-settable variables: |
8 | # | | 8 | # |
9 | # PKGNAME | | 9 | # PKGNAME |
10 | # Defaults to hs-${DISTNAME}. | | 10 | # Defaults to hs-${DISTNAME}. |
11 | # | | 11 | # |
12 | # HOMEPAGE | | 12 | # HOMEPAGE |
13 | # MASTER_SITES | | 13 | # MASTER_SITES |
14 | # Default to HackageDB URLs. | | 14 | # Default to HackageDB URLs. |
| @@ -104,27 +104,27 @@ HOMEPAGE?= http://hackage.haskell.org/pa | | | @@ -104,27 +104,27 @@ HOMEPAGE?= http://hackage.haskell.org/pa |
104 | # undesirable because we would be silently depending on it. | | 104 | # undesirable because we would be silently depending on it. |
105 | .if empty(USE_TOOLS:Mpkg-config) | | 105 | .if empty(USE_TOOLS:Mpkg-config) |
106 | TOOLS_FAIL+= pkg-config | | 106 | TOOLS_FAIL+= pkg-config |
107 | .endif | | 107 | .endif |
108 | | | 108 | |
109 | # GHC can be a memory hog, so don't apply regular limits. | | 109 | # GHC can be a memory hog, so don't apply regular limits. |
110 | UNLIMIT_RESOURCES+= datasize virtualsize | | 110 | UNLIMIT_RESOURCES+= datasize virtualsize |
111 | | | 111 | |
112 | HASKELL_OPTIMIZATION_LEVEL?= 2 | | 112 | HASKELL_OPTIMIZATION_LEVEL?= 2 |
113 | HASKELL_ENABLE_SHARED_LIBRARY?= yes | | 113 | HASKELL_ENABLE_SHARED_LIBRARY?= yes |
114 | HASKELL_ENABLE_LIBRARY_PROFILING?= yes | | 114 | HASKELL_ENABLE_LIBRARY_PROFILING?= yes |
115 | HASKELL_ENABLE_HADDOCK_DOCUMENTATION?= yes | | 115 | HASKELL_ENABLE_HADDOCK_DOCUMENTATION?= yes |
116 | | | 116 | |
117 | .include "../../lang/ghc90/buildlink3.mk" | | 117 | .include "../../lang/ghc92/buildlink3.mk" |
118 | | | 118 | |
119 | # Some Cabal packages requires preprocessors to build, and we don't | | 119 | # Some Cabal packages requires preprocessors to build, and we don't |
120 | # want them to implicitly depend on such tools. Place dummy scripts by | | 120 | # want them to implicitly depend on such tools. Place dummy scripts by |
121 | # default. | | 121 | # default. |
122 | .include "../../mk/haskell/tools/alex.mk" | | 122 | .include "../../mk/haskell/tools/alex.mk" |
123 | .include "../../mk/haskell/tools/cpphs.mk" | | 123 | .include "../../mk/haskell/tools/cpphs.mk" |
124 | .include "../../mk/haskell/tools/happy.mk" | | 124 | .include "../../mk/haskell/tools/happy.mk" |
125 | | | 125 | |
126 | # Tools | | 126 | # Tools |
127 | _HASKELL_BIN= ${BUILDLINK_PREFIX.ghc:U${PREFIX}}/bin/ghc | | 127 | _HASKELL_BIN= ${BUILDLINK_PREFIX.ghc:U${PREFIX}}/bin/ghc |
128 | _HASKELL_PKG_BIN= ${BUILDLINK_PREFIX.ghc:U${PREFIX}}/bin/ghc-pkg | | 128 | _HASKELL_PKG_BIN= ${BUILDLINK_PREFIX.ghc:U${PREFIX}}/bin/ghc-pkg |
129 | | | 129 | |
130 | _HASKELL_VERSION_CMD= ${_HASKELL_BIN} -V 2>/dev/null | ${CUT} -d ' ' -f 8 | | 130 | _HASKELL_VERSION_CMD= ${_HASKELL_BIN} -V 2>/dev/null | ${CUT} -d ' ' -f 8 |