summaryrefslogtreecommitdiff
path: root/graphics/jbigkit/files/patch-aa
blob: 64f1eaa79da5047651ef4d0597bb097a515591e3 (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
*** Makefile.orig	Fri Apr 10 20:34:54 1998
--- Makefile	Wed Sep 16 09:09:47 1998
***************
*** 2,14 ****
  # $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
  
  # Options for the compiler: A high optimization level is suggested
! CCFLAGS = -O2 -W
  #CCFLAGS = -O -g -W -Wall -ansi -pedantic #-DDEBUG  # developer only
  
! CFLAGS = $(CCFLAGS) -I../libjbig
  
  all: lib pbm
  	@echo "Enter 'make test' in order to start some automatic tests."
--- 2,15 ----
  # $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
  
  # Options for the compiler: A high optimization level is suggested
! #CCFLAGS = -O2 -W
  #CCFLAGS = -O -g -W -Wall -ansi -pedantic #-DDEBUG  # developer only
  
! CFLAGS += -I../libjbig
! 
  
  all: lib pbm
  	@echo "Enter 'make test' in order to start some automatic tests."
***************
*** 19,27 ****
  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)
  
  clean:
  	rm -f *~ core
--- 20,28 ----
  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)
  
  clean:
  	rm -f *~ core
***************
*** 31,33 ****
--- 32,55 ----
  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
+ .if ${PORTOBJFORMAT} == elf
+ 	install -c -m 644 -o bin -g bin libjbig/libjbig.so.1 ${PREFIX}/lib
+ 	(cd ${PREFIX}/lib; ln -sf libjbig.so.1 libjbig.so)
+ .else
+ 	install -c -m 644 -o bin -g bin libjbig/libjbig.so.1.0 ${PREFIX}/lib
+ .endif