Ticket #32438: haproxy.diff

File haproxy.diff, 2.3 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)

proposed patch

  • 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

     
    44
    55name              haproxy
    66version           1.4.18
     7set branch          [join [lrange [split ${version} .] 0 1] .]
     8revision            1
    79categories        net
    810platforms         darwin
    911maintainers       samgranieri.com:sam
     12license             GPL-2+
     13
    1014description       The Reliable, High Performance TCP/HTTP Load Balancer
    1115
    1216long_description  HAproxy is a high-performance and highly-robust TCP/HTTP \
     
    1822                  per second on modern hardware, even with thousands simultaneous connections.
    1923
    2024homepage          http://haproxy.1wt.eu/
    21 master_sites      http://haproxy.1wt.eu/download/1.4/src/
     25master_sites        ${homepage}download/${branch}/src/
    2226
    2327checksums         md5     4ac88bb1a76c4b84ed4f6131183bedbe \
    2428                  sha1    191dbcb5880c711580693bd081ca5fdd8dde3012 \
    2529                  rmd160  16729f0519a47123d88e849ae95d600c590c8583
    2630
    27 configure  {
    28   reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile
    29 }
     31depends_lib         port:pcre
    3032
     33patchfiles          patch-Makefile.diff
     34
     35use_configure       no
     36
     37variant universal {}
     38
    3139build.target TARGET=osx
    3240
    33 post-destroot  {
    34   set docdir ${destroot}${prefix}/share/doc
    35   # xinstall -d ${docdir}
    36   file rename ${destroot}${prefix}/doc ${docdir}
     41build.args          CC="${configure.cc} [get_canonical_archflags]" \
     42                    USE_LIBCRYPT=1 \
     43                    USE_PCRE=1
     44
     45destroot.args       DOCDIR=${prefix}/share/doc/${name} \
     46                    PREFIX=${prefix}
     47
     48platform i386 {
     49    build.args-append USE_REGPARM=1
    3750}
     51
     52livecheck.type      regex
     53livecheck.regex     {>Stable ([0-9.]+)<}