* [gentoo-commits] gentoo-x86 commit in x11-libs/gl2ps/files: gl2ps-1.3.6-CMakeLists.patch
@ 2011-11-27 5:33 Sebastien Fabbro (bicatali)
0 siblings, 0 replies; only message in thread
From: Sebastien Fabbro (bicatali) @ 2011-11-27 5:33 UTC (permalink / raw
To: gentoo-commits
bicatali 11/11/27 05:33:45
Added: gl2ps-1.3.6-CMakeLists.patch
Log:
Version bump
(Portage version: 2.1.10.37/cvs/Linux x86_64)
Revision Changes Path
1.1 x11-libs/gl2ps/files/gl2ps-1.3.6-CMakeLists.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gl2ps/files/gl2ps-1.3.6-CMakeLists.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gl2ps/files/gl2ps-1.3.6-CMakeLists.patch?rev=1.1&content-type=text/plain
Index: gl2ps-1.3.6-CMakeLists.patch
===================================================================
--- CMakeLists.txt.orig 2011-08-14 18:15:31.000000000 +0100
+++ CMakeLists.txt 2011-11-27 05:25:50.000000000 +0000
@@ -46,6 +46,7 @@
option(ENABLE_ZLIB "Enable compression using ZLIB" ON)
option(ENABLE_PNG "Enable PNG support" ON)
+option(ENABLE_DOC "Enable documentation" OFF)
set(GL2PS_MAJOR_VERSION 1)
set(GL2PS_MINOR_VERSION 3)
@@ -103,8 +104,6 @@
include_directories(${EXTERNAL_INCLUDES})
if(OPENGL_FOUND)
- add_library(lib STATIC gl2ps.c gl2ps.h)
- set_target_properties(lib PROPERTIES OUTPUT_NAME gl2ps)
add_library(shared SHARED gl2ps.c gl2ps.h)
target_link_libraries(shared ${EXTERNAL_LIBRARIES})
@@ -116,29 +115,22 @@
set_target_properties(shared PROPERTIES COMPILE_FLAGS "-DGL2PSDLL -DGL2PSDLL_EXPORTS")
endif(MSVC)
- install(TARGETS lib shared DESTINATION lib)
+ install(TARGETS shared DESTINATION lib${LIB_SUFFIX})
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}/gl2psTest.c DESTINATION ${GL2PS_DOC})
+install(FILES ${CMAKE_SOURCE_DIR}/TODO.txt DESTINATION ${GL2PS_DOC})
install(FILES ${CMAKE_SOURCE_DIR}/gl2psTestSimple.c DESTINATION ${GL2PS_DOC})
-if(GLUT_FOUND)
- add_executable(gl2psTest WIN32 gl2psTest.c)
- target_link_libraries(gl2psTest lib ${EXTERNAL_LIBRARIES})
- add_executable(gl2psTestSimple WIN32 gl2psTestSimple.c)
- target_link_libraries(gl2psTestSimple lib ${EXTERNAL_LIBRARIES})
-endif(GLUT_FOUND)
-
+if(ENABLE_DOC)
find_package(LATEX)
if(PDFLATEX_COMPILER)
add_custom_command(OUTPUT gl2ps.pdf DEPENDS gl2ps.tex
@@ -157,6 +149,7 @@
add_custom_target(html DEPENDS gl2ps.html)
endif(TTH)
endif(PDFLATEX_COMPILER)
+endif(ENABLE_DOC)
set(CPACK_PACKAGE_VENDOR "Christophe Geuzaine")
set(CPACK_PACKAGE_VERSION_MAJOR ${GL2PS_MAJOR_VERSION})
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-27 5:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-27 5:33 [gentoo-commits] gentoo-x86 commit in x11-libs/gl2ps/files: gl2ps-1.3.6-CMakeLists.patch Sebastien Fabbro (bicatali)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox