diff options
| author | myd7349 <myd7349@gmail.com> | 2020-01-16 08:46:35 +0800 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2020-01-15 16:46:35 -0800 |
| commit | b2f7823dd22b5155e55e3006e85187230ce0bb07 (patch) | |
| tree | 618cc79d81c09f9b92a48ba9893f33001f069336 /ports/freeglut | |
| parent | 6f41e5cc7c57abaa22f1c6d2235ead83cdf7c5b3 (diff) | |
| download | vcpkg-b2f7823dd22b5155e55e3006e85187230ce0bb07.tar.gz vcpkg-b2f7823dd22b5155e55e3006e85187230ce0bb07.zip | |
[glui] Add new port (#9155)
* [glui] Add new port
* [freeglut] Fix static linking
* [glui] Fix description
* [glui] Update
Diffstat (limited to 'ports/freeglut')
| -rw-r--r-- | ports/freeglut/CONTROL | 2 | ||||
| -rw-r--r-- | ports/freeglut/portfile.cmake | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ports/freeglut/CONTROL b/ports/freeglut/CONTROL index 7489109c4..5f42478d8 100644 --- a/ports/freeglut/CONTROL +++ b/ports/freeglut/CONTROL @@ -1,4 +1,4 @@ Source: freeglut -Version: 3.0.0-7 +Version: 3.0.0-8 Homepage: https://sourceforge.net/projects/freeglut/ Description: Open source implementation of GLUT with source and binary backwards compatibility. diff --git a/ports/freeglut/portfile.cmake b/ports/freeglut/portfile.cmake index bec7489b8..bb22ac684 100644 --- a/ports/freeglut/portfile.cmake +++ b/ports/freeglut/portfile.cmake @@ -32,6 +32,14 @@ string(REGEX REPLACE "\"freeglut_static.lib\"" "\"freeglut.lib\"" FREEGLUT_STDH "${FREEGLUT_STDH}") string(REGEX REPLACE "\"freeglut_staticd.lib\"" "\"freeglutd.lib\"" FREEGLUT_STDH "${FREEGLUT_STDH}") +if(VCPKG_LIBRARY_LINKAGE STREQUAL static) + string(REPLACE + "ifdef FREEGLUT_STATIC" + "if 1 //ifdef FREEGLUT_STATIC" + FREEGLUT_STDH + "${FREEGLUT_STDH}" + ) +endif() file(WRITE ${SOURCE_PATH}/include/GL/freeglut_std.h "${FREEGLUT_STDH}") vcpkg_configure_cmake( |
