# Unregisterised HC packages are architecture dependent. We have to
# create more HC packages to support more architectures.
ONLY_FOR_PLATFORM= NetBSD-*-i386 FreeBSD-*-i386
-# Note: Darwin-*-powerpc is temporarily disabled for now. It shall come back in the near future. Thanks for your patience.
+# Note: Darwin-*-powerpc is temporarily disabled for now. It shall
+# come back in the near future. Thanks for your patience.
+
+# We must provide the real pass to gcc to the ./configure script,
+# because GHC has a runtime dependency on it. Aren't there any better
+# way than this?
+.include "../../mk/compiler.mk"
+.if empty(CCPATH)
+WARNINGS+= "This package depends on pkgsrc's undocumented variable CCPATH but it disappeared somehow."
+WARNINGS+= "Using hard-coded /usr/bin/gcc as the C compiler..."
+CONFIGURE_ARGS+= --with-gcc=/usr/bin/gcc
+.else
+CONFIGURE_ARGS+= --with-gcc=${CCPATH}
+.endif
USE_TOOLS+= gmake bsdtar perl:run
CONFIGURE_ENV+= PerlCmd=${PERL5:Q}
lib/${PKGNAME}/package.conf.d/dph-seq-0.4.0-1f5167ea371010387123b68e975177b2.conf
lib/${PKGNAME}/package.conf.d/extensible-exceptions-0.1.1.1-95db30aec4429ef77db437055a224b2f.conf
lib/${PKGNAME}/package.conf.d/filepath-1.1.0.3-07812de93a673f50011d47451bcaac87.conf
-lib/${PKGNAME}/package.conf.d/${PKGNAME}-359a715c922d608b78bb3526fb1fa3dd.conf
+lib/${PKGNAME}/package.conf.d/${PKGNAME}-420e93e9c9ab3e0e8c66592c5c9f65e3.conf
lib/${PKGNAME}/package.conf.d/ghc-binary-0.5.0.2-359d07c3fa596bee47da084cc306672c.conf
lib/${PKGNAME}/package.conf.d/ghc-prim-0.2.0.0-3fbcc20c802efcd7c82089ec77d92990.conf
lib/${PKGNAME}/package.conf.d/haskell98-1.0.1.1-0fdaf3b26bc38c43ce8371edf538dbf6.conf
SHA1 (patch-ab) = 68c78447f458958a8cfdd316991444fbdae5bc31
SHA1 (patch-af) = 81ae37eeaca5992868f6955b99113aaae010df22
SHA1 (patch-ah) = 5470ab2e1bb746ef3009e5f02ac0b28b8e9d9688
+SHA1 (patch-ak) = de67817c6e310c28e8012790bf0feb43d729dd30
--- /dev/null
+$NetBSD$
+
+--- libraries/integer-gmp/gmp/config.mk.in.orig 2009-12-11 03:25:53.000000000 +0900
++++ libraries/integer-gmp/gmp/config.mk.in
+@@ -5,3 +5,5 @@ endif
+ ifeq "$(HaveFrameworkGMP)" ""
+ HaveFrameworkGMP = @HaveFrameworkGMP@
+ endif
++
++libraries/integer-gmp_CC_OPTS += @CPPFLAGS@ @LDFLAGS@