source: trunk/dports/devel/libidl/Portfile

Last change on this file was 114328, checked in by ryandesign@…, 4 years ago

use eq and ne instead of == and != when comparing ${os.arch}, ${configure.build_arch}, ${build_arch}, and some port-specific variables for referring to architectures

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 114328 2013-12-05 10:21:52Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       muniversal 1.0
6
7name            libidl
8set my_name     libIDL
9version         0.8.14
10revision        2
11maintainers     nomaintainer
12categories      devel gnome
13license         LGPL-2+
14platforms       darwin
15set branch      [join [lrange [split ${version} .] 0 1] .]
16description     libIDL is a library for creating CORBA IDL files.
17
18long_description \
19    libIDL is a library licensed under the GNU LGPL \
20    for creating trees of CORBA Interface Definition \
21    Language (IDL) files, which is a specification \
22    for defining portable interfaces. libIDL was \
23    initially written for ORBit (the ORB from the \
24    GNOME project, and the primary means of libIDL \
25    distribution).  However, the functionality was \
26    designed to be as reusable and portable as possible.
27
28homepage        http://andrewtv.org/libIDL/
29master_sites    gnome:sources/${my_name}/${branch}/
30distname        ${my_name}-${version}
31use_bzip2       yes
32
33checksums       md5     bb8e10a218fac793a52d404d14adedcb \
34                sha1    abedf091bef0c7e65162111baf068dcb739ffcd3 \
35                rmd160  a5e22b89559a0f6e6aebc6e95c86faa511b561fc
36
37depends_build   port:pkgconfig bin:flex:flex bin:bison:bison
38
39depends_lib     path:lib/pkgconfig/glib-2.0.pc:glib2 \
40                port:libiconv \
41                port:gettext
42
43# Required when cross-compiling.
44if { ${os.arch} eq "i386" } {
45    if { ${os.major} >= 10 } {
46        set merger_configure_env(ppc) libIDL_cv_long_long_format=ll
47    }
48    set merger_configure_env(ppc64)   libIDL_cv_long_long_format=ll
49} else {
50    set merger_configure_env(i386)    libIDL_cv_long_long_format=ll
51    set merger_configure_env(x86_64)  libIDL_cv_long_long_format=ll
52}
53
54post-destroot {
55    set docdir ${destroot}${prefix}/share/doc/${name}
56    xinstall -d ${docdir}
57    xinstall -m 644 -W ${worksrcpath} \
58        AUTHORS \
59        BUGS \
60        COPYING \
61        ChangeLog \
62        HACKING \
63        MAINTAINERS \
64        NEWS \
65        README \
66        ${docdir}
67}
68
69livecheck.type  gnome
70livecheck.name  ${my_name}
Note: See TracBrowser for help on using the repository browser.