Date: Tue, 7 Nov 2017 17:12:06 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r453669 - in head/print/gl2ps: . files Message-ID: <201711071712.vA7HC6UU083807@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tijl Date: Tue Nov 7 17:12:06 2017 New Revision: 453669 URL: https://svnweb.freebsd.org/changeset/ports/453669 Log: - 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) Added: head/print/gl2ps/files/patch-CMakeLists.txt (contents, props changed) Deleted: head/print/gl2ps/files/Makefile.ex head/print/gl2ps/files/Makefile.lib Modified: head/print/gl2ps/Makefile head/print/gl2ps/distinfo head/print/gl2ps/pkg-descr head/print/gl2ps/pkg-plist Modified: head/print/gl2ps/Makefile ============================================================================== --- head/print/gl2ps/Makefile Tue Nov 7 15:48:20 2017 (r453668) +++ head/print/gl2ps/Makefile Tue Nov 7 17:12:06 2017 (r453669) @@ -2,41 +2,23 @@ # $FreeBSD$ PORTNAME= gl2ps -PORTVERSION= 1.3.9 -PORTREVISION= 2 +PORTVERSION= 1.4.0 CATEGORIES= print graphics MASTER_SITES= http://www.geuz.org/gl2ps/src/ -EXTRACT_SUFX= .tgz MAINTAINER= araujo@FreeBSD.org -COMMENT= C library providing vector output for OpenGL application +COMMENT= C library providing vector output for OpenGL applications -USE_GL= yes -USE_XORG= x11 xmu xi -USE_LDCONFIG= yes -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-source +LICENSE= LGPL20+ +LICENSE_FILE= ${WRKSRC}/COPYING.LGPL -OPTIONS_DEFINE= DOCS +LIB_DEPENDS= libpng.so:graphics/png -pre-build: - @${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile +USES= cmake:outsource tar:tgz +USE_GL= gl +USE_LDCONFIG= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-source -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/libgl2ps.so ${STAGEDIR}${PREFIX}/lib - ${LN} -s {PREFIX}/lib/libgl2ps.so ${STAGEDIR}${PREFIX}/lib/libgl2ps.so.1 - ${INSTALL_DATA} ${WRKSRC}/libgl2ps.a ${STAGEDIR}${PREFIX}/lib - ${INSTALL_DATA} ${WRKSRC}/gl2ps.h ${STAGEDIR}${PREFIX}/include - - @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/gl2psTest.c ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/gl2psTestSimple.c ${STAGEDIR}${EXAMPLESDIR} - @${SED} -e 's|%%CC%%|${CC}|g; \ - s|%%RM%%|${RM}|g; \ - s|%%CFLAGS%%|${CFLAGS}|g; \ - s|%%LOCALBASE%%|${LOCALBASE}|g' \ - <${FILESDIR}/Makefile.ex >${STAGEDIR}${EXAMPLESDIR}/Makefile - - @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/gl2ps.pdf ${STAGEDIR}${DOCSDIR} +OPTIONS_DEFINE= DOCS .include <bsd.port.mk> Modified: head/print/gl2ps/distinfo ============================================================================== --- head/print/gl2ps/distinfo Tue Nov 7 15:48:20 2017 (r453668) +++ head/print/gl2ps/distinfo Tue Nov 7 17:12:06 2017 (r453669) @@ -1,2 +1,3 @@ -SHA256 (gl2ps-1.3.9.tgz) = 8a680bff120df8bcd78afac276cdc38041fed617f2721bade01213362bcc3640 -SIZE (gl2ps-1.3.9.tgz) = 294907 +TIMESTAMP = 1508834464 +SHA256 (gl2ps-1.4.0.tgz) = 03cb5e6dfcd87183f3b9ba3b22f04cd155096af81e52988cc37d8d8efe6cf1e2 +SIZE (gl2ps-1.4.0.tgz) = 300339 Added: head/print/gl2ps/files/patch-CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/gl2ps/files/patch-CMakeLists.txt Tue Nov 7 17:12:06 2017 (r453669) @@ -0,0 +1,32 @@ +--- 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 Modified: head/print/gl2ps/pkg-descr ============================================================================== --- head/print/gl2ps/pkg-descr Tue Nov 7 15:48:20 2017 (r453668) +++ head/print/gl2ps/pkg-descr Tue Nov 7 17:12:06 2017 (r453669) @@ -5,8 +5,12 @@ stretched polygons, as well as non manifold objects. G smooth shading and text rendering, culling of invisible primitives, mixed vector/bitmap output, and much more... -GL2PS can currently create PostScript (PS), Encapsulated PostScript (EPS) -and Portable Document Format (PDF) files, as well as LATEX files for the -text fragments. +GL2PS can currently create PostScript (PS), Encapsulated PostScript (EPS), +Portable Document Format (PDF) and Scalable Vector Graphics (SVG) files, as +well as LATEX files for the text fragments. GL2PS also provides limited, +experimental support for Portable LaTeX Graphics (PGF). Adding new vector +output formats should be relatively easy; you can also use the excellent +pstoedit program to transform the PostScript files generated by GL2PS into +many other vector formats such as xfig, cgm, wmf, etc. WWW: http://www.geuz.org/gl2ps/ Modified: head/print/gl2ps/pkg-plist ============================================================================== --- head/print/gl2ps/pkg-plist Tue Nov 7 15:48:20 2017 (r453668) +++ head/print/gl2ps/pkg-plist Tue Nov 7 17:12:06 2017 (r453669) @@ -2,7 +2,8 @@ include/gl2ps.h lib/libgl2ps.a lib/libgl2ps.so lib/libgl2ps.so.1 -%%EXAMPLESDIR%%/gl2psTest.c -%%EXAMPLESDIR%%/gl2psTestSimple.c -%%EXAMPLESDIR%%/Makefile +lib/libgl2ps.so.1.4.0 +%%PORTDOCS%%%%DOCSDIR%%/README.txt %%PORTDOCS%%%%DOCSDIR%%/gl2ps.pdf +%%PORTDOCS%%%%DOCSDIR%%/gl2psTest.c +%%PORTDOCS%%%%DOCSDIR%%/gl2psTestSimple.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711071712.vA7HC6UU083807>