kumquat-buildroot/package/qdecoder/0001-fix-make-install.patch
Peter Korsgaard 298cd8eaa2 package/*: rename patches according to the new policy
Autogenerated from rename-patch.py (http://patchwork.ozlabs.org/patch/403345)

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-02-03 14:52:56 +01:00

41 lines
1.4 KiB
Diff

[PATCH] fix make install to respect DESTDIR
And also ensure destination directories exist.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
src/Makefile.in | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
Index: qdecoder-r12.0.5/src/Makefile.in
===================================================================
--- qdecoder-r12.0.5.orig/src/Makefile.in
+++ qdecoder-r12.0.5/src/Makefile.in
@@ -78,17 +78,18 @@
${LN_S} -f ${SLIBREALNAME} ${SLIBNAME}
install: all
- ${INSTALL_DATA} qdecoder.h ${HEADERDIR}/qdecoder.h
- ${INSTALL_DATA} ${LIBNAME} ${LIBDIR}/${LIBNAME}
- ${INSTALL_DATA} ${SLIBREALNAME} ${LIBDIR}/${SLIBREALNAME}
- ( cd ${LIBDIR}; ${LN_S} -f ${SLIBREALNAME} ${SLIBNAME} )
+ mkdir -p ${DESTDIR}/${HEADERDIR} ${DESTDIR}/${LIBDIR}
+ ${INSTALL_DATA} qdecoder.h ${DESTDIR}/${HEADERDIR}/qdecoder.h
+ ${INSTALL_DATA} ${LIBNAME} ${DESTDIR}/${LIBDIR}/${LIBNAME}
+ ${INSTALL_DATA} ${SLIBREALNAME} ${DESTDIR}/${LIBDIR}/${SLIBREALNAME}
+ ( cd ${DESTDIR}/${LIBDIR}; ${LN_S} -f ${SLIBREALNAME} ${SLIBNAME} )
deinstall: uninstall
uninstall:
- ${RM} -f ${HEADERDIR}/qdecoder.h
- ${RM} -f ${LIBDIR}/${LIBNAME}
- ${RM} -f ${LIBDIR}/${SLIBREALNAME}
- ${RM} -f ${LIBDIR}/${SLIBNAME}
+ ${RM} -f ${DESTDIR}/${HEADERDIR}/qdecoder.h
+ ${RM} -f ${DESTDIR}/${LIBDIR}/${LIBNAME}
+ ${RM} -f ${DESTDIR}/${LIBDIR}/${SLIBREALNAME}
+ ${RM} -f ${DESTDIR}/${LIBDIR}/${SLIBNAME}
doc:
doxygen doxygen.conf