pkgsrc/x11/xforms/patches/patch-ab
dholland 208c309673 Fix pkglint; fix whitespace in patches; add patch comments.
Improve patch-ag to never attempt to declare errno.
2012-07-30 02:53:57 +00:00

36 lines
972 B
Text

$NetBSD: patch-ab,v 1.8 2012/07/30 02:53:57 dholland Exp $
- Add image libraries to link. (is this needed?)
- Honor LDFLAGS so rpaths work.
- Configure paths for pkgsrc.
- Use optimization level that actually exists (gcc) or works (clang).
--- demos/Imakefile.orig 2002-11-19 20:50:52.000000000 +0000
+++ demos/Imakefile
@@ -109,7 +109,7 @@ UNSTATIC = -Xlinker -Bdynamic
FORMSLIBDIR = $(TOP)/lib
FORMSINCDIR = $(FORMSLIBDIR)
-FORMSLIB = -L$(FORMSLIBDIR) -lforms
+FORMSLIB = -L$(FORMSLIBDIR) -lforms $(JPEGLIB) $(XPMLIB) $(LDFLAGS)
DEPFORMSLIB = $(FORMSLIBDIR)/libforms.a
IMAGELIBDIR = $(TOP)/image
@@ -154,7 +154,7 @@ EXTRA_INCLUDES = \
-I.
DEPEND_DEFINES = \
- -I/usr/local/include
+ -I${LOCALBASE}/include
EXTRA_LIBRARIES = \
$(STATIC) \
@@ -176,7 +176,7 @@ CDEBUGFLAGS = -g $(OPTIMIZER)
#if Optimize
IMAKE_OPTIMIZE = -DDoOptimize=1
-OPTIMIZER = -O4
+OPTIMIZER = -O2
#else
OPTIMIZER =
#endif