[42991] trunk/dports/graphics/jasper/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Tue Dec 2 20:27:01 PST 2008


Revision: 42991
          http://trac.macports.org/changeset/42991
Author:   mcalhoun at macports.org
Date:     2008-12-02 20:27:01 -0800 (Tue, 02 Dec 2008)
Log Message:
-----------
jasper: Removed unnecessary backslashes and quotes.
Ensure the documentation has correct permissions (g-r) by using xinstall.
Chaned default X11 to xorg-libX11.

Modified Paths:
--------------
    trunk/dports/graphics/jasper/Portfile

Modified: trunk/dports/graphics/jasper/Portfile
===================================================================
--- trunk/dports/graphics/jasper/Portfile	2008-12-03 04:07:05 UTC (rev 42990)
+++ trunk/dports/graphics/jasper/Portfile	2008-12-03 04:27:01 UTC (rev 42991)
@@ -29,10 +29,9 @@
                 patch-src_libjasper_jpc_jpc_dec.c.diff
 
 configure.args  --enable-shared \
-                --disable-static \
                 --disable-opengl \
-                --mandir=\\\${prefix}/share/man \
-                --infodir=\\\${prefix}/share/info
+                --mandir=${prefix}/share/man \
+                --infodir=${prefix}/share/info
 
 use_parallel_build  yes
 
@@ -40,18 +39,20 @@
 test.target     check
 
 post-destroot {
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc
-    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}-${version}
-    file attributes ${destroot}${prefix}/share/doc/${name}-${version} -permissions go-w
+    set docdir ${prefix}/share/doc/${name}-${version}
+    xinstall -m 755 -d ${destroot}${docdir}
+    eval xinstall -m 644 [glob ${worksrcpath}/doc/*] ${destroot}${docdir}
 }
 
 variant jiv description {build a basic viewer as well} {
     depends_lib-append          port:glut \
-                                lib:libX11.6:xorg
+                                lib:libX11:xorg-libX11
 
     configure.args-delete       --disable-opengl
     configure.args-append       --enable-opengl
-    configure.cppflags-append   "-I${x11prefix}/include"
+
+    # glut needs to be able to find gl.h and glu.h
+    configure.cppflags-append   -I${x11prefix}/include
 }
 
 platform darwin 9 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081202/e65178c4/attachment.html>


More information about the macports-changes mailing list