aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jbigkit/files/patch-aa
blob: b029aa06c113f3ff0b34855a42af762a313b2576 (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
--- Makefile.orig   Mon Oct 12 11:12:48 1998
+++ Makefile    Sun Nov  1 22:16:26 1998
@@ -3,11 +3,12 @@
 
 # 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
+
 
 VERSION=1.0
@@ -46,2 +47,26 @@
      $(DISTUID)@$(DISTHOST):$(DISTPATH)/jbigkit-$(VERSION)-announce.txt
    mv ../jbigkit-$(VERSION).tar.gz $(HOME)/.www/download/
+
+install:
+   mkdir -p ${PREFIX}/bin
+   ${BSD_INSTALL_PROGRAM} pbmtools/jbgtopbm pbmtools/pbmtojbg \
+       ${PREFIX}/bin
+   mkdir -p ${PREFIX}/man/man1
+   ${BSD_INSTALL_MAN} pbmtools/pbmtojbg.1 pbmtools/jbgtopbm.1 \
+       ${PREFIX}/man/man1
+   # mkdir -p ${PREFIX}/man/man5
+   # Not installing the pbm(5) man page, because BSD has its own
+   # install -c -m 644 -o bin -g bin pbmtools/pbm.5 ${PREFIX}/man/man5
+   # Not installing the pgm(5) man page for it comes with netpbm port
+   # install -c -m 644 -o bin -g bin pbmtools/pgm.5 ${PREFIX}/man/man5
+   mkdir -p ${PREFIX}/include
+   ${BSD_INSTALL_DATA} libjbig/jbig.h ${PREFIX}/include
+   mkdir -p ${PREFIX}/lib
+   ${BSD_INSTALL_DATA} libjbig/libjbig.a ${PREFIX}/lib
+.if ${PORTOBJFORMAT} == elf
+   ${BSD_INSTALL_DATA} libjbig/libjbig.so.1 ${PREFIX}/lib
+   ln -sf libjbig.so.1 ${PREFIX}/lib/libjbig.so
+.else
+   ${BSD_INSTALL_DATA} libjbig/libjbig.so.1.1 ${PREFIX}/lib
+   ln -sf libjbig.so.1.1 ${PREFIX}/lib/libjbig.so
+.endif