View | Details | Raw Unified | Return to bug 232734 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-4 lines)
Lines 14-23 Link Here
14
LICENSE=	MIT
14
LICENSE=	MIT
15
LICENSE_FILE=	${WRKDIR}/astyle/LICENSE.md
15
LICENSE_FILE=	${WRKDIR}/astyle/LICENSE.md
16
16
17
BROKEN_mips=		fails to build: unrecognized command line option "-std=c++11"
18
BROKEN_mips64=		fails to build: unrecognized command line option "-std=c++11"
19
BROKEN_powerpc64=	fails to build: unrecognized command line option "-std=c++11"
20
21
USES=		compiler:c++11-lang dos2unix gmake
17
USES=		compiler:c++11-lang dos2unix gmake
22
18
23
ALL_TARGET=	astyle
19
ALL_TARGET=	astyle
(-)files/patch-Makefile (+11 lines)
Line 0 Link Here
1
--- Makefile.orig	2018-10-27 00:13:24 UTC
2
+++ Makefile
3
@@ -37,7 +37,7 @@ objdir = obj
4
 ipath=$(prefix)/bin
5
 CBASEFLAGS = -Wall -Wextra -fno-rtti -fno-exceptions -std=c++11
6
 JAVAINCS   = -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
7
-CXX = g++
8
+CXX ?= g++
9
 INSTALL=install -o $(USER) -g $(USER)
10
 
11
 # Library's major version number -- Increment in case of incompatible API
(-)files/patch-src_astyle__main.cpp (+13 lines)
Line 0 Link Here
1
--- ../../src/astyle_main.cpp.orig	2018-11-28 00:32:16.924868000 +0100
2
+++ ../../src/astyle_main.cpp	2018-11-28 00:33:36.071105000 +0100
3
@@ -46,6 +46,10 @@
4
 #ifdef _WIN32
5
 	#undef UNICODE		// use ASCII windows functions
6
 	#include <windows.h>
7
+#elif defined(__FreeBSD__)
8
+	#include <dirent.h>
9
+	#include <sys/syslimits.h>
10
+	#include <unistd.h>
11
 #else
12
 	#include <dirent.h>
13
 	#include <unistd.h>

Return to bug 232734