From bae0c12952c5935ba0957b810fdb4d73ac4b88ee Mon Sep 17 00:00:00 2001 From: beuc Date: Thu, 15 Mar 2012 20:51:24 +0000 Subject: [PATCH] Add pkg-config script (cmake changes added by mistake in previous commit) git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1142 7f0cb862-5218-0410-a997-914c9d46530a --- .gitattributes | 1 + freeglut/freeglut/CMakeLists.txt | 1 + freeglut/freeglut/freeglut.pc.in | 10 ++++++++++ 3 files changed, 12 insertions(+) create mode 100644 freeglut/freeglut/freeglut.pc.in diff --git a/.gitattributes b/.gitattributes index b69dbea..8466628 100644 --- a/.gitattributes +++ b/.gitattributes @@ -28,6 +28,7 @@ freeglut/freeglut/doc/ogl_sm.png -text freeglut/freeglut/doc/progress.html svn_keywords=Author+Date+Id+Revision freeglut/freeglut/doc/structure.html svn_keywords=Author+Date+Id+Revision freeglut/freeglut/freeglut.lsm svn_keywords=Author+Date+Id+Revision +freeglut/freeglut/freeglut.pc.in -text freeglut/freeglut/freeglut.rc.in svn_keywords=Author+Date+Id+Revision freeglut/freeglut/freeglut.spec svn_keywords=Author+Date+Id+Revision freeglut/freeglut/include/GL/freeglut.h svn_keywords=Author+Date+Id+Revision diff --git a/freeglut/freeglut/CMakeLists.txt b/freeglut/freeglut/CMakeLists.txt index b1f8216..369e03c 100644 --- a/freeglut/freeglut/CMakeLists.txt +++ b/freeglut/freeglut/CMakeLists.txt @@ -356,3 +356,4 @@ ELSE() ENDIF() CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/freeglut.pc.in ${CMAKE_BINARY_DIR}/freeglut.pc @ONLY) INSTALL(FILES ${CMAKE_BINARY_DIR}/freeglut.pc DESTINATION share/pkgconfig) +# TODO: change the library name when building for GLES, e.g. -lglut-GLES2 diff --git a/freeglut/freeglut/freeglut.pc.in b/freeglut/freeglut/freeglut.pc.in new file mode 100644 index 0000000..a5425cd --- /dev/null +++ b/freeglut/freeglut/freeglut.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: glut +Description: A freely licensed and improved alternative to the GLUT library +Version: @VERSION_MAJOR@.@VERSION_MINOR@.@VERSION_PATCH@ +Libs: -L${libdir} -lglut +Libs.private: @LIBS_PRIVATE@ +Cflags: -I${includedir}