source: trunk/dports/x11/openmotif/Portfile

Last change on this file was 147105, checked in by khindenburg@…, 18 months ago

lesstif: remove obsolete port (#15885)
openmotif: remove conflict with lesstif

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 147105 2016-03-27 17:50:18Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       active_variants 1.1
5
6name            openmotif
7version         2.3.4
8revision        3
9categories      x11
10license         LGPL
11platforms       darwin
12maintainers     nomaintainer
13description     The Open Motif toolkit for X11
14
15long_description \
16    This is The Open Group's full version of Motif based on \
17    the original OSF sources.
18
19homepage        http://motif.ics.com/
20master_sites    sourceforge:project/motif/Motif%20${version}%20Source%20Code
21distname        motif-${version}-src
22extract.suffix  .tgz
23
24checksums       md5    612bb8127d0d31da6e5474edf8a5c247 \
25                sha1   49ecfe2a0939232ca78ce318d938044e7f751b6d \
26                rmd160 96e1ed3c5b99d420e3e2e4eae1b5590961191a33
27worksrcdir      motif-${version}
28
29depends_build \
30        port:pkgconfig \
31        port:xbitmaps \
32        port:autoconf \
33        port:automake \
34        port:libtool \
35        port:bison \
36        port:flex
37
38depends_lib \
39        port:jpeg \
40        port:libpng \
41        port:libiconv \
42        port:xorg-libsm \
43        port:xorg-libXext \
44        port:Xft2 \
45        port:xorg-libXmu \
46        port:xorg-libXp \
47        port:xorg-libXt
48
49require_active_variants xorg-libXt flat_namespace
50
51patchfiles      patch-uintptr_t-cast.diff \
52                patch-lib-XmP.h.diff \
53                patch-autogen.sh.diff \
54                patch-automake-1.13.diff
55
56# See #42847
57if {[string match "*clang*" ${configure.compiler}]} {
58    patchfiles-append patch-configure.ac.diff
59}
60
61post-patch {
62    # Looks like a botched cvs rename - identical files with an 'Exm' name
63    # prefix exist. Only a problem because of a case-conflict with libc's
64    # string.h.
65    file delete ${worksrcpath}/demos/lib/Exm/String.h \
66                ${worksrcpath}/demos/lib/Exm/StringP.h \
67                ${worksrcpath}/demos/lib/Exm/String.c
68}
69
70pre-configure {
71    system -W ${worksrcpath} "./autogen.sh"
72}
73configure.args  --enable-xft \
74                --enable-jpeg   \
75                --enable-png \
76                --x-includes=${prefix}/include \
77                --x-libraries=${prefix}/lib
78
79configure.env-append YACC="${prefix}/bin/bison -y"
80
81use_parallel_build  no
82
83post-destroot {
84    set docdir ${prefix}/share/doc/${name}
85    xinstall -d ${destroot}${docdir}
86    xinstall -m 0644 -W ${worksrcpath} BUGREPORT COPYING ChangeLog \
87        README RELNOTES TODO ${destroot}${docdir}
88}
89
90livecheck.type  none
Note: See TracBrowser for help on using the repository browser.