From 093e4d2f8ebfbf6bba16335e3021b992d247093d Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Wed, 4 Jul 2018 06:26:54 +0200 Subject: [PATCH] [geogram] update to 1.6.4 + 'graphics' as Feature (#3622) * bump version to 1.6.4 * add 'graphics' Feature - remove glfw3 from core dependencies * simplify patch that failed since 1.6.4 --- ports/geogram/CONTROL | 8 ++++++-- ports/geogram/fix-cmake-config-and-install.patch | 13 +++++++------ ports/geogram/portfile.cmake | 16 +++++++++++----- 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/ports/geogram/CONTROL b/ports/geogram/CONTROL index 81df11d9c..687174914 100644 --- a/ports/geogram/CONTROL +++ b/ports/geogram/CONTROL @@ -1,4 +1,8 @@ Source: geogram -Version: 1.6.0-1 +Version: 1.6.4 Description: Geogram is a programming library of geometric algorithms. -Build-Depends: glfw3, openblas, clapack +Build-Depends: openblas, clapack + +Feature: graphics +Description: Build viewers and geogram_gfx library. +Build-Depends: glfw3 diff --git a/ports/geogram/fix-cmake-config-and-install.patch b/ports/geogram/fix-cmake-config-and-install.patch index d4dce24e1..f5d933586 100644 --- a/ports/geogram/fix-cmake-config-and-install.patch +++ b/ports/geogram/fix-cmake-config-and-install.patch @@ -3,7 +3,7 @@ index 17dc02e..e489d75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ set(VORPALINE_VERSION_MINOR 6) - set(VORPALINE_VERSION_PATCH 0) + set(VORPALINE_VERSION_PATCH 4) set(VORPALINE_VERSION ${VORPALINE_VERSION_MAJOR}.${VORPALINE_VERSION_MINOR}.${VORPALINE_VERSION_PATCH}) -set(VORPALINE_INCLUDE_SUBPATH geogram${VORPALINE_VERSION_MAJOR}) @@ -165,11 +165,7 @@ index 2b69a1e..a504538 100644 - extern char **xargv; - Const char *t; - int i; -+ // extern int xargc; -+ // extern char **xargv; -+ // Const char *t; -+ // int i; - +- - if(*n>=0 && *n=0 && *n