Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / x11 / xforms / patches / patch-ab
blobdc40c4c628036059faa4df25ae138ddbfa94a57b
1 $NetBSD: patch-ab,v 1.7 2011/09/08 00:24:43 joerg Exp $
3 - Add image libraries to link. (is this needed?)
4 - Honor LDFLAGS so rpaths work.
5 - Configure paths for pkgsrc.
6 - Use optimization level that actually exists (gcc) or works (clang).
8 --- demos/Imakefile.orig        2002-11-19 20:50:52.000000000 +0000
9 +++ demos/Imakefile
10 @@ -109,7 +109,7 @@ UNSTATIC    = -Xlinker -Bdynamic
12  FORMSLIBDIR     = $(TOP)/lib
13  FORMSINCDIR     = $(FORMSLIBDIR)       
14 -FORMSLIB        = -L$(FORMSLIBDIR) -lforms
15 +FORMSLIB        = -L$(FORMSLIBDIR) -lforms $(JPEGLIB) $(XPMLIB) $(LDFLAGS)
16  DEPFORMSLIB     = $(FORMSLIBDIR)/libforms.a
18  IMAGELIBDIR     = $(TOP)/image
19 @@ -154,7 +154,7 @@ EXTRA_INCLUDES  = \
20                   -I.
22  DEPEND_DEFINES = \
23 -                 -I/usr/local/include
24 +                 -I${LOCALBASE}/include
26  EXTRA_LIBRARIES        = \
27                   $(STATIC) \
28 @@ -176,7 +176,7 @@ CDEBUGFLAGS = -g $(OPTIMIZER)
30  #if Optimize
31  IMAKE_OPTIMIZE  = -DDoOptimize=1
32 -OPTIMIZER      = -O4
33 +OPTIMIZER      = -O2
34  #else
35  OPTIMIZER      =
36  #endif