Skip to content

Commit

Permalink
Update GW to v1.1.2 (#53435)
Browse files Browse the repository at this point in the history
* Gw v1.1.2

* Gw v1.1.2

* Gw v1.1.2

* Gw v1.1.2

* Gw v1.1.2
  • Loading branch information
kcleal authored Jan 24, 2025
1 parent 9f3ed2e commit 2628d84
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 42 deletions.
13 changes: 4 additions & 9 deletions recipes/gw/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,17 @@
set -e

# Get pre-compiled skia from jetbrains
USE_GL=1 make prep 2> /dev/null
OLD_SKIA=1 make prep 2> /dev/null

if [[ "$OSTYPE" != "darwin"* ]]; then
sed -i.bak 's/-lEGL -lGLESv2/-lEGL -lGLESv2 -lGL -lGLX/' Makefile
sed -i.bak 's/GLFW_EGL_CONTEXT_API/GLFW_NATIVE_CONTEXT_API/' src/plot_manager.cpp
# Let conda set these
sed -i.bak 's/-mmacosx-version-min=10.15//g' Makefile
sed -i.bak 's/-mmacosx-version-min=11//g' Makefile
fi

# Set flags conditionally based on the OS type
if [[ "$OSTYPE" != "darwin"* ]]; then
SYSROOT_FLAGS="--sysroot=${BUILD_PREFIX}/${HOST}/sysroot"
CPPFLAGS="${CPPFLAGS} -I${BUILD_PREFIX}/${HOST}/sysroot/usr/include ${SYSROOT_FLAGS}"
LDFLAGS="${LDFLAGS} -L${PREFIX}/lib -L${BUILD_PREFIX}/${HOST}/sysroot/usr/lib -L${BUILD_PREFIX}/${HOST}/sysroot/usr/lib64 ${SYSROOT_FLAGS}"
else
sed -i.bak 's| -Wl,-rpath-link,\$(CONDA_PREFIX)\/lib||' Makefile

# No sysroot settings for macOS
SYSROOT_FLAGS=""
CPPFLAGS="${CPPFLAGS}"
Expand All @@ -28,7 +23,7 @@ CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY" \
CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}" \
prefix="${PREFIX}" \
make -j ${CPU_COUNT}
OLD_SKIA=1 make -j ${CPU_COUNT}

mkdir -p $PREFIX/bin
cp gw $PREFIX/bin/gw
Expand Down
12 changes: 0 additions & 12 deletions recipes/gw/conda_build_config.yaml

This file was deleted.

9 changes: 0 additions & 9 deletions recipes/gw/fix-context.patch

This file was deleted.

5 changes: 0 additions & 5 deletions recipes/gw/fix-linker-issues.patch

This file was deleted.

11 changes: 4 additions & 7 deletions recipes/gw/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% set version = "1.1.1" %}
{% set sha256 = "5ac0430d9179d1a48938f24011c329fe807e72aba0c20eb191c566d129115f86" %}
{% set version = "1.1.2" %}
{% set sha256 = "c01a3ea537342ebfc8ff7e2a5fb04507693e71ba3184ffa4ff1c4bc6d7aba613" %}

package:
name: gw
Expand All @@ -8,12 +8,9 @@ package:
source:
url: https://github.com/kcleal/gw/archive/refs/tags/v{{ version }}.tar.gz
sha256: {{ sha256 }}
patches:
- fix-linker-issues.patch # [linux]
- fix-context.patch

build:
number: 1
number: 0
run_exports:
- {{ pin_subpackage('gw', max_pin="x") }}
ignore_run_exports:
Expand All @@ -31,7 +28,7 @@ build:
- zlib # [osx]
- libuuid
- libdeflate
skip: true # [osx and x86_64]
# skip: true # [osx and x86_64]

requirements:
build:
Expand Down

0 comments on commit 2628d84

Please sign in to comment.