Ticket #25334: patch-Makefile.diff

File patch-Makefile.diff, 1.3 KB (added by aguynamedryan+macports@…, 14 years ago)

patch for Makefile

  • Makefile

    old new  
    11# makefile of pianobar
    22
    3 PREFIX:=/usr/local
     3PREFIX:=/opt/local
    44BINDIR:=${PREFIX}/bin
    55LIBDIR:=${PREFIX}/lib
    66MANDIR:=${PREFIX}/share/man
     
    8787pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} \
    8888                ${LIBWAITRESS_HDR} ${LIBEZXML_OBJ} ${LIBEZXML_HDR}
    8989        ${CC} ${CFLAGS} ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} \
    90                         ${LIBEZXML_OBJ} ${LIBAO_LIB} ${LIBFAAD_LIB} ${LIBMAD_LIB} \
     90                        ${LIBEZXML_OBJ} -L/opt/local/lib ${LIBAO_LIB} ${LIBFAAD_LIB} ${LIBMAD_LIB} \
    9191                        ${PTHREAD_LIB} ${LIBM_LIB} -o $@
    9292
    9393# build shared libpiano
     
    9898
    9999%.o: %.c
    100100        ${CC} ${CFLAGS} -I ${LIBPIANO_INCLUDE} -I ${LIBWAITRESS_INCLUDE} \
    101                         -I ${LIBEZXML_INCLUDE} ${LIBFAAD_SWITCH} ${LIBMAD_SWITCH} -c \
     101                        -I ${LIBEZXML_INCLUDE} -I /opt/local/include ${LIBFAAD_SWITCH} ${LIBMAD_SWITCH} -c \
    102102                        -o $@ $<
    103103
    104104# create position independent code (for shared libraries)
     
    113113
    114114all: pianobar libpiano
    115115
    116 install: pianobar
     116install: pianobar ${DESTDIR}/${BINDIR}/pianobar
     117
     118${DESTDIR}/${BINDIR}/pianobar:
    117119        install -d ${DESTDIR}/${BINDIR}/
    118120        install -m755 pianobar ${DESTDIR}/${BINDIR}/
    119121        install -d ${DESTDIR}/${MANDIR}/man1/