summaryrefslogtreecommitdiffstats
path: root/openwrt/package/ustl/patches/01-install-DESTDIR.patch
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-08 22:15:42 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-12-08 22:15:42 +0000
commitb0c9944bfdd76c84ee25130499ee6be52a6f6408 (patch)
tree1e2aac2915e991bc0a599bc1d1dc6df33d4a5331 /openwrt/package/ustl/patches/01-install-DESTDIR.patch
parent9eee6e39534a466bd833616afc78905b0c55c76d (diff)
add uSTL package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2603 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/ustl/patches/01-install-DESTDIR.patch')
-rw-r--r--openwrt/package/ustl/patches/01-install-DESTDIR.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/openwrt/package/ustl/patches/01-install-DESTDIR.patch b/openwrt/package/ustl/patches/01-install-DESTDIR.patch
new file mode 100644
index 000000000..ec3a959d3
--- /dev/null
+++ b/openwrt/package/ustl/patches/01-install-DESTDIR.patch
@@ -0,0 +1,56 @@
+diff -ruN ustl-0.8-old/Makefile ustl-0.8-new/Makefile
+--- ustl-0.8-old/Makefile 2005-11-10 21:06:53.000000000 +0100
++++ ustl-0.8-new/Makefile 2005-12-08 13:57:07.000000000 +0100
+@@ -39,35 +39,35 @@
+ .PHONY: install-static install-shared uninstall-static uninstall-shared
+
+ install-shared: ${LIBSOBLD} install-incs
+- @echo "Installing ${LIBSOBLD} to ${LIBDIR} ..."
+- @${INSTALLDIR} ${LIBDIR}
+- @${INSTALLLIB} ${LIBSOBLD} ${LIBDIR}
+- @(cd ${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
++ @echo "Installing ${LIBSOBLD} to ${DESTDIR}${LIBDIR} ..."
++ @${INSTALLDIR} ${DESTDIR}${LIBDIR}
++ @${INSTALLLIB} ${LIBSOBLD} ${DESTDIR}${LIBDIR}
++ @(cd ${DESTDIR}${LIBDIR}; ${RM} ${LIBSO} ${LIBSOLNK}; ${LN} -sf ${LIBSOBLD} ${LIBSO}; ${LN} -sf ${LIBSOBLD} ${LIBSOLNK})
+
+ uninstall-shared: uninstall-incs
+- @echo "Removing ${LIBSOBLD} from ${LIBDIR} ..."
+- @${RM} -f ${LIBDIR}/${LIBSO} ${LIBDIR}/${LIBSOLNK} ${LIBDIR}/${LIBSOBLD}
++ @echo "Removing ${LIBSOBLD} from ${DESTDIR}${LIBDIR} ..."
++ @${RM} -f ${DESTDIR}${LIBDIR}/${LIBSO} ${DESTDIR}${LIBDIR}/${LIBSOLNK} ${DESTDIR}${LIBDIR}/${LIBSOBLD}
+
+ install-static: ${LIBA} install-incs
+- @echo "Installing ${LIBA} to ${LIBDIR} ..."
+- @${INSTALLDIR} ${LIBDIR}
+- @${INSTALLLIB} ${LIBA} ${LIBDIR}
++ @echo "Installing ${LIBA} to ${DESTDIR}${LIBDIR} ..."
++ @${INSTALLDIR} ${DESTDIR}${LIBDIR}
++ @${INSTALLLIB} ${LIBA} ${DESTDIR}${LIBDIR}
+
+ uninstall-static: uninstall-incs
+- @echo "Removing ${LIBA} from ${LIBDIR} ..."
+- @${RM} -f ${LIBDIR}/${LIBA}
++ @echo "Removing ${LIBA} from ${DESTDIR}${LIBDIR} ..."
++ @${RM} -f ${DESTDIR}${LIBDIR}/${LIBA}
+
+ install-incs: ${INCS}
+- @echo "Installing headers to ${INCDIR} ..."
+- @${INSTALLDIR} ${INCDIR}/${LIBNAME}
++ @echo "Installing headers to ${DESTDIR}${INCDIR} ..."
++ @${INSTALLDIR} ${DESTDIR}${INCDIR}/${LIBNAME}
+ @for i in $(filter-out ${LIBNAME}.h,${INCS}); do \
+- ${INSTALLDATA} $$i ${INCDIR}/${LIBNAME}/$$i; \
++ ${INSTALLDATA} $$i ${DESTDIR}${INCDIR}/${LIBNAME}/$$i; \
+ done;
+- @${INSTALLDATA} ${LIBNAME}.h ${INCDIR}
++ @${INSTALLDATA} ${LIBNAME}.h ${DESTDIR}${INCDIR}
+
+ uninstall-incs:
+- @echo "Removing headers from ${INCDIR} ..."
+- @${RM} -rf ${INCDIR}/${LIBNAME} ${INCDIR}/${LIBNAME}.h
++ @echo "Removing headers from ${DESTDIR}${INCDIR} ..."
++ @${RM} -rf ${DESTDIR}${INCDIR}/${LIBNAME} ${DESTDIR}${INCDIR}/${LIBNAME}.h
+
+
+ %.o: %.cc