Ticket #27655: pianobar-dynamiclib.diff

File pianobar-dynamiclib.diff, 1.0 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

one possible solution

  • files/patch-Makefile.diff

     
     1--- Makefile.orig       2010-11-06 07:38:14.000000000 -0500
     2+++ Makefile    2010-12-12 16:16:57.000000000 -0600
     3@@ -95,7 +95,7 @@
     4 # build shared libpiano
     5 libpiano: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \
     6                ${LIBWAITRESS_HDR} ${LIBEZXML_RELOBJ} ${LIBEZXML_HDR}
     7-       ${CC} -shared ${CFLAGS} ${LIBPIANO_RELOBJ} ${LIBWAITRESS_RELOBJ} \
     8+       ${CC} -dynamiclib ${CFLAGS} ${LIBPIANO_RELOBJ} ${LIBWAITRESS_RELOBJ} \
     9                        ${LIBEZXML_RELOBJ} -o $@.so.0.0.0
     10 
     11 %.o: %.c
  • Portfile

     
    4646
    4747destroot.args               PREFIX=${prefix}
    4848
     49platform macosx {
     50    patchfiles-append       patch-Makefile.diff
     51}
     52
    4953livecheck.type              regex
    5054livecheck.regex             ${name}-(\[0-9.\]+)${extract.suffix}