source: trunk/dports/devel/bsdmake/Portfile

Last change on this file was 105220, checked in by raimue@…, 4 years ago

devel/bsdmake:
Fix setrlimit parameters to avoid EINVAL, closes #35612

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 105220 2013-04-13 17:58:13Z ryandesign@macports.org $
2
3PortSystem     1.0
4
5name           bsdmake
6version        24
7revision       1
8categories     devel
9platforms      darwin
10license        BSD
11maintainers    raimue openmaintainer
12installs_libs  no
13
14description    BSD make
15long_description \
16    BSD make is a build tool to create programs and libraries by rules \
17    specified in a Makefile. This port is based on the last version from Apple as \
18    provided by Xcode 4.2.
19
20homepage       http://opensource.apple.com/
21               # see also http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/make/
22master_sites   http://opensource.apple.com/tarballs/${name}
23
24checksums      rmd160  ff6d946a8b742b20948f9a48c9cdaa95e9dee2bd \
25               sha256  82a948b80c2abfc61c4aa5c1da775986418a8e8eb3dd896288cfadf2e19c4985
26
27patchfiles     patch-Makefile.diff \
28               patch-mk.diff \
29               patch-pathnames.diff \
30               patch-setrlimit.diff
31
32post-patch {
33    reinplace "s:@PREFIX@:${prefix}:g" \
34        ${worksrcpath}/mk/bsd.README \
35        ${worksrcpath}/mk/bsd.cpu.mk \
36        ${worksrcpath}/mk/bsd.doc.mk \
37        ${worksrcpath}/mk/bsd.obj.mk \
38        ${worksrcpath}/mk/bsd.own.mk \
39        ${worksrcpath}/mk/bsd.port.mk \
40        ${worksrcpath}/mk/bsd.port.subdir.mk \
41        ${worksrcpath}/mk/sys.mk \
42        ${worksrcpath}/pathnames.h
43    reinplace "s:@INSTALL_USER@:${install.user}:g"   ${worksrcpath}/mk/bsd.own.mk
44    reinplace "s:@INSTALL_GROUP@:${install.group}:g" ${worksrcpath}/mk/bsd.own.mk
45}
46
47use_configure no
48
49build.target
50# Using some pseudo MACHINE here, this ends up as ${MACHINE} in Makefiles
51build.args -f Makefile.dist \
52           CC="${configure.cc}" \
53           CFLAGS="-D__FBSDID=__RCSID -mdynamic-no-pic \
54                   -DMACHINE=\\\\\\\"MacPorts\\\\\\\" \
55                   -DMACHINE_ARCH=\\\\\\\"${configure.build_arch}\\\\\\\"" \
56           WARNS=1
57
58destroot {
59    xinstall -m 755 ${worksrcpath}/pmake ${destroot}${prefix}/bin/bsdmake
60    xinstall -m 444 ${worksrcpath}/make.1 ${destroot}${prefix}/share/man/man1/bsdmake.1
61    xinstall -d ${destroot}${prefix}/share/mk/bsdmake
62    eval xinstall -m 644 [glob ${worksrcpath}/mk/*] ${destroot}${prefix}/share/mk/bsdmake
63}
64
65livecheck.type none
Note: See TracBrowser for help on using the repository browser.