pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/codeblocks codeblocks: fixes for linux, gcc7 a...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f824e274f9f8
branches: trunk
changeset: 372909:f824e274f9f8
user: markd <markd%pkgsrc.org@localhost>
date: Tue Dec 19 20:05:37 2017 +0000
description:
codeblocks: fixes for linux, gcc7 and recent opencv
diffstat:
editors/codeblocks/Makefile | 6 ++-
editors/codeblocks/distinfo | 4 +-
editors/codeblocks/patches/patch-src_include_scripting_sqplus_sqplus.h | 20 ++++++++++
editors/codeblocks/patches/patch-src_plugins_scriptedwizard_resources_opencv_wizard.script | 17 ++++++++
4 files changed, 44 insertions(+), 3 deletions(-)
diffs (88 lines):
diff -r 3fc7bae91c5e -r f824e274f9f8 editors/codeblocks/Makefile
--- a/editors/codeblocks/Makefile Tue Dec 19 14:28:57 2017 +0000
+++ b/editors/codeblocks/Makefile Tue Dec 19 20:05:37 2017 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.6 2017/05/03 08:38:41 jperkin Exp $
+# $NetBSD: Makefile,v 1.7 2017/12/19 20:05:37 markd Exp $
#
DISTNAME= codeblocks_16.01
PKGNAME= ${DISTNAME:S/_/-/}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= editors x11
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=codeblocks/}
@@ -21,6 +21,8 @@
CONFIGURE_ARGS+= --with-contrib-plugins=AutoVersioning,BrowseTracker,byogames,cbkoders,codesnippets,codestat,dragscroll,envvars,help,keybinder,libfinder,profiler,regex,exporter,symtab
# wxsmith makes error in build process
+CXXFLAGS.Linux+= -std=c++11
+
BUILD_DEPENDS+= zip-[0-9]*:../../archivers/zip
PKGCONFIG_OVERRIDE+= codeblocks.pc.in
diff -r 3fc7bae91c5e -r f824e274f9f8 editors/codeblocks/distinfo
--- a/editors/codeblocks/distinfo Tue Dec 19 14:28:57 2017 +0000
+++ b/editors/codeblocks/distinfo Tue Dec 19 20:05:37 2017 +0000
@@ -1,12 +1,14 @@
-$NetBSD: distinfo,v 1.2 2017/05/22 23:36:11 joerg Exp $
+$NetBSD: distinfo,v 1.3 2017/12/19 20:05:37 markd Exp $
SHA1 (codeblocks_16.01.tar.gz) = 70aabe8a948dbaa919eb4b87bc74a600e0d93516
RMD160 (codeblocks_16.01.tar.gz) = e98b034eb8d6cf52a89312f2d5eaa10b17f1355e
SHA512 (codeblocks_16.01.tar.gz) = 496ff2dbcf9a8248fa9f1060d50567d1fc6480cc9d8fc9f7d2cd532c82f4344deafe9b43f2b17d2510c74851e21acf2ca90d5cc7b61237d69a17e78e9907a63a
Size (codeblocks_16.01.tar.gz) = 20250097 bytes
SHA1 (patch-configure) = c746e3b0f4f5ca2b8d5d215e4510c1996205338b
+SHA1 (patch-src_include_scripting_sqplus_sqplus.h) = 92385bb49c86d113d635a9540bd2013294f60ee1
SHA1 (patch-src_plugins_contrib_wxContribItems_wxchart_configure) = 57f52bac348192b1dbfa63b012a48ed259e5933d
SHA1 (patch-src_plugins_contrib_wxContribItems_wxthings_configure) = 645d331fc86c872e522ed56fc0764e2a2a77c3c2
+SHA1 (patch-src_plugins_scriptedwizard_resources_opencv_wizard.script) = ec8514c3e816a882104221e5bfb32a6a2937030d
SHA1 (patch-src_sdk_wxpropgrid_configure) = fc842f5964e7a213907d93b81ef35a3f1a4edf19
SHA1 (patch-src_src_appglobals.cpp) = cb561786251fe14ed777105f207635c219f8634b
SHA1 (patch-src_src_prefix.cpp) = 941fe61e81427990ed45b414a0bf98ceb40557cc
diff -r 3fc7bae91c5e -r f824e274f9f8 editors/codeblocks/patches/patch-src_include_scripting_sqplus_sqplus.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/codeblocks/patches/patch-src_include_scripting_sqplus_sqplus.h Tue Dec 19 20:05:37 2017 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-src_include_scripting_sqplus_sqplus.h,v 1.1 2017/12/19 20:05:37 markd Exp $
+
+gcc7 build-fix: avoid template-related error
+https://sourceforge.net/p/codeblocks/code/11006/
+
+--- src/include/scripting/sqplus/sqplus.h.orig 2016-01-23 16:43:24.000000000 +0000
++++ src/include/scripting/sqplus/sqplus.h
+@@ -147,10 +147,10 @@ struct ScriptStringVar : ScriptStringVar
+ return safeStringCopy(s,_s.s,MaxLength);
+ }
+ bool operator == (const ScriptStringVar & _s) {
+- return _strcmp(s,_s.s) == 0;
++ return strcmp(s,_s.s) == 0;
+ }
+ bool compareCaseInsensitive(const ScriptStringVar & _s) {
+- return _stricmp(s,_s.s) == 0;
++ return strcasecmp(s,_s.s) == 0;
+ }
+ };
+
diff -r 3fc7bae91c5e -r f824e274f9f8 editors/codeblocks/patches/patch-src_plugins_scriptedwizard_resources_opencv_wizard.script
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/codeblocks/patches/patch-src_plugins_scriptedwizard_resources_opencv_wizard.script Tue Dec 19 20:05:37 2017 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_plugins_scriptedwizard_resources_opencv_wizard.script,v 1.1 2017/12/19 20:05:37 markd Exp $
+
+Modern opencv uses pkg-config
+
+--- src/plugins/scriptedwizard/resources/opencv/wizard.script.orig 2016-01-23 16:43:07.000000000 +0000
++++ src/plugins/scriptedwizard/resources/opencv/wizard.script
+@@ -184,8 +184,8 @@ function SetupProject(project)
+ else // PLATFORM != PLATFORM_MSW
+ {
+ // opencv-config based: things are ultra-simple :)
+- project.AddCompilerOption(_T("`opencv-config --cxxflags`"));
+- project.AddLinkerOption(_T("`opencv-config --ldstaticflags`"));
++ project.AddCompilerOption(_T("`pkg-config opencv --cflags`"));
++ project.AddLinkerOption(_T("`pkg-config opencv --libs`"));
+ }
+
+
Home |
Main Index |
Thread Index |
Old Index