]> git.pld-linux.org Git - packages/gdchart.git/commitdiff
- build shared library
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 2 Jul 2003 13:12:21 +0000 (13:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gdchart-make.patch -> 1.1

gdchart-make.patch [new file with mode: 0644]

diff --git a/gdchart-make.patch b/gdchart-make.patch
new file mode 100644 (file)
index 0000000..263a796
--- /dev/null
@@ -0,0 +1,142 @@
+--- gdchart0.11.4dev/makefile.orig     Tue Mar 11 04:03:06 2003
++++ gdchart0.11.4dev/makefile  Wed Jul  2 13:53:07 2003
+@@ -6,11 +6,11 @@
+ # ----- build path -----
+ GDC_INCL=./
+ GDC_LD=./
+-GDC_LIB=libgdc.a
++GDC_LIB=libgdc.la
+ # ----- install locations -----
+-PREFIX_INC = /usr/local/include
+-PREFIX_LIB = /usr/local/lib
++PREFIX_INC = /usr/include
++PREFIX_LIB = /usr/lib
+ # INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include 
+@@ -18,9 +18,8 @@
+ # GDChart requires the gd library - www.boutell.com/gd/
+ # libgd 1.8.4 or better is required.  Don't use 2.0.0
+ # if it's not installed in a standard location edit these lines for your installation
+-GD_INCL=../gd-1.8.4/
+-GD_LD=../gd-1.8.4/
+-GD_LIB=libgd.a
++GD_INCL=/usr/include
++GD_LIB=-lgd
+ # if you're using gd2.x, use these lines
+ # (it's typically built as a shared lib)
+ # GD_INCL  = ../gd-2.0.0/
+@@ -66,7 +65,7 @@
+ # LIB_PATHS = $(LIB_PATHS) -Xlinker -rpath -Xlinker $(PNG_LD) -Xlinker -rpath -Xlinker $(ZLIB_LD)
+-all: libgdc.a gdc_samp1 gdc_samp2 gdc_pie_samp ft_samp
++all: libgdc.la gdc_samp1 gdc_samp2 gdc_pie_samp ft_samp
+ # --- compile the samples ---
+ gdc_pie_samp.o: $(GDC_INCL)gdc.h $(GDC_INCL)gdcpie.h gdc_pie_samp.c
+@@ -82,57 +81,55 @@
+       $(CC) $(CFLAGS) -I$(GDC_INCL) $(DEFS) -c ft_samp.c
+ # --- link the samples ---
+-gdc_samp1: $(GDC_LD)libgdc.a gdc_samp1.o $(GD_LD)/$(GD_LIB) $(GDC_LD)/$(GDC_LIB)
+-      $(CC) -o gdc_samp1 \
++gdc_samp1: $(GDC_LD)libgdc.la gdc_samp1.o
++      libtool --mode=link $(CC) -o gdc_samp1 \
+                        gdc_samp1.o \
+                        $(LIB_PATHS) \
+-                       -lgdc -lgd -lz -lpng $(LIBS) -lm
++                       libgdc.la -lgd -lz -lpng $(LIBS) -lm
+-gdc_samp2: $(GDC_LD)libgdc.a gdc_samp2.o $(GD_LD)/$(GD_LIB) $(GDC_LD)/$(GDC_LIB)
+-      $(CC) -o gdc_samp2 \
+-                       gdc.o gdchart.o price_conv.o gifencode.o \
++gdc_samp2: $(GDC_LD)libgdc.la gdc_samp2.o
++      libtool --mode=link $(CC) -o gdc_samp2 \
+                        gdc_samp2.o \
+                        $(LIB_PATHS) \
+-                       -lgdc -lgd -lz -lpng $(LIBS) -lm
++                       libgdc.la -lgd -lz -lpng $(LIBS) -lm
+-gdc_pie_samp: $(GDC_LD)libgdc.a gdc_pie_samp.o $(GD_LD)/$(GD_LIB) $(GDC_LD)/$(GDC_LIB)
+-      $(CC) -o gdc_pie_samp \
+-                       gdc.o gdc_pie.o price_conv.o gifencode.o \
++gdc_pie_samp: $(GDC_LD)libgdc.la gdc_pie_samp.o
++      libtool --mode=link $(CC) -o gdc_pie_samp \
+                        gdc_pie_samp.o \
+                        $(LIB_PATHS) \
+-                       -lgdc -lgd -lz -lpng $(LIBS) -lm
++                       libgdc.la -lgd -lz -lpng $(LIBS) -lm
+-ft_samp: $(GDC_LD)libgdc.a ft_samp.o $(GD_LD)/$(GD_LIB) $(GDC_LD)/$(GDC_LIB)
+-      $(CC) -o ft_samp \
+-                       gdc.o gdchart.o price_conv.o gifencode.o \
++ft_samp: $(GDC_LD)libgdc.la ft_samp.o
++      libtool --mode=link $(CC) -o ft_samp \
+                        ft_samp.o \
+                        $(LIB_PATHS) \
+-                       -lgdc -lgd -lz -lpng $(LIBS) -lm
++                       libgdc.la -lgd -lz -lpng $(LIBS) -lm
+ # --- compile the lib ---
+-gdc.h: $(GD_INCL)gd.h $(GD_INCL)gdfonts.h $(GD_INCL)gdfontt.h $(GD_INCL)gdfontmb.h $(GD_INCL)gdfontg.h $(GD_INCL)gdfontl.h $(GDC_INCL)gifencode.h $(GDC_INCL)array_alloc.h
++gdc.h: $(GDC_INCL)gifencode.h $(GDC_INCL)array_alloc.h
+-gifencode.o: gifencode.c gifencode.h $(GDC_INCL)gdc.h
+-      $(CC) $(CFLAGS) -I$(GD_INCL) -c gifencode.c
++gifencode.lo: gifencode.c gifencode.h $(GDC_INCL)gdc.h
++      libtool --mode=compile $(CC) $(CFLAGS) -I$(GD_INCL) -c gifencode.c
+-price_conv.o: price_conv.c
+-      $(CC) $(CFLAGS) -c price_conv.c
++price_conv.lo: price_conv.c
++      libtool --mode=compile $(CC) $(CFLAGS) -c price_conv.c
+-gdc.o: gdc.c $(GDC_INCL)gdc.h
+-      $(CC) $(CFLAGS) -I$(GD_INCL) -I$(GDC_INCL) $(DEFS) -c gdc.c
++gdc.lo: gdc.c $(GDC_INCL)gdc.h
++      libtool --mode=compile $(CC) $(CFLAGS) -I$(GD_INCL) -I$(GDC_INCL) $(DEFS) -c gdc.c
+-gdc_pie.o: $(GDC_INCL)gdc.h $(GDC_INCL)gdcpie.h gdc_pie.c
+-      $(CC) $(CFLAGS) -I$(GD_INCL) -I$(GDC_INCL) $(DEFS) -c gdc_pie.c
++gdc_pie.lo: $(GDC_INCL)gdc.h $(GDC_INCL)gdcpie.h gdc_pie.c
++      libtool --mode=compile $(CC) $(CFLAGS) -I$(GD_INCL) -I$(GDC_INCL) $(DEFS) -c gdc_pie.c
+-gdchart.o: $(GDC_INCL)gdc.h $(GDC_INCL)gdchart.h gdchart.c
+-      $(CC) $(CFLAGS) -I$(GD_INCL) -I$(GDC_INCL) $(DEFS) -c gdchart.c
++gdchart.lo: $(GDC_INCL)gdc.h $(GDC_INCL)gdchart.h gdchart.c
++      libtool --mode=compile $(CC) $(CFLAGS) -I$(GD_INCL) -I$(GDC_INCL) $(DEFS) -c gdchart.c
+-array_alloc.o: array_alloc.c array_alloc.h
+-      $(CC) $(CFLAGS) -c array_alloc.c
++array_alloc.lo: array_alloc.c array_alloc.h
++      libtool --mode=compile $(CC) $(CFLAGS) -c array_alloc.c
+-libgdc.a: gifencode.o price_conv.o gdc.o gdc_pie.o gdchart.o array_alloc.o
+-      ar cr libgdc.a gdc.o gdchart.o gdc_pie.o price_conv.o gifencode.o array_alloc.o
+-      ranlib libgdc.a
++# gifencode.lo not always needed (depends on GIF support in libgd)
++libgdc.la: $(GIFENCODE_LO) price_conv.lo gdc.lo gdc_pie.lo gdchart.lo array_alloc.lo
++      libtool --mode=link $(CC) $(LDFLAGS) -o libgdc.la -rpath $(PREFIX_LIB) -lgd \
++              gdc.lo gdchart.lo gdc_pie.lo price_conv.lo $(GIFENCODE_LO) array_alloc.lo
+ # --- supporting libraries ---
+ # should be compile & installed separately
+@@ -140,11 +140,12 @@
+ #     cd $(GD_LD) ; make -f Makefile $(GD_LIB)
+ # ----- install -----
+-install: gdc.h gdchart.h gdcpie.h gifencode.h libgdc.a
+-      cp gdc.h  gdchart.h  gdcpie.h  gifencode.h $(PREFIX_INC)/
+-      cp libgdc.a $(PREFIX_LIB)/
++install: gdc.h gdchart.h gdcpie.h gifencode.h libgdc.la
++      install -d $(DESTDIR)$(PREFIX_INC) $(DESTDIR)$(PREFIX_LIB)
++      cp gdc.h  gdchart.h  gdcpie.h  $(GIFENCODE_H) $(DESTDIR)$(PREFIX_INC)
++      libtool --mode=install install libgdc.la $(DESTDIR)$(PREFIX_LIB)
+ # --- clean ---
+ clean:
+-      rm -f *.o *.a gdc_samp1 gdc_samp2 gdc_pie_samp ft_samp
++      rm -f *.o *.la gdc_samp1 gdc_samp2 gdc_pie_samp ft_samp
This page took 0.110727 seconds and 4 git commands to generate.