source: trunk/dports/devel/byaccj/Portfile

Last change on this file was 86157, checked in by ryandesign@…, 6 years ago

byaccj: ensure we're using the right arch flags; add universal variant; see #31605

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 86157 2011-10-20 06:26:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            byaccj
6version         1.15
7revision        1
8categories      devel java
9platforms       darwin
10maintainers     mww
11license         public-domain
12description     yacc compatible parser generator with Java extension
13long_description        byacc/j is an extension to the Berkeley v1.8 yacc \
14                compatible parser generator. byacc/j not only can produce \
15                C/C++ source for a LALR-grammar parser, but also Java source.
16
17homepage        http://byaccj.sourceforge.net/
18master_sites    sourceforge
19distname        byaccj${version}_src
20checksums       sha1 eeabe2a3a3ca9cc56a777fa54238ab093fc525c7
21patchfiles      patch-src-Makefile.diff
22
23use_configure   no
24
25variant universal {}
26
27worksrcdir      byaccj${version}/src
28build.args      CC="${configure.cc} [get_canonical_archflags]" \
29                CFLAGS="${configure.cflags}" \
30                LDFLAGS="${configure.ldflags}"
31
32destroot        {
33        xinstall -m 755 -d ${destroot}${prefix}/share/doc/
34        file copy ${worksrcpath}/../docs ${destroot}${prefix}/share/doc/${name}
35        xinstall -W ${worksrcpath} new_features no_warranty \
36                ${destroot}${prefix}/share/doc/${name}/
37        xinstall -m 755 ${worksrcpath}/yacc ${destroot}${prefix}/bin/byaccj
38        xinstall -m 644 ${worksrcpath}/yacc.1 ${destroot}${prefix}/share/man/man1/byaccj.1
39}
40
Note: See TracBrowser for help on using the repository browser.