openbsd-ports/lang/ghc/patches/patch-mk_package_mk
avsm d492df62cc Allow ghc to work with external libgmp instead of building its own; this
will help with the sparc port.

From Don Stewart <dons@cse.unsw.edu.au>
2003-08-12 13:25:18 +00:00

19 lines
627 B
Plaintext

substitute in the path to localbase in the runtime package file,
so it can find libgmp.
--- mk/package.mk.orig Wed Aug 6 13:40:45 2003
+++ mk/package.mk Wed Aug 6 13:41:06 2003
@@ -9,10 +9,12 @@
ifeq "$(way)" ""
package.conf.inplace : package.conf.in
+ perl -pi.bak -e 's,LOCALBASE,'$(LOCALBASE)',' $<
$(CPP) $(RAWCPP_FLAGS) -I$(GHC_INCLUDE_DIR) -x c $(PACKAGE_CPP_OPTS) $< \
| sed 's/^#.*$$//g' >$@
package.conf.installed : package.conf.in
+ perl -pi.bak -e 's,LOCALBASE,'$(LOCALBASE)',' $<
$(CPP) $(RAWCPP_FLAGS) -I$(GHC_INCLUDE_DIR) -DINSTALLING -x c $(PACKAGE_CPP_OPTS) $< \
| sed 's/^#.*$$//g' >$@