aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/gl2ps/files/1.3.5-CMakeLists.patch')
-rw-r--r--x11-libs/gl2ps/files/1.3.5-CMakeLists.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/x11-libs/gl2ps/files/1.3.5-CMakeLists.patch b/x11-libs/gl2ps/files/1.3.5-CMakeLists.patch
new file mode 100644
index 000000000..16565c927
--- /dev/null
+++ b/x11-libs/gl2ps/files/1.3.5-CMakeLists.patch
@@ -0,0 +1,38 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 69b88e2..9cfa8ae 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -113,21 +113,21 @@ if(OPENGL_FOUND)
+ set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
+ endif(MSVC)
+
+- install(TARGETS lib shared DESTINATION lib)
++ install(TARGETS lib shared DESTINATION GENTOOLIB)
+ endif(OPENGL_FOUND)
+
+ if(WIN32)
+ set(GL2PS_DOC .)
+ else(WIN32)
+- set(GL2PS_DOC share/doc/gl2ps)
++ set(GL2PS_DOC share/doc/gl2ps-${GL2PS_VERSION})
+ endif(WIN32)
+
+ install(FILES gl2ps.h DESTINATION include)
+ install(FILES ${CMAKE_SOURCE_DIR}/README.txt DESTINATION ${GL2PS_DOC})
+-install(FILES ${CMAKE_SOURCE_DIR}/COPYING.LGPL DESTINATION ${GL2PS_DOC})
+-install(FILES ${CMAKE_SOURCE_DIR}/COPYING.GL2PS DESTINATION ${GL2PS_DOC})
++install(FILES ${CMAKE_SOURCE_DIR}/TODO.txt DESTINATION ${GL2PS_DOC})
+ install(FILES ${CMAKE_SOURCE_DIR}/gl2psTest.c DESTINATION ${GL2PS_DOC})
+ install(FILES ${CMAKE_SOURCE_DIR}/gl2psTestSimple.c DESTINATION ${GL2PS_DOC})
++install(FILES ${CMAKE_SOURCE_DIR}/gl2ps.pdf DESTINATION ${GL2PS_DOC})
+
+ if(GLUT_FOUND)
+ add_executable(gl2psTest WIN32 gl2psTest.c)
+@@ -144,7 +144,6 @@ if(PDFLATEX_COMPILER)
+ COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex
+ COMMAND ${CMAKE_COMMAND} -E copy gl2ps.pdf ${CMAKE_SOURCE_DIR})
+ add_custom_target(pdf ALL DEPENDS gl2ps.pdf)
+- install(FILES gl2ps.pdf DESTINATION ${GL2PS_DOC})
+ find_program(TTH tth)
+ if(TTH)
+ add_custom_command(OUTPUT gl2ps.html DEPENDS gl2ps.tex gl2ps.pdf