aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher (jlec) <jlec@j-schmitz.net>2009-11-21 19:17:04 +0100
committerJustin Lecher (jlec) <jlec@j-schmitz.net>2009-11-21 22:14:59 +0100
commita1dde54b6b93f189004a015b0c956f260c757c6a (patch)
tree71e23ab4cbc17c9bc56bc930229783a7ad08c01a /x11-libs/gl2ps/files/1.3.5-CMakeLists.patch
parentx11-libs/gl2ps imported from tree (diff)
downloadsci-a1dde54b6b93f189004a015b0c956f260c757c6a.tar.gz
sci-a1dde54b6b93f189004a015b0c956f260c757c6a.tar.bz2
sci-a1dde54b6b93f189004a015b0c956f260c757c6a.zip
x11-libs/gl2ps -- Version bump & ported to cmake buildsystem
(Portage version: 2.2_rc51/git/Linux x86_64) (Signed Manifest commit)
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