summaryrefslogtreecommitdiffstats
path: root/package/zxing/zxing-makefile.patch
diff options
context:
space:
mode:
authorFrank Hunleth <fhunleth@troodon-software.com>2012-03-25 14:15:40 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-24 18:36:37 +0200
commit47aa58a4ddd3774fa78acffbf85384c558b7f2dd (patch)
treeffe5bfc27e1611955d14fbc207dad1cd1de53fd5 /package/zxing/zxing-makefile.patch
parent5016aa02fb51dbd73461f65ed8c7d9b52539a988 (diff)
downloadbuildroot-novena-47aa58a4ddd3774fa78acffbf85384c558b7f2dd.tar.gz
buildroot-novena-47aa58a4ddd3774fa78acffbf85384c558b7f2dd.zip
New package: zxing
[Peter: build using make instead of scons, fixup whitespace, target install] Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/zxing/zxing-makefile.patch')
-rw-r--r--package/zxing/zxing-makefile.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/zxing/zxing-makefile.patch b/package/zxing/zxing-makefile.patch
new file mode 100644
index 000000000..66896bf32
--- /dev/null
+++ b/package/zxing/zxing-makefile.patch
@@ -0,0 +1,30 @@
+[PATCH] add Makefile
+
+The scons based build system doesn't handle cross compilation, special
+compiler flags or (un)installation, so add a simple makefile instead
+which does.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ cpp/core/src/Makefile | 14 ++++++++++++++
+ 1 file changed, 14 insertions(+)
+
+Index: zxing-2.0/cpp/core/src/Makefile
+===================================================================
+--- /dev/null
++++ zxing-2.0/cpp/core/src/Makefile
+@@ -0,0 +1,14 @@
++override CXXFLAGS += -I.
++SRCS := $(shell find -name '*.cpp')
++
++libzxing.a: $(SRCS:.cpp=.o)
++ $(AR) $(ARFLAGS) $@ $^
++
++install: libzxing.a
++ install -D -m 0644 $^ $(DESTDIR)/usr/lib/$^
++ find -name '*.h' -exec install -m 0644 -D "{}" \
++ "$(DESTDIR)/usr/include/{}" ";"
++
++uninstall:
++ rm -f $(DESTDIR)/usr/lib/libzxing.a
++ rm -rf $(DESTDIR)/usr/include/zxing