summaryrefslogtreecommitdiff
path: root/graphics/libwmf/patches/patch-ac
blob: b2160d9b640cb9d0a7b9d964ca082de1af41d52c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$NetBSD: patch-ac,v 1.4 2001/03/04 15:45:43 kei Exp $

--- xgd-1.7.3/Makefile.in.orig	Tue Nov 14 19:32:11 2000
+++ xgd-1.7.3/Makefile.in	Sun Mar  4 15:50:03 2001
@@ -29,7 +29,7 @@
 
 #If you don't have FreeType and/or Xpm installed, including the
 #header files, uncomment this (default).
-CFLAGS=@CPPFLAGS@ @CFLAGS@ @DEFS@ -I../ @PNG_CFLAGS@ @ZLIB_CFLAGS@ @TTF_CFLAGS@ @XPM_CFLAGS@
+CFLAGS=@CPPFLAGS@ @CFLAGS@ @DEFS@ -I../ @PNG_CFLAGS@ @ZLIB_CFLAGS@ @TTF_CFLAGS@ @XPM_CFLAGS@ -I${LOCALBASE}/include
 #If you do have FreeType and/or Xpm fully installed, uncomment a
 #variation of this and comment out the line above. See also LIBS below.
 #CFLAGS=-O -DHAVE_XPM -DHAVE_LIBTTF
@@ -45,7 +45,9 @@
 
 #Typical install locations for freetype, zlib, xpm and libpng header files.
 #If yours are somewhere else, change this. 
-INCLUDEDIRS=
+#Put -I. first so that old versions of the gd library elsewhere
+#on your system can't cause conflicts while building a new one.
+INCLUDEDIRS=-I.
 
 #Typical install locations for freetype, zlib, xpm and libpng libraries.
 #If yours are somewhere else, other than a standard location
@@ -80,18 +82,10 @@
 BIN_PROGRAMS=pngtogd pngtogd2 gdtopng gd2topng gd2copypal gdparttopng webpng
 TEST_PROGRAMS=gdtest gddemo gd2time gdtestttf
 
-all: libxgd.a $(PROGRAMS)
+all: libxgd.a
 
-install: libxgd.a $(BIN_PROGRAMS)
+install: libxgd.a
 	$(INSTALL) libxgd.a $(INSTALL_LIB)/libxgd.a
-	$(INSTALL) pngtogd $(INSTALL_BIN)/pngtogd
-	$(INSTALL) pngtogd2 $(INSTALL_BIN)/pngtogd2
-	$(INSTALL) gdtopng $(INSTALL_BIN)/gdtopng
-	$(INSTALL) gd2topng $(INSTALL_BIN)/gd2topng
-	$(INSTALL) gd2copypal $(INSTALL_BIN)/gd2copypal
-	$(INSTALL) gdparttopng $(INSTALL_BIN)/gdparttopng
-	$(INSTALL) webpng $(INSTALL_BIN)/webpng
-	$(INSTALL) bdftogd $(INSTALL_BIN)/bdftogd
 	$(INSTALL_DATA) gd.h $(INSTALL_INCLUDE)/gd.h
 	$(INSTALL_DATA) gdcache.h $(INSTALL_INCLUDE)/gdcache.h
 	$(INSTALL_DATA) gd_io.h $(INSTALL_INCLUDE)/gd_io.h