Ticket #34365: patch-Makefile.diff
File patch-Makefile.diff, 2.2 KB (added by aguynamedryan+macports@…, 13 years ago) |
---|
-
Makefile
old new 87 87 88 88 # build pianobar 89 89 ifeq (${DYNLINK},1) 90 pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano. so.090 pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano.0.dylib 91 91 @echo " LINK $@" 92 92 @${CC} -o $@ ${PIANOBAR_OBJ} ${LDFLAGS} -lao -lpthread -lm -L. -lpiano \ 93 93 ${LIBFAAD_LDFLAGS} ${LIBMAD_LDFLAGS} ${LIBGNUTLS_LDFLAGS} \ … … 103 103 endif 104 104 105 105 # build shared and static libpiano 106 libpiano. so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \106 libpiano.0.dylib: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBWAITRESS_RELOBJ} \ 107 107 ${LIBWAITRESS_HDR} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} 108 108 @echo " LINK $@" 109 @${CC} - shared -Wl,-soname,libpiano.so.0${CFLAGS} ${LDFLAGS} \110 ${LIBGNUTLS_LDFLAGS} ${LIBGCRYPT_LDFLAGS} \111 -o libpiano. so.0.0.0${LIBPIANO_RELOBJ} \109 @${CC} -dynamiclib -Wl,-install_name,${LIBDIR}/libpiano.0.dylib ${CFLAGS} ${LDFLAGS} \ 110 ${LIBGNUTLS_LDFLAGS} ${LIBGCRYPT_LDFLAGS} ${LIBJSONC_LDFLAGS} \ 111 -o libpiano.0.0.0.dylib ${LIBPIANO_RELOBJ} \ 112 112 ${LIBWAITRESS_RELOBJ} 113 @ln -s libpiano. so.0.0.0 libpiano.so.0114 @ln -s libpiano. so.0 libpiano.so113 @ln -s libpiano.0.0.0.dylib libpiano.0.dylib 114 @ln -s libpiano.0.dylib libpiano.dylib 115 115 @echo " AR libpiano.a" 116 116 @${AR} rcs libpiano.a ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} 117 117 … … 131 131 clean: 132 132 @echo " CLEAN" 133 133 @${RM} ${PIANOBAR_OBJ} ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} ${LIBWAITRESS_OBJ}/test.o \ 134 ${LIBPIANO_RELOBJ} ${LIBWAITRESS_RELOBJ} pianobar libpiano .so*\134 ${LIBPIANO_RELOBJ} ${LIBWAITRESS_RELOBJ} pianobar libpiano*.dylib \ 135 135 libpiano.a waitress-test 136 136 137 137 all: pianobar … … 183 183 184 184 install-libpiano: 185 185 install -d ${DESTDIR}/${LIBDIR}/ 186 install -m644 libpiano. so.0.0.0${DESTDIR}/${LIBDIR}/187 ln -s libpiano. so.0.0.0 ${DESTDIR}/${LIBDIR}/libpiano.so.0188 ln -s libpiano. so.0 ${DESTDIR}/${LIBDIR}/libpiano.so186 install -m644 libpiano.0.0.0.dylib ${DESTDIR}/${LIBDIR}/ 187 ln -s libpiano.0.0.0.dylib ${DESTDIR}/${LIBDIR}/libpiano.0.dylib 188 ln -s libpiano.0.dylib ${DESTDIR}/${LIBDIR}/libpiano.dylib 189 189 install -m644 libpiano.a ${DESTDIR}/${LIBDIR}/ 190 190 install -d ${DESTDIR}/${INCDIR}/ 191 191 install -m644 src/libpiano/piano.h ${DESTDIR}/${INCDIR}/