pantry/projects/geuz.org/gl2ps/package.yml
Andrew cf2b067f7a
geuz.org/gl2ps (#3352)
* new file:   projects/geuz.org/gl2ps/package.yml
new file:   projects/geuz.org/gl2ps/test_darwin.c
new file:   projects/geuz.org/gl2ps/test_linux.c

* wip
2023-09-18 09:59:10 -04:00

41 lines
No EOL
1 KiB
YAML

distributable:
url: https://geuz.org/gl2ps/src/gl2ps-{{version}}.tgz
strip-components: 1
versions:
url: https://geuz.org/gl2ps/src/
match: /gl2ps-\d+\.\d+\.\d+\.tgz/
strip:
- /^gl2ps-/
- /\.tgz/
dependencies:
libpng.org: '*'
linux:
freeglut.sourceforge.io: '*'
build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
cmake.org: '*'
script:
- cmake . $CMAKE_ARGS
- make --jobs {{ hw.concurrency }} install
env:
CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
- -DCMAKE_INSTALL_LIBDIR=lib
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_FIND_FRAMEWORK=LAST
- -DCMAKE_VERBOSE_MAKEFILE=ON
- -Wno-dev
- -DBUILD_TESTING=OFF
test:
dependencies:
tea.xyz/gx/cc: c99
script:
- run: cc -lgl2ps -framework OpenGL -framework GLUT -framework Cocoa test_darwin.c -o testfile
if: darwin
- run: cc -lgl2ps -lglut -lGL test_linux.c -o testfile
if: linux
# - ./testfile
# We cannot run ./testfile due to the absence of a display.
- ls . | grep testfile