add libaudiofile package (thanks to Romain Beauxis)
[openwrt.git] / package / ustl / patches / 01-install-DESTDIR.patch
1 diff -ruN ustl-0.8-old/Makefile ustl-0.8-new/Makefile
2 --- ustl-0.8-old/Makefile 2005-11-10 21:06:53.000000000 +0100
3 +++ ustl-0.8-new/Makefile 2005-12-08 13:57:07.000000000 +0100
4 @@ -39,35 +39,35 @@
5 .PHONY: install-static install-shared uninstall-static uninstall-shared
6
7 install-shared: ${LIBSOBLD} install-incs
8 - @echo "Installing ${LIBSOBLD} to ${LIBDIR} ..."
9 - @${INSTALLDIR} ${LIBDIR}
10 - @${INSTALLLIB} ${LIBSOBLD} ${LIBDIR}
11 - @(cd ${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
12 + @echo "Installing ${LIBSOBLD} to ${DESTDIR}${LIBDIR} ..."
13 + @${INSTALLDIR} ${DESTDIR}${LIBDIR}
14 + @${INSTALLLIB} ${LIBSOBLD} ${DESTDIR}${LIBDIR}
15 + @(cd ${DESTDIR}${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
16
17 uninstall-shared: uninstall-incs
18 - @echo "Removing ${LIBSOBLD} from ${LIBDIR} ..."
19 - @${RM} -f ${LIBDIR}/${LIBSO} ${LIBDIR}/${LIBSOLNK} ${LIBDIR}/${LIBSOBLD}
20 + @echo "Removing ${LIBSOBLD} from ${DESTDIR}${LIBDIR} ..."
21 + @${RM} -f ${DESTDIR}${LIBDIR}/${LIBSO} ${DESTDIR}${LIBDIR}/${LIBSOLNK} ${DESTDIR}${LIBDIR}/${LIBSOBLD}
22
23 install-static: ${LIBA} install-incs
24 - @echo "Installing ${LIBA} to ${LIBDIR} ..."
25 - @${INSTALLDIR} ${LIBDIR}
26 - @${INSTALLLIB} ${LIBA} ${LIBDIR}
27 + @echo "Installing ${LIBA} to ${DESTDIR}${LIBDIR} ..."
28 + @${INSTALLDIR} ${DESTDIR}${LIBDIR}
29 + @${INSTALLLIB} ${LIBA} ${DESTDIR}${LIBDIR}
30
31 uninstall-static: uninstall-incs
32 - @echo "Removing ${LIBA} from ${LIBDIR} ..."
33 - @${RM} -f ${LIBDIR}/${LIBA}
34 + @echo "Removing ${LIBA} from ${DESTDIR}${LIBDIR} ..."
35 + @${RM} -f ${DESTDIR}${LIBDIR}/${LIBA}
36
37 install-incs: ${INCS}
38 - @echo "Installing headers to ${INCDIR} ..."
39 - @${INSTALLDIR} ${INCDIR}/${LIBNAME}
40 + @echo "Installing headers to ${DESTDIR}${INCDIR} ..."
41 + @${INSTALLDIR} ${DESTDIR}${INCDIR}/${LIBNAME}
42 @for i in $(filter-out ${LIBNAME}.h,${INCS}); do \
43 - ${INSTALLDATA} $$i ${INCDIR}/${LIBNAME}/$$i; \
44 + ${INSTALLDATA} $$i ${DESTDIR}${INCDIR}/${LIBNAME}/$$i; \
45 done;
46 - @${INSTALLDATA} ${LIBNAME}.h ${INCDIR}
47 + @${INSTALLDATA} ${LIBNAME}.h ${DESTDIR}${INCDIR}
48
49 uninstall-incs:
50 - @echo "Removing headers from ${INCDIR} ..."
51 - @${RM} -rf ${INCDIR}/${LIBNAME} ${INCDIR}/${LIBNAME}.h
52 + @echo "Removing headers from ${DESTDIR}${INCDIR} ..."
53 + @${RM} -rf ${DESTDIR}${INCDIR}/${LIBNAME} ${DESTDIR}${INCDIR}/${LIBNAME}.h
54
55
56 %.o: %.cc
This page took 0.074409 seconds and 5 git commands to generate.