]> gitweb @ CieloNegro.org - pkgsrc-cinelerra-cv.git/blob - patches/patch-suv-data-Makefile_am
ef96f6840acde2a7642aa2b182ba4f3513a7144b
[pkgsrc-cinelerra-cv.git] / patches / patch-suv-data-Makefile_am
1 $NetBSD$
2
3 --- plugins/suv/data/Makefile.am.orig   2010-02-01 08:26:24.000000000 +0000
4 +++ plugins/suv/data/Makefile.am
5 @@ -1,6 +1,5 @@
6 -noinst_LIBRARIES = libimagedata.a
7 -libimagedata_a_SOURCES =
8 -nodist_libimagedata_a_SOURCES = suv.data
9 +noinst_LTLIBRARIES = libimagedata.la
10 +nodist_libimagedata_la_SOURCES = imagedata.c
11  
12  PNGS = \
13         about.png \
14 @@ -587,16 +586,18 @@ PNGS = \
15         zoomtumble_top.png \
16         zoomtumble_up.png
17  
18 -# this rule creates the .o file from the concatenated PNGs
19 -.data.$(OBJEXT):
20 -       $(OBJCOPY) -I binary -B $(OBJCOPYARCH) -O $(OBJCOPYTARGET) $< $@
21 +# this rule creates the .c file from the concatenated PNGs
22 +imagedata.c: suv.data
23 +       echo "unsigned char _binary_suv_data_start[] = {" > $@
24 +       cat $< | xxd -i >> $@
25 +       echo "};" >> $@
26  
27  suv.data: $(PNGS)
28         $(top_builddir)/guicast/bootstrap $@ $^ || { rm -f $@; exit 1; }
29  
30  clean-local:
31         rm -f suv.data
32
33 +
34  EXTRA_DIST = \
35         $(PNGS) \
36         buttonbar.xcf.bz2 \