--- Makefile.orig Tue Apr 9 19:37:13 2002 +++ Makefile Tue Apr 9 22:45:53 2002 @@ -2,13 +2,13 @@ # $Id: Makefile,v 1.12 2002-04-09 11:37:13+01 mgk25 Exp $ # 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.4 @@ -16,14 +16,14 @@ @echo "Enter 'make test' in order to start some automatic tests." lib: - (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)") + (cd libjbig; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)") pbm: lib - (cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)") + (cd pbmtools; $(MAKE) "CC=$(CC)" "CFLAGS=$(CFLAGS)") test: lib pbm - (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" test) - (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 @@ -36,3 +36,27 @@ gzip -9f jbigkit-$(VERSION).tar ) mv ../jbigkit-$(VERSION).tar.gz $(HOME)/public_html/download/ cp CHANGES $(HOME)/public_html/jbigkit/ + +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