1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/graphics/jbigkit/files/patch-aa
Vanilla I. Shu 7da2230176 Upgrade to 1.0.
PR:		ports/7015
Submitted by:	Mikhail Teterin <mi@aldan.algebra.com>
1998-06-25 07:07:22 +00:00

53 lines
1.8 KiB
Plaintext

--- Makefile.orig Sat Apr 11 09:34:54 1998
+++ Makefile Thu Jun 25 13:54:14 1998
@@ -2,13 +2,13 @@
# $Id: Makefile,v 1.5 1998-04-11 02:34:53+01 mgk25 Rel $
# Select an ANSI/ISO C compiler here, GNU gcc is recommended
-CC = gcc
+#CC = gcc
# Options for the compiler: A high optimization level is suggested
-CCFLAGS = -O2 -W
+#CCFLAGS = -O2 -W
#CCFLAGS = -O -g -W -Wall -ansi -pedantic #-DDEBUG # developer only
-CFLAGS = $(CCFLAGS) -I../libjbig
+CFLAGS += -I../libjbig
all: lib pbm
@echo "Enter 'make test' in order to start some automatic tests."
@@ -19,9 +19,9 @@
pbm: lib
(cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)")
-test:
- (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
- (cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
+#test:
+# (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
+# (cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test)
clean:
rm -f *~ core
@@ -31,3 +31,19 @@
distribution: clean
rm -f libjbig/libjbig.a
(cd ..; tar -c -v --exclude RCS -f jbigkit.tar jbigkit)
+
+install:
+ mkdir -p ${PREFIX}/bin
+ install -c -s -m 755 -o bin -g bin pbmtools/jbgtopbm ${PREFIX}/bin
+ install -c -s -m 755 -o bin -g bin pbmtools/pbmtojbg ${PREFIX}/bin
+ mkdir -p ${PREFIX}/man/man1
+ install -c -m 644 -o bin -g bin pbmtools/pbmtojbg.1 ${PREFIX}/man/man1
+ install -c -m 644 -o bin -g bin pbmtools/jbgtopbm.1 ${PREFIX}/man/man1
+ mkdir -p ${PREFIX}/man/man5
+ install -c -m 644 -o bin -g bin pbmtools/pbm.5 ${PREFIX}/man/man5
+ install -c -m 644 -o bin -g bin pbmtools/pgm.5 ${PREFIX}/man/man5
+ mkdir -p ${PREFIX}/include
+ install -c -m 644 -o bin -g bin libjbig/jbig.h ${PREFIX}/include
+ mkdir -p ${PREFIX}/lib
+ install -c -m 644 -o bin -g bin libjbig/libjbig.a ${PREFIX}/lib
+ install -c -m 644 -o bin -g bin libjbig/libjbig.so.1.0 ${PREFIX}/lib