1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/print/gl2ps/files/patch-CMakeLists.txt
Tijl Coosemans 4b974739d5 - Update print/gl2ps to 1.4.0.
- Use upstream build system so the static library is no longer built with
  -fPIC, the shared library gets a proper version and SONAME, and flags
  like LDFLAGS are respected.
- Drop dependency on libGLU and Xorg libraries.
- Add LICENSE.
- Update pkg-descr.

PR:		223204
Approved by:	maintainer timeout (2 weeks)
2017-11-07 17:12:06 +00:00

33 lines
1.3 KiB
Plaintext

--- CMakeLists.txt.orig 2017-04-03 23:09:28 UTC
+++ CMakeLists.txt
@@ -79,10 +79,9 @@ endif(NOT HAVE_VSNPRINTF)
find_package(OpenGL)
if(OPENGL_FOUND)
list(APPEND EXTERNAL_INCLUDES ${OPENGL_INCLUDE_DIR})
- list(APPEND EXTERNAL_LIBRARIES ${OPENGL_LIBRARIES})
+ list(APPEND EXTERNAL_LIBRARIES ${OPENGL_gl_LIBRARY})
endif(OPENGL_FOUND)
-find_package(GLUT)
if(GLUT_FOUND)
list(APPEND EXTERNAL_INCLUDES ${GLUT_INCLUDE_DIR})
list(APPEND EXTERNAL_LIBRARIES ${GLUT_LIBRARIES})
@@ -138,8 +137,7 @@ 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}/gl2ps.pdf DESTINATION ${GL2PS_DOC})
install(FILES ${CMAKE_SOURCE_DIR}/gl2psTest.c DESTINATION ${GL2PS_DOC})
install(FILES ${CMAKE_SOURCE_DIR}/gl2psTestSimple.c DESTINATION ${GL2PS_DOC})
@@ -150,7 +148,6 @@ if(GLUT_FOUND)
target_link_libraries(gl2psTestSimple lib ${EXTERNAL_LIBRARIES})
endif(GLUT_FOUND)
-find_package(LATEX)
if(PDFLATEX_COMPILER)
add_custom_command(OUTPUT gl2ps.pdf DEPENDS gl2ps.tex
COMMAND ${PDFLATEX_COMPILER} ARGS ${CMAKE_SOURCE_DIR}/gl2ps.tex