[29393] trunk/dports/x11/openMotif/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Sep 22 15:00:00 PDT 2007


Revision: 29393
          http://trac.macosforge.org/projects/macports/changeset/29393
Author:   nox at macports.org
Date:     2007-09-22 14:59:59 -0700 (Sat, 22 Sep 2007)

Log Message:
-----------
openmotif:
 * Fixed dependencies (now include only hard ones).
 * Changed master_sites and reinplace cool to something more flexible).
 * Added standard doc installation.
 * Added sha1 and rmd160 checksums.

Modified Paths:
--------------
    trunk/dports/x11/openMotif/Portfile

Modified: trunk/dports/x11/openMotif/Portfile
===================================================================
--- trunk/dports/x11/openMotif/Portfile	2007-09-22 21:44:35 UTC (rev 29392)
+++ trunk/dports/x11/openMotif/Portfile	2007-09-22 21:59:59 UTC (rev 29393)
@@ -4,8 +4,9 @@
 
 name            openmotif
 version         2.3.0
-revision        1
+revision        2
 categories      x11
+platforms       darwin
 maintainers     nomaintainer
 description     The Open Motif toolkit for X11
 
@@ -13,40 +14,44 @@
     This is The Open Group's full version of Motif based on \
     the original OSF sources.
 
-platforms       darwin
 homepage        http://www.motifzone.net/
-master_sites    ftp://ftp.ics.com/openmotif/2.3/2.3.0/
-checksums       md5 99d0ecb84d3504da421021a19ff70500
+master_sites    ftp://ftp.ics.com/openmotif/[join [lrange [split ${version} .] 0 1] .]/${version}/
 fetch.use_epsv  no
 
+checksums       md5 99d0ecb84d3504da421021a19ff70500 \
+                sha1 efb5f5fdc4cc43ef6065594f4ebe98953b7af15e \
+                rmd160 317c8d13d59c6fdd4a9f0e3b63000695f6677b6c
+
 # They updated the distfile from 2.3.0 beta to 2.3.0 final without changing
 # the distfile's name! Remove this when updating to 2.3.1 or whatever's next.
 dist_subdir     ${name}/2.3.0-final
 
-depends_build   lib:libX11.6:XFree86
-
 depends_lib     port:jpeg \
                 port:libpng \
                 port:Xft2 \
-                port:expat \
                 port:fontconfig \
                 port:freetype \
                 port:libiconv \
                 port:xrender \
-                port:zlib
+                port:zlib \
+                lib:libX11.6:XFree86
 
-worksrcdir      ${name}-2.3.0
-
 post-patch {
     reinplace "s|iconv_open|libiconv_open|g" ${worksrcpath}/configure
-    reinplace "s|LDFLAGS = -version-info @CURRENT@:@REVISION@:@AGE@|LDFLAGS = -version-info @CURRENT@:@REVISION@:@AGE@ @LDFLAGS@|" \
-        ${worksrcpath}/lib/Xm/Makefile.in
+    reinplace -E "/^LDFLAGS/s|\$| @LDFLAGS@|" ${worksrcpath}/lib/Xm/Makefile.in
 }
 
 configure.args  --mandir=${prefix}/share/man
 
 build.env       LANG=C
 
+post-destroot {
+    set docdir ${prefix}/share/doc/${name}-${version}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 -W ${worksrcpath} BUGREPORT COPYRIGHT.MOTIF ChangeLog LICENSE \
+        README RELNOTES TODO ${destroot}${docdir}
+}
+
 platform darwin 7 {
     patchfiles-append   patch-freetype
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070922/04c21ce3/attachment.html


More information about the macports-changes mailing list