Ticket #32438: haproxy.diff
File haproxy.diff, 2.3 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
files/patch-Makefile.diff
1 --- Makefile.orig 2011-09-16 08:02:05.000000000 -0500 2 +++ Makefile 2011-12-06 19:01:17.000000000 -0600 3 @@ -345,7 +345,9 @@ 4 ifneq ($(USE_LIBCRYPT),) 5 OPTIONS_CFLAGS += -DCONFIG_HAP_CRYPT 6 BUILD_OPTIONS += $(call ignore_implicit,USE_LIBCRYPT) 7 +ifneq ($(shell uname -s),Darwin) 8 OPTIONS_LDFLAGS += -lcrypt 9 +endif 10 endif 11 12 ifneq ($(USE_CRYPT_H),) -
Portfile
4 4 5 5 name haproxy 6 6 version 1.4.18 7 set branch [join [lrange [split ${version} .] 0 1] .] 8 revision 1 7 9 categories net 8 10 platforms darwin 9 11 maintainers samgranieri.com:sam 12 license GPL-2+ 13 10 14 description The Reliable, High Performance TCP/HTTP Load Balancer 11 15 12 16 long_description HAproxy is a high-performance and highly-robust TCP/HTTP \ … … 18 22 per second on modern hardware, even with thousands simultaneous connections. 19 23 20 24 homepage http://haproxy.1wt.eu/ 21 master_sites http://haproxy.1wt.eu/download/1.4/src/25 master_sites ${homepage}download/${branch}/src/ 22 26 23 27 checksums md5 4ac88bb1a76c4b84ed4f6131183bedbe \ 24 28 sha1 191dbcb5880c711580693bd081ca5fdd8dde3012 \ 25 29 rmd160 16729f0519a47123d88e849ae95d600c590c8583 26 30 27 configure { 28 reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile 29 } 31 depends_lib port:pcre 30 32 33 patchfiles patch-Makefile.diff 34 35 use_configure no 36 37 variant universal {} 38 31 39 build.target TARGET=osx 32 40 33 post-destroot { 34 set docdir ${destroot}${prefix}/share/doc 35 # xinstall -d ${docdir} 36 file rename ${destroot}${prefix}/doc ${docdir} 41 build.args CC="${configure.cc} [get_canonical_archflags]" \ 42 USE_LIBCRYPT=1 \ 43 USE_PCRE=1 44 45 destroot.args DOCDIR=${prefix}/share/doc/${name} \ 46 PREFIX=${prefix} 47 48 platform i386 { 49 build.args-append USE_REGPARM=1 37 50 } 51 52 livecheck.type regex 53 livecheck.regex {>Stable ([0-9.]+)<}