source: trunk/dports/science/alliance/Portfile

Last change on this file was 115266, checked in by jmr@…, 4 years ago

alliance: does not link with libpng

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 115266 2013-12-30 10:27:53Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                alliance
6version             5.0-20110203
7revision            2
8license             GPL
9set version_number  [lindex [split ${version} -] 0]
10categories          science
11maintainers         nomaintainer
12description         Alliance, CAD and libraries for VLSI design
13long_description    Alliance is a complete set of free CAD tools and portable libraries for \
14                    VLSI design. It includes a VHDL compiler and simulator, logic synthesis \
15                    tools, and automatic place and route tools. A complete set of portable \
16                    CMOS libraries is provided
17platforms           darwin
18homepage            http://www-soc.lip6.fr/en/recherche/cian/alliance/
19
20master_sites        ftp://asim.lip6.fr/pub/alliance/distribution/latest
21
22checksums           sha1    a1a9f84b5120ea262c989fcf42a6131ee54d5ec7 \
23                    rmd160  be9554ae1c84c1f6d4cd49bf19e2fe997d9ec27b
24
25depends_lib         port:xpm \
26                    port:openmotif
27
28worksrcdir          ${name}-${version_number}
29
30patchfiles          patch-distrib-etc-Makefile.in.diff
31
32use_parallel_build  no
33
34configure.args-append   --mandir=${prefix}/share/man
35configure.env-append    YACC='/usr/bin/yacc'
36build.env               LC_ALL=C
37destroot.env-append     YACC='/usr/bin/yacc'
38
39# compiler_issue
40if {[string match *clang* ${configure.compiler}]} {
41    # Missing return statements should really be fixed.
42    # If you care about this port, fix the real issue...   
43    configure.cflags-append -Wno-return-type
44}
45
46if {[string match *clang* ${configure.compiler}] ||
47    [string match *llvm-gcc-4.2* ${configure.compiler}]} {
48    # removing -O2 in nero/src in order to correctly export symbols in MDRGrid.o
49    # cf. http://llvm.org/bugs/show_bug.cgi?id=7445
50    # cf. http://trac.macports.org/ticket/32947#comment:3
51    post-configure {
52        reinplace "/^CXXFLAGS/s/ -O2//" ${worksrcpath}/nero/src/Makefile
53    }
54}
55
56post-destroot {
57    file mkdir  ${destroot}${prefix}/share/alliance
58    file rename ${destroot}${prefix}/doc        ${destroot}${prefix}/share/alliance
59    file rename ${destroot}${prefix}/examples   ${destroot}${prefix}/share/alliance
60    file rename ${destroot}${prefix}/tutorials  ${destroot}${prefix}/share/alliance
61    file rename ${destroot}${prefix}/cells      ${destroot}${prefix}/share/alliance
62}
63
64platform darwin {
65    patchfiles-append patch-xgra-src-XSB_parse.c.diff
66}
67
68livecheck.type      regex
69livecheck.url       [lindex ${master_sites} 0]
70livecheck.regex     ${name}-(\[0-9.-\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.