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 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name osxbom |
---|
7 | categories sysutils |
---|
8 | maintainers gwmail.gwu.edu:egall openmaintainer |
---|
9 | platforms darwin |
---|
10 | license public-domain |
---|
11 | |
---|
12 | description A free re-implementation of the NextSTEP/OSX lsbom utility |
---|
13 | long_description ${description}. Used by the PureDarwin project to work with MacPorts \ |
---|
14 | binary packages. |
---|
15 | homepage https://cauldrondevelopment.com/svn/${name}/trunk/ |
---|
16 | variant universal {} |
---|
17 | |
---|
18 | livecheck.type none |
---|
19 | |
---|
20 | fetch.type svn |
---|
21 | svn.url ${homepage} |
---|
22 | svn.revision 3 |
---|
23 | version 0.0.${svn.revision} |
---|
24 | |
---|
25 | worksrcdir trunk |
---|
26 | |
---|
27 | use_configure no |
---|
28 | |
---|
29 | set CFLAGS "${configure.cflags} [get_canonical_archflags cc]" |
---|
30 | |
---|
31 | build.env-append CC=${configure.cc} \ |
---|
32 | CXX=${configure.cxx} \ |
---|
33 | CPP=${configure.cpp} |
---|
34 | |
---|
35 | pre-build { |
---|
36 | reinplace "s|-Werror|${CFLAGS}|" ${worksrcpath}/Makefile |
---|
37 | } |
---|
38 | |
---|
39 | destroot { |
---|
40 | xinstall ${worksrcpath}/lsbom ${destroot}${prefix}/bin |
---|
41 | xinstall ${worksrcpath}/bom.h ${destroot}${prefix}/include |
---|
42 | } |
---|
43 | |
---|
44 | variant rename description {Prevent osxbom from shadowing the system lsbom} { |
---|
45 | destroot { |
---|
46 | xinstall ${worksrcpath}/lsbom ${destroot}${prefix}/bin/${name} |
---|
47 | xinstall -d ${destroot}${prefix}/include/${name} |
---|
48 | xinstall ${worksrcpath}/bom.h ${destroot}${prefix}/include/${name} |
---|
49 | } |
---|
50 | } |
---|
51 | |
---|
52 | default_variants +rename |
---|