Ticket #34969: patch-Makefile.diff
File patch-Makefile.diff, 1.9 KB (added by aguynamedryan+macports@…, 12 years ago) |
---|
-
Makefile
old new 88 88 89 89 # build pianobar 90 90 ifeq (${DYNLINK},1) 91 pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano. so.091 pianobar: ${PIANOBAR_OBJ} ${PIANOBAR_HDR} libpiano.0.dylib 92 92 @echo " LINK $@" 93 93 @${CC} -o $@ ${PIANOBAR_OBJ} ${LDFLAGS} -lao -lpthread -lm -L. -lpiano \ 94 94 ${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 -o libpiano. so.0.0.0${LIBPIANO_RELOBJ} \109 @${CC} -dynamiclib -Wl,-install_name,libpiano.0.dylib ${CFLAGS} ${LDFLAGS} \ 110 -o libpiano.0.0.0.dylib ${LIBPIANO_RELOBJ} \ 111 111 ${LIBWAITRESS_RELOBJ} ${LIBGNUTLS_LDFLAGS} ${LIBGCRYPT_LDFLAGS} \ 112 112 ${LIBJSONC_LDFLAGS} 113 @ln -s libpiano. so.0.0.0 libpiano.so.0114 @ln -s libpiano. so.0libpiano.so113 @ln -s libpiano.0.0.0.dylib libpiano.0.dylib 114 @ln -s libpiano.0.dylib libpiano.so 115 115 @echo " AR libpiano.a" 116 116 @${AR} rcs libpiano.a ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} 117 117 … … 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.so 189 189 install -m644 libpiano.a ${DESTDIR}/${LIBDIR}/ 190 190 install -d ${DESTDIR}/${INCDIR}/ 191 191 install -m644 src/libpiano/piano.h ${DESTDIR}/${INCDIR}/