| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name m4 |
|---|
| 6 | version 1.4.12 |
|---|
| 7 | revision 1 |
|---|
| 8 | categories devel |
|---|
| 9 | maintainers blair openmaintainer |
|---|
| 10 | platforms darwin |
|---|
| 11 | description GNU macro processor |
|---|
| 12 | |
|---|
| 13 | long_description \ |
|---|
| 14 | GNU `m4' is an implementation of the traditional Unix macro \ |
|---|
| 15 | processor. It is mostly SVR4 compatible, although it has some \ |
|---|
| 16 | extensions (for example, handling more than 9 positional parameters \ |
|---|
| 17 | to macros). `m4' also has built-in functions for including files, \ |
|---|
| 18 | running shell commands, doing arithmetic, etc. Autoconf needs GNU \ |
|---|
| 19 | `m4' for generating `configure' scripts, but not for running them. |
|---|
| 20 | |
|---|
| 21 | homepage http://www.gnu.org/software/m4/ |
|---|
| 22 | master_sites gnu |
|---|
| 23 | use_bzip2 yes |
|---|
| 24 | |
|---|
| 25 | checksums md5 b3587c993523dd320c318ec456876839 \ |
|---|
| 26 | sha1 445da514bd9012690e2cf60170b16962787d2256 \ |
|---|
| 27 | rmd160 ff55d95da2a52e9a9b8f5bb76072e1b08318ba2a |
|---|
| 28 | |
|---|
| 29 | patchfiles patch-test-c-stack2.sh.diff |
|---|
| 30 | |
|---|
| 31 | configure.args --program-prefix=g \ |
|---|
| 32 | gl_cv_lib_sigsegv=no |
|---|
| 33 | |
|---|
| 34 | use_parallel_build yes |
|---|
| 35 | |
|---|
| 36 | post-destroot { |
|---|
| 37 | move ${destroot}${prefix}/share/info/m4.info ${destroot}${prefix}/share/info/gm4.info |
|---|
| 38 | delete ${destroot}${prefix}/lib/charset.alias |
|---|
| 39 | |
|---|
| 40 | set docdir ${prefix}/share/doc/${name}-${version} |
|---|
| 41 | xinstall -d ${destroot}${docdir} |
|---|
| 42 | xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS \ |
|---|
| 43 | TODO ${destroot}${docdir} |
|---|
| 44 | } |
|---|
| 45 | |
|---|
| 46 | test.run yes |
|---|
| 47 | test.target check |
|---|
| 48 | test.env TMPDIR=/tmp |
|---|
| 49 | |
|---|
| 50 | variant with_default_names description {Install files without 'g' prefix} { |
|---|
| 51 | post-destroot { |
|---|
| 52 | foreach {d} {bin share/man/man1} { |
|---|
| 53 | foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} g*] { |
|---|
| 54 | ln -sf ${prefix}/${d}/${f} ${destroot}${prefix}/${d}/[string range ${f} 1 end] |
|---|
| 55 | } |
|---|
| 56 | } |
|---|
| 57 | } |
|---|
| 58 | } |
|---|
| 59 | |
|---|
| 60 | livecheck.check regex |
|---|
| 61 | livecheck.url http://ftp.gnu.org/gnu/${name}/?C=M&O=D |
|---|
| 62 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)\\.tar\\.bz2 |
|---|