The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / zxing / 0001-makefile.patch
1 [PATCH] add Makefile
2
3 The scons based build system doesn't handle cross compilation, special
4 compiler flags or (un)installation, so add a simple makefile instead
5 which does.
6
7 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
8 ---
9  cpp/core/src/Makefile |   14 ++++++++++++++
10  1 file changed, 14 insertions(+)
11
12 Index: zxing-2.0/cpp/core/src/Makefile
13 ===================================================================
14 --- /dev/null
15 +++ zxing-2.0/cpp/core/src/Makefile
16 @@ -0,0 +1,14 @@
17 +override CXXFLAGS += -I.
18 +SRCS := $(shell find -name '*.cpp')
19 +
20 +libzxing.a: $(SRCS:.cpp=.o)
21 +       $(AR) $(ARFLAGS) $@ $^
22 +
23 +install: libzxing.a
24 +       install -D -m 0644 $^ $(DESTDIR)/usr/lib/$^
25 +       find -name '*.h' -exec install -m 0644 -D "{}" \
26 +               "$(DESTDIR)/usr/include/{}" ";"
27 +
28 +uninstall:
29 +       rm -f $(DESTDIR)/usr/lib/libzxing.a
30 +       rm -rf $(DESTDIR)/usr/include/zxing