[142736] trunk/dports/graphics/gl2ps/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Sat Dec 12 07:01:08 PST 2015
Revision: 142736
https://trac.macports.org/changeset/142736
Author: mcalhoun at macports.org
Date: 2015-11-21 07:34:04 -0800 (Sat, 21 Nov 2015)
Log Message:
-----------
gl2ps:
* remove dependency on ghostscript, which is not used
* remove variant bibtex, which does not do anything
* remove variant latex, which does not do anything
* prevent documentation from being installed depending on whether pdflatex is found or not
* prevent library from being linked against whichever glut is found just to build test programs
* add variant to build documentation
Modified Paths:
--------------
trunk/dports/graphics/gl2ps/Portfile
Modified: trunk/dports/graphics/gl2ps/Portfile
===================================================================
--- trunk/dports/graphics/gl2ps/Portfile 2015-11-21 15:33:39 UTC (rev 142735)
+++ trunk/dports/graphics/gl2ps/Portfile 2015-11-21 15:34:04 UTC (rev 142736)
@@ -6,6 +6,7 @@
name gl2ps
version 1.3.9
+revision 1
categories graphics print
platforms darwin
maintainers nomaintainer
@@ -30,29 +31,34 @@
sha256 8a680bff120df8bcd78afac276cdc38041fed617f2721bade01213362bcc3640
depends_lib-append port:zlib \
- port:libpng \
- port:ghostscript \
+ port:libpng
worksrcdir ${name}-${version}-source
-configure.args-append -DZLIB_INCLUDE_DIR=${prefix}/include \
- -DZLIB_LIBRARY=${prefix}/lib/libz.dylib \
- -DPNG_LIBRARY=${prefix}/lib/libpng.dylib \
- -DPNG_INCLUDE_DIR=${prefix}/include
+# if CMakeLists.txt finds GLUT, it builds but does not install example programs
+# it also links installed libraries with whichever glut it finds
+# if CMakeLists.txt finds LATEX, it builds and installs pdf documentation
+# it also looks for the program tth to build but not install html documentation
+configure.args-append \
+ -DCMAKE_DISABLE_FIND_PACKAGE_GLUT=TRUE \
+ -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE
cmake.out_of_source yes
use_parallel_build yes
-test.run yes
+variant docs description {generate documentation} {
+ depends_build-append \
+ port:texlive-latex \
+ port:tth
-variant bibtex description {Add BibTeX support} {
- depends_lib-append port:bibtex2html
- configure.args-append -DBIBTEX_COMPILER=${prefix}/lib/
-}
+ configure.args-delete -DCMAKE_DISABLE_FIND_PACKAGE_LATEX=TRUE
+ build.args-append html
-variant latex description {Add LaTeX support} {
- depends_lib-append port:latex2html
- configure.args-append -DLATEX2HTML_CONVERTER=${prefix}/lib/
+ post-destroot {
+ xinstall -m 644 \
+ ${cmake.build_dir}/gl2ps.html \
+ ${destroot}${prefix}/share/doc/gl2ps
+ }
}
livecheck.type regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/aafbc672/attachment.html>
More information about the macports-changes
mailing list