mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+glfw.org (#4925)
* new file: projects/glfw.org/package.yml new file: projects/glfw.org/test.c * wip * -fPIC -pie * test section: -fPIC -pie * . * comment --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
88315c364a
commit
7725ed7fb7
2 changed files with 47 additions and 0 deletions
37
projects/glfw.org/package.yml
Normal file
37
projects/glfw.org/package.yml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
distributable:
|
||||||
|
url: git+https://github.com/glfw/glfw.git
|
||||||
|
ref: ${{version.tag}}
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: glfw/glfw
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
linux:
|
||||||
|
freeglut.sourceforge.io: ^3.4
|
||||||
|
x.org/xcursor: ^1.2
|
||||||
|
mesa3d.org: ^23.3
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
cmake.org: '*'
|
||||||
|
script:
|
||||||
|
- cmake $ARGS .
|
||||||
|
- make --jobs {{hw.concurrency}} install
|
||||||
|
env:
|
||||||
|
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
|
||||||
|
- -DGLFW_USE_CHDIR=TRUE
|
||||||
|
- -DGLFW_USE_MENUBAR=TRUE
|
||||||
|
- -DBUILD_SHARED_LIBS=TRUE
|
||||||
|
|
||||||
|
test:
|
||||||
|
- cc test.c $CFLAGS -lglfw -o test
|
||||||
|
# FIXME: we should get a test that runs on linux as well
|
||||||
|
- run: ./test
|
||||||
|
if: darwin
|
10
projects/glfw.org/test.c
Normal file
10
projects/glfw.org/test.c
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#define GLFW_INCLUDE_GLU
|
||||||
|
#include <GLFW/glfw3.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
if (!glfwInit())
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
glfwTerminate();
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in a new issue