openbsd-ports/lang/ghc/patches/patch-mk_package_mk
dons cd5fda6e80 Update ghc to 6.2.2.
Adds support for ghci. More stable foreign function interface.

Just i386 at the moment.

ok sturm@ pvalchev@
2005-02-14 01:26:56 +00:00

21 lines
814 B
Plaintext

$OpenBSD: patch-mk_package_mk,v 1.4 2005/02/14 01:26:56 dons Exp $
Substitute in the path to localbase in the runtime package file,
so it can find libgmp.
--- mk/package.mk.orig Mon Jan 31 14:46:41 2005
+++ mk/package.mk Mon Jan 31 14:47:09 2005
@@ -23,11 +23,13 @@ PKGCONF_CPP_EXTRA_OPTS =
endif
package.conf.inplace : package.conf.in
+ perl -pi.bak -e 's,LOCALBASE,'$(LOCALBASE)',' $<
$(CPP) $(RAWCPP_FLAGS) -P $(PKGCONF_CPP_EXTRA_OPTS) -x c $(PACKAGE_CPP_OPTS) $< | \
grep -v '^#pragma GCC' | \
sed -e 's/""//g' -e 's/\[ *,/[ /g' >$@
package.conf.installed : package.conf.in
+ perl -pi.bak -e 's,LOCALBASE,'$(LOCALBASE)',' $<
$(CPP) $(RAWCPP_FLAGS) -P $(PKGCONF_CPP_EXTRA_OPTS) -DINSTALLING -x c $(PACKAGE_CPP_OPTS) $< | \
grep -v '^#pragma GCC' | \
sed -e 's/""//g' -e 's/\[ *,/[ /g' >$@