Needs the gcc4 MODULE for c++11 support.

This commit is contained in:
ajacoutot 2015-09-24 10:36:54 +00:00
parent d32cacd532
commit 5149a9e053
2 changed files with 24 additions and 1 deletions

View File

@ -1,9 +1,13 @@
# $OpenBSD: Makefile,v 1.10 2015/04/30 21:22:26 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.11 2015/09/24 10:36:54 ajacoutot Exp $
# XXX check if still needed at next update
CXXFLAGS += -std=c++11
COMMENT = media download tool
DISTNAME = cclive-0.9.3
EXTRACT_SUFX = .tar.xz
REVISION = 0
CATEGORIES = www
@ -22,6 +26,11 @@ MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=cclive/}
MODULES = devel/gettext
# c++11
MODULES += gcc4
MODGCC4_ARCHS= *
MODGCC4_LANGS= c++
USE_GROFF = Yes
LIB_DEPENDS = devel/boost \

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_cc_exec_cpp,v 1.1 2015/09/24 10:36:54 ajacoutot Exp $
cc/exec.cpp:63:26: error: 'fork' was not declared in this scope
--- src/cc/exec.cpp.orig Wed Sep 23 13:40:12 2015
+++ src/cc/exec.cpp Wed Sep 23 13:40:30 2015
@@ -26,6 +26,7 @@
#include <cerrno>
#include <sys/wait.h>
+#include <unistd.h>
#include <boost/program_options/variables_map.hpp>
#include <boost/foreach.hpp>