Ticket #55754: Portfile-alliance.diff
File Portfile-alliance.diff, 5.4 KB (added by ryandesign (Ryan Carsten Schmidt), 7 years ago) |
---|
-
Portfile
1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 2 1 3 PortSystem 1.0 2 4 3 5 name alliance 4 version 5.0-20110203 5 revision 2 6 license GPL 7 set version_number [lindex [split ${version} -] 0] 6 7 #fetch.type git 8 9 if {${fetch.type} ne "git"} { 10 version 5.1.1 11 } else { 12 git.url https://www-soc.lip6.fr/git/alliance.git 13 git.branch 57b0f4774e2347f768eb1aacbb173b683f75c144 14 version 5.0-20171128 15 } 16 17 license GPL-2+ 8 18 categories science 9 19 maintainers nomaintainer 10 20 description Alliance, CAD and libraries for VLSI design … … 13 23 tools, and automatic place and route tools. A complete set of portable \ 14 24 CMOS libraries is provided 15 25 platforms darwin 16 homepage http://www-soc.lip6.fr/en/recherche/cian/alliance/17 26 27 homepage https://www-soc.lip6.fr/equipe-cian/logiciels/alliance/ 18 28 master_sites ftp://asim.lip6.fr/pub/alliance/distribution/latest 29 use_bzip2 yes 19 30 20 checksums sha1 a1a9f84b5120ea262c989fcf42a6131ee54d5ec7 \ 21 rmd160 be9554ae1c84c1f6d4cd49bf19e2fe997d9ec27b 31 checksums rmd160 ad765aa6ce035f47d2a9745389dd58638d23ea87 \ 32 sha256 811f201881af46d9d36f1c60b184c136fd2b8bebbe932a29e07ced40394ecc10 \ 33 size 4486561 22 34 35 depends_build port:fig2dev \ 36 port:ImageMagick \ 37 port:texlive-fonts-recommended \ 38 port:texlive-latex \ 39 port:texlive-latex-extra \ 40 port:texlive-latex-recommended \ 41 port:texlive-pictures \ 42 port:texlive-plain-generic 43 23 44 depends_lib port:xpm \ 24 45 port:openmotif 25 46 26 worksrcdir ${name}-${version_number} 47 if {${fetch.type} ne "git"} { 48 worksrcdir ${name}/src 49 } else { 50 patch.dir ${worksrcpath}/alliance/src 51 } 27 52 28 patchfiles patch-distrib-etc-Makefile.in.diff 53 patchfiles-append patch-autostuff.diff 54 #patchfiles-append patch-distrib-etc-Makefile.in.diff 55 if {${fetch.type} ne "git"} { 56 patchfiles-append patch-documentation.diff 57 } 29 58 59 # The distribution file doesn't contain a configure script. 60 # Homepage says: 61 # > Before running the autotools, you have to run the autostuff script 62 # > in ./alliance/src which generate the top-level automake files. 63 # See also: 64 # https://www-soc.lip6.fr/wws/arc/alliance-users/2014-03/msg00007.html 65 use_autoreconf yes 66 autoreconf.dir ${patch.dir} 67 autoreconf.cmd ./autostuff 68 depends_build-append port:autoconf \ 69 port:automake \ 70 port:libtool 71 72 # README says: 73 # > We recommand not to build the tool in the source directory. 74 configure.dir ${workpath}/build 75 configure.cmd ${patch.dir}/configure 76 build.dir ${configure.dir} 77 post-extract { 78 file mkdir ${configure.dir} 79 } 80 81 # README says: 82 # > Also, the install stage has to be done at the same time 83 # > as the make itself : the way the configure and Makefiles 84 # > are written implies that you do a "make install" in one 85 # > step rather than a "make" followed by a "make install" 86 build {} 87 88 # Homepage says: 89 # > Do not build in parallel, always uses -j1, the build 90 # > process fail in strange ways when run in parallel (this 91 # > is a known problem due to the way Alliance was developped). 30 92 use_parallel_build no 31 93 32 configure.args-append --mandir=${prefix}/share/man 33 configure.env-append YACC='/usr/bin/yacc' 34 build.env LC_ALL=C 35 destroot.env-append YACC='/usr/bin/yacc' 94 configure.args-append --enable-alc-shared 95 configure.env-append ALLIANCE_TOP=${prefix} \ 96 YACC=/usr/bin/yacc 36 97 98 destroot.env-append LC_ALL=C \ 99 YACC=/usr/bin/yacc 100 37 101 # compiler_issue 38 102 if {[string match *clang* ${configure.compiler}]} { 39 103 # Missing return statements should really be fixed. 40 # If you care about this port, fix the real issue... 41 configure.cflags-append -Wno-return-type104 # If you care about this port, fix the real issue... 105 # configure.cflags-append -Wno-return-type 42 106 } 43 107 44 108 if {[string match *clang* ${configure.compiler}] || 45 109 [string match *llvm-gcc-4.2* ${configure.compiler}]} { 46 110 # removing -O2 in nero/src in order to correctly export symbols in MDRGrid.o 47 # cf. http://llvm.org/bugs/show_bug.cgi?id=7445 48 # cf. http://trac.macports.org/ticket/32947#comment:3 49 post-configure { 50 reinplace "/^CXXFLAGS/s/ -O2//" ${worksrcpath}/nero/src/Makefile 51 } 111 # cf. https://bugs.llvm.org/show_bug.cgi?id=7445 112 # cf. https://trac.macports.org/ticket/32947#comment:3 113 # patchfiles-append patch-nero-src-Makefile.am.diff 52 114 } 53 115 54 116 post-destroot { 117 return -code error 55 118 file mkdir ${destroot}${prefix}/share/alliance 56 119 file rename ${destroot}${prefix}/doc ${destroot}${prefix}/share/alliance 57 120 file rename ${destroot}${prefix}/examples ${destroot}${prefix}/share/alliance