c064c16a0f
There have been many many bug fixes and improvements since the last packaged release. SVG, PDF, and DXF output is available now. The complete list (>200 lines) is in the CHANGES file in the distribution.
111 lines
2.9 KiB
Text
111 lines
2.9 KiB
Text
$NetBSD: patch-ab,v 1.7 2004/11/28 15:12:11 dmcmahill Exp $
|
|
|
|
--- Makefile.orig Sat Nov 27 23:52:19 2004
|
|
+++ Makefile
|
|
@@ -28,13 +28,13 @@ SHELL = /bin/sh
|
|
|
|
CHMOD = chmod
|
|
CP = cp
|
|
-MKINFO = makeinfo
|
|
+MKINFO = $(MAKEINFO)
|
|
RMCMD = rm -f
|
|
STRIP = strip
|
|
|
|
# Installation sites (GNU conventions):
|
|
#
|
|
-prefix = /usr/local
|
|
+prefix = ${PREFIX}
|
|
bindir = $(prefix)/bin
|
|
includedir = $(prefix)/include
|
|
mandir = $(prefix)/man
|
|
@@ -44,12 +44,12 @@ infodir = $(prefix)/info
|
|
# CC and CFLAGS set for gcc, but any ANSI-C compiler should work.
|
|
# For non-gcc compilers, simply set CFLAGS = -O (to start with)
|
|
#
|
|
-CC = gcc
|
|
-CFLAGS = -O2 -Wall -finline-functions
|
|
+#CC = gcc
|
|
+#CFLAGS = -O2 -Wall -finline-functions
|
|
|
|
-LFLAGS = # only sometimes needed; see below for examples
|
|
-CPPFLAGS = -I. # only sometimes needed; see below for examples
|
|
-BINDCMD = # only needed for EMX and DJGPP DOS extenders
|
|
+LFLAGS = -Wl,-R${X11BASE}/lib -L${X11BASE}/lib -Wl,-R${LOCALBASE}/lib -L${LOCALBASE}/lib
|
|
+CPPFLAGS = -I. -I${X11BASE}/include -I${LOCALBASE}/include
|
|
+BINDCMD = echo
|
|
|
|
|
|
|
|
@@ -62,7 +62,7 @@ BINDCMD = # only needed
|
|
#
|
|
DEFINES = -DUNIX -DHAS_UNIX_X11
|
|
PREVIEWER = to_x11
|
|
-ALL_LIBS = -lX11 -lm # Maybe -lX instead of -lX11 is needed?
|
|
+ALL_LIBS = -lX11 -lm -lz -lpng -lpdf -ltiff -ljpeg
|
|
#
|
|
# Generic UNIX, no previewer
|
|
#
|
|
@@ -197,29 +197,29 @@ EX_OBJ =
|
|
EX_DEFS =
|
|
#
|
|
# PNG support (requires -lpng and -lz on the ALL_LIBS line)
|
|
-#EX_SRC = png.c to_png.c
|
|
-#EX_OBJ = png.o to_png.o
|
|
-#EX_DEFS= -DPNG
|
|
+EX_SRC = png.c to_png.c
|
|
+EX_OBJ = png.o to_png.o
|
|
+EX_DEFS= -DPNG
|
|
#
|
|
# TIFF support (requires -ltiff and possibly -lz on the ALL_LIBS line)
|
|
-#EX_SRC = to_tif.c
|
|
-#EX_OBJ = to_tif.o
|
|
-#EX_DEFS = -DTIF
|
|
+EX_SRC = to_tif.c
|
|
+EX_OBJ = to_tif.o
|
|
+EX_DEFS = -DTIF
|
|
#
|
|
# JPEG support (requires -ljpeg)
|
|
-#EX_SRC = to_jpg.c
|
|
-#EX_OBJ = to_jpg.o
|
|
-#EX_DEFS = -DJPG
|
|
+EX_SRC = to_jpg.c
|
|
+EX_OBJ = to_jpg.o
|
|
+EX_DEFS = -DJPG
|
|
#
|
|
# PDF support (requires -lpdf)
|
|
-#EX_SRC = to_pdf.c
|
|
-#EX_OBJ = to_pdf.o
|
|
-#EX_DEFS = -DUSEPDF
|
|
+EX_SRC = to_pdf.c
|
|
+EX_OBJ = to_pdf.o
|
|
+EX_DEFS = -DUSEPDF
|
|
#
|
|
# Include extras:
|
|
-# EX_SRC = to_pic.c to_pac.c
|
|
-# EX_OBJ = to_pic.o to_pac.o
|
|
-# EX_DEFS = -DPIC_PAC
|
|
+EX_SRC = to_pic.c to_pac.c
|
|
+EX_OBJ = to_pic.o to_pac.o
|
|
+EX_DEFS = -DPIC_PAC
|
|
#
|
|
#############################################################################
|
|
# No user-serviceable parts below!
|
|
@@ -332,15 +332,11 @@ TAGS:
|
|
install: install-bin install-info install-man
|
|
|
|
install-bin: $(PROGRAM)
|
|
- -$(STRIP) $(PROGRAM)
|
|
- $(CP) $(PROGRAM) $(bindir)
|
|
- $(CHMOD) 755 $(bindir)/$(PROGRAM)
|
|
+ ${BSD_INSTALL_PROGRAM} $(PROGRAM) $(bindir)
|
|
|
|
install-info: hp2xx.info
|
|
- $(CP) hp2xx.info $(infodir)
|
|
- $(CHMOD) 644 $(infodir)/hp2xx.info
|
|
+ ${BSD_INSTALL_MAN} hp2xx.info $(infodir)
|
|
|
|
install-man: ../doc/hp2xx.1
|
|
- $(CP) ../doc/hp2xx.1 $(man1dir)
|
|
- $(CHMOD) 644 $(man1dir)/hp2xx.1
|
|
+ ${BSD_INSTALL_MAN} ../doc/hp2xx.1 $(man1dir)
|
|
|