svn commit: r420322 - head/lang/mono

Romain Tartière romain at FreeBSD.org
Wed Aug 17 08:23:39 UTC 2016


Author: romain
Date: Wed Aug 17 08:23:37 2016
New Revision: 420322
URL: https://svnweb.freebsd.org/changeset/ports/420322

Log:
  Fix build on FreeBSD 9.3
  
  PR:		211696
  Submitted by:	yani at pi-greece.eu
  Reported by:	pkg-fallout

Modified:
  head/lang/mono/Makefile

Modified: head/lang/mono/Makefile
==============================================================================
--- head/lang/mono/Makefile	Wed Aug 17 07:43:05 2016	(r420321)
+++ head/lang/mono/Makefile	Wed Aug 17 08:23:37 2016	(r420322)
@@ -39,6 +39,8 @@ MAKE_ENV=	MONO_SHARED_DIR="${MONO_SHARED
 
 ONLY_FOR_ARCHS=	i386 amd64 powerpc
 
+.include <bsd.port.pre.mk>
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|^#!/bin/bash|#!/usr/bin/env bash|g' \
 		${WRKSRC}/scripts/mono-find-provides.in \
@@ -57,4 +59,10 @@ post-configure:
 	@${REINPLACE_CMD} -e 's|share\/man|man|g' \
 		${WRKSRC}/mcs/jay/Makefile
 
-.include <bsd.port.mk>
+# Fix build on FreeBSD 9.3 (and maybe other unsupported releases)
+.if ${OSVERSION} < 1000000
+	@${REINPLACE_CMD} 's/^#define HAVE_LOCALCHARSET_H 1/#undef HAVE_LOCALCHARSET_H/' \
+		${WRKSRC}/eglib/config.h
+.endif
+
+.include <bsd.port.post.mk>


More information about the svn-ports-head mailing list