From 8fa7432671f47c973553382880fc1dbfba714973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 17 Aug 2016 08:23:37 +0000 Subject: [PATCH] Fix build on FreeBSD 9.3 PR: 211696 Submitted by: yani@pi-greece.eu Reported by: pkg-fallout --- lang/mono/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lang/mono/Makefile b/lang/mono/Makefile index 6ba9a8ce0a76..c9695bbd12da 100644 --- a/lang/mono/Makefile +++ b/lang/mono/Makefile @@ -39,6 +39,8 @@ MAKE_ENV= MONO_SHARED_DIR="${MONO_SHARED_DIR}" \ ONLY_FOR_ARCHS= i386 amd64 powerpc +.include + 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 +# 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