Skip to content

Commit

Permalink
Update strangepg to 0.8.16, add osx and aarch64 support
Browse files Browse the repository at this point in the history
  • Loading branch information
qwx9 committed Dec 24, 2024
1 parent 1369be3 commit 846c0fc
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 25 deletions.
9 changes: 6 additions & 3 deletions recipes/strangepg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

set -xe

export C_INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export LDLIBS="-ldl -lpthread"
OS=$(uname)
if [[ ${OS} == "Linux" ]]; then
export C_INCLUDE_PATH="${PREFIX}/include"
export LIBRARY_PATH="${PREFIX}/lib"
export LDLIBS="-ldl -lpthread"
fi

make CC="${CC}" PREFIX="${PREFIX}" -j ${CPU_COUNT} install
47 changes: 26 additions & 21 deletions recipes/strangepg/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,47 +1,49 @@
{% set name = "strangepg" %}
{% set version = "0.8.15" %}
{% set version = "0.8.16" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: https://github.com/qwx9/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
sha256: 2393be1be300b0d9d3d252482277d9735b53fa7aa2156bcdad2215c3cc2ae093
sha256: bd331051a496aa93deaca170a77c7a69bf0459fb53a2e577a84ac17236ef894d

build:
number: 0
skip: True # [not linux]
run_exports:
- {{ pin_subpackage('strangepg', max_pin='x.x') }}

requirements:
build:
- {{ compiler('c') }}
- make
- {{ cdt('mesa-libgl-devel') }}
- {{ cdt('mesa-libegl-devel') }}
- {{ cdt('mesa-dri-drivers') }}
- {{ cdt('libdrm-devel') }}
- {{ cdt('libglvnd-glx') }} # [cdt_name != 'cos6']
- {{ cdt('mesa-libegl-devel') }} # [linux and aarch64]
- {{ cdt('mesa-libgl-devel') }} # [linux]
- {{ cdt('mesa-dri-drivers') }} # [linux]
- {{ cdt('libdrm-devel') }} # [linux]
- {{ cdt('libglvnd-glx') }} # [linux and cdt_name != 'cos6']
- {{ cdt('libglvnd-egl') }} # [linux and aarch64 and cdt_name != 'cos6']
host:
- xorg-libx11
- xorg-libxcursor
- xorg-libxi
- libegl-devel # [linux and aarch64]
- xorg-libx11 # [linux]
- xorg-libxcursor # [linux]
- xorg-libxi # [linux]
- xorg-xorgproto # [linux]
run:
- libxcb
- xorg-libx11
- xorg-libxau
- xorg-libxcursor
- xorg-libxdmcp
- xorg-libxext
- xorg-libxfixes
- xorg-libxi
- xorg-libxrandr
- libxcb # [linux]
- xorg-libx11 # [linux]
- xorg-libxau # [linux]
- xorg-libxcursor # [linux]
- xorg-libxdmcp # [linux]
- xorg-libxext # [linux]
- xorg-libxfixes # [linux]
- xorg-libxi # [linux]
- xorg-libxrandr # [linux]

test:
source_files:
- cmd/main.awk
- test/frag10.gfa

about:
home: https://github.com/qwx9/{{ name }}
Expand All @@ -52,6 +54,9 @@ about:
dev-url: https://github.com/qwx9/{{ name }}

extra:
additional-platforms:
- linux-aarch64
- osx-arm64
recipe-maintainers:
- qwx9
container:
Expand Down
2 changes: 1 addition & 1 deletion recipes/strangepg/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# https://github.com/bioconda/bioconda-recipes/pull/29042#issuecomment-864465780

strangepg -h 2>/dev/null
strangepg /dev/mordor 2>/dev/null || [[ $? == 1 ]]
strangepg -D load test/frag10.gfa 2>/dev/null

0 comments on commit 846c0fc

Please sign in to comment.