packages/sound/pianobar/patches/002-force-symlinks.patch
swalker b5a8cb9820 [packages] pianobar: force the lib symlinks
git-svn-id: svn://svn.openwrt.org/openwrt/packages@30609 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-02-17 04:00:16 +00:00

25 lines
1017 B
Diff

--- a/Makefile
+++ b/Makefile
@@ -108,8 +108,8 @@ libpiano.so.0: ${LIBPIANO_RELOBJ} ${LIBP
${CC} -shared -Wl,-soname,libpiano.so.0 ${CFLAGS} ${LDFLAGS} ${LIBGNUTLS_LDFLAGS} \
-o libpiano.so.0.0.0 ${LIBPIANO_RELOBJ} \
${LIBWAITRESS_RELOBJ} ${LIBEZXML_RELOBJ}
- ln -s libpiano.so.0.0.0 libpiano.so.0
- ln -s libpiano.so.0 libpiano.so
+ ln -sf libpiano.so.0.0.0 libpiano.so.0
+ ln -sf libpiano.so.0 libpiano.so
${AR} rcs libpiano.a ${LIBPIANO_OBJ} ${LIBWAITRESS_OBJ} ${LIBEZXML_OBJ}
%.o: %.c
@@ -177,8 +177,8 @@ endif
install-libpiano:
install -d ${DESTDIR}/${LIBDIR}/
install -m644 libpiano.so.0.0.0 ${DESTDIR}/${LIBDIR}/
- ln -s libpiano.so.0.0.0 ${DESTDIR}/${LIBDIR}/libpiano.so.0
- ln -s libpiano.so.0 ${DESTDIR}/${LIBDIR}/libpiano.so
+ ln -sf libpiano.so.0.0.0 ${DESTDIR}/${LIBDIR}/libpiano.so.0
+ ln -sf libpiano.so.0 ${DESTDIR}/${LIBDIR}/libpiano.so
install -m644 libpiano.a ${DESTDIR}/${LIBDIR}/
install -d ${DESTDIR}/${INCDIR}/
install -m644 src/libpiano/piano.h ${DESTDIR}/${INCDIR}/