Ticket #38306: Portfile.diff
File Portfile.diff, 2.0 KB (added by cooljeanius (Eric Gallager), 12 years ago) |
---|
-
/opt/local/var/macports/sources/LocalPorts/sysutils/osxbom/Portfile
old new 4 4 PortSystem 1.0 5 5 6 6 name osxbom 7 version 0.0.38 7 categories sysutils 9 8 maintainers gwmail.gwu.edu:egall openmaintainer 10 9 platforms darwin … … 14 13 long_description ${description}. Used by the PureDarwin project to work with MacPorts \ 15 14 binary packages. 16 15 homepage https://cauldrondevelopment.com/svn/${name}/trunk/ 16 variant universal {} 17 17 18 18 livecheck.type none 19 19 20 20 fetch.type svn 21 21 svn.url ${homepage} 22 22 svn.revision 3 23 version 0.0.${svn.revision} 23 24 24 25 worksrcdir trunk 25 26 26 27 use_configure no 27 28 28 destroot { 29 xinstall ${worksrcpath}/lsbom ${destroot}${prefix}/bin/${name} 30 xinstall -d ${destroot}${prefix}/include/${name} 31 xinstall ${worksrcpath}/bom.h ${destroot}${prefix}/include/${name} 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 32 37 } 33 38 34 variant no_rename description {Don't rename the files installed. Warning: This variant shadows the system lsbom.} { 35 destroot { 39 destroot { 36 40 xinstall ${worksrcpath}/lsbom ${destroot}${prefix}/bin 37 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} 38 49 } 39 50 } 51 52 default_variants +rename