openbsd-ports/graphics/jbigkit/patches/patch-aa

29 lines
1.1 KiB
Plaintext

--- Makefile.orig Sat Apr 8 07:19:41 2000
+++ Makefile Sat Sep 23 22:23:53 2000
@@ -16,7 +16,7 @@
@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)" "VERSION=$(VERSION)")
pbm: lib
(cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)")
@@ -45,3 +45,16 @@
scp ANNOUNCE \
$(DISTUID)@$(DISTHOST):$(DISTPATH)/jbigkit-$(VERSION)-announce.txt
mv ../jbigkit-$(VERSION).tar.gz $(HOME)/.www/download/
+
+install:
+ ${BSD_INSTALL_PROGRAM_DIR} ${PREFIX}/bin
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/include
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/lib
+ ${BSD_INSTALL_MAN_DIR} ${PREFIX}/man/man1
+ cd pbmtools; ${BSD_INSTALL_PROGRAM} jbgtopbm pbmtojbg ${PREFIX}/bin; \
+ ${BSD_INSTALL_MAN} jbgtopbm.1 pbmtojbg.1 ${PREFIX}/man/man1
+ ${BSD_INSTALL_DATA} libjbig/jbig.h ${PREFIX}/include
+ ${BSD_INSTALL_DATA} libjbig/libjbig.a ${PREFIX}/lib
+ @if [ -f libjbig/libjbig.so.$(VERSION) ]; then \
+ ${BSD_INSTALL_DATA} libjbig/libjbig.so.$(VERSION) ${PREFIX}/lib; \
+ fi