diff options
author | Tilman Keskinoz <arved@FreeBSD.org> | 2003-06-15 13:33:28 +0000 |
---|---|---|
committer | Tilman Keskinoz <arved@FreeBSD.org> | 2003-06-15 13:33:28 +0000 |
commit | 55a1165962d87a2596c8afcf279ddc068e0adc81 (patch) | |
tree | ed8d7fad8188643b99af5a40945e016d4a5bc1bd /lang/moscow_ml | |
parent | 6cb7a6ceab57bb4618815dc8d5b59420f630a65e (diff) |
Unbreak on 5.x.
Set CFLAGS and LDFLAGS to use libgmp from LOCALBASE.
PR: 48678
Reported by: Matthias Buelow <mkb@informatik.uni-wuerzburg.de>
Notes
Notes:
svn path=/head/; revision=83016
Diffstat (limited to 'lang/moscow_ml')
-rw-r--r-- | lang/moscow_ml/Makefile | 8 | ||||
-rw-r--r-- | lang/moscow_ml/files/patch-dynlibs::intinf::Makefile | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/lang/moscow_ml/Makefile b/lang/moscow_ml/Makefile index 6aee1acd247f..85c6e6e69b7c 100644 --- a/lang/moscow_ml/Makefile +++ b/lang/moscow_ml/Makefile @@ -24,12 +24,14 @@ ALL_TARGET= world MOSMLHOME=$(MOSMLHOME) INSTALL_TARGET= install MOSMLHOME=$(MOSMLHOME) WRKSRC= ${WRKDIR}/mosml/src USE_PERL5= yes +USE_REINPLACE= yes +MAKE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 500113 -BROKEN= "Does not compile" -.endif +post-patch: + ${FIND} ${WRKSRC} -name Makefile | ${XARGS} \ + ${REINPLACE_CMD} -e "s,-O2,${CFLAGS} -I${LOCALBASE}/include," post-install: ${SED} -e 's|^MOSMLHOME=.*|MOSMLHOME=${MOSMLHOME}|' \ diff --git a/lang/moscow_ml/files/patch-dynlibs::intinf::Makefile b/lang/moscow_ml/files/patch-dynlibs::intinf::Makefile index 2302c529bd14..541ecaafcae7 100644 --- a/lang/moscow_ml/files/patch-dynlibs::intinf::Makefile +++ b/lang/moscow_ml/files/patch-dynlibs::intinf::Makefile @@ -1,5 +1,5 @@ --- dynlibs/intinf/Makefile.orig Wed Feb 16 16:36:57 2000 -+++ dynlibs/intinf/Makefile Fri Apr 12 02:21:26 2002 ++++ dynlibs/intinf/Makefile Sun Jun 15 15:15:38 2003 @@ -10,10 +10,11 @@ include ../../Makefile.inc @@ -26,7 +26,7 @@ libmgmp.so: intinf.o - $(DYNLD) -o libmgmp.so intinf.o ${GMPDIR}/libgmp.a -+ $(DYNLD) -o libmgmp.so intinf.o -lgmp ++ $(DYNLD) ${LDFLAGS} -o libmgmp.so intinf.o -lgmp test: mosml testintinf.sml |