]> gitweb @ CieloNegro.org - pkgsrc-cinelerra-cv.git/blob - patches/patch-defaulttheme-data-Makefile_am
Don't try to link .a archives into .so modules...
[pkgsrc-cinelerra-cv.git] / patches / patch-defaulttheme-data-Makefile_am
1 $NetBSD$
2
3 --- plugins/defaulttheme/data/Makefile.am.orig  2010-02-01 07:55:54.000000000 +0000
4 +++ plugins/defaulttheme/data/Makefile.am
5 @@ -1,6 +1,5 @@
6 -noinst_LIBRARIES = libimagedata.a
7 -libimagedata_a_SOURCES =
8 -nodist_libimagedata_a_SOURCES = defaulttheme.data
9 +noinst_LTLIBRARIES = libimagedata.la
10 +nodist_libimagedata_la_SOURCES = imagedata.c
11  
12  # The following bash scripts makes up the list of used PNG's
13  
14 @@ -318,16 +317,18 @@ ymeter_yellow.png \
15  zoombar_left.png \
16  zoombar_right.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: defaulttheme.data
23 +       echo "unsigned char _binary_defaulttheme_data_start[] = {" > $@
24 +       cat $< | xxd -i >> $@
25 +       echo "};" >> $@
26  
27  defaulttheme.data: $(PNGS)
28         $(top_builddir)/guicast/bootstrap $@ $^ || { rm -f $@; exit 1; }
29  
30  clean-local:
31         rm -f defaulttheme.data
32
33 +
34  EXTRA_DIST = \
35         $(PNGS) \
36         about.xcf.bz2 \