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

34 lines
1.2 KiB
Plaintext
Raw Normal View History

--- Makefile.orig Sat Apr 8 07:19:41 2000
+++ Makefile Tue Jun 20 13:29:41 2000
@@ -16,7 +16,12 @@
1999-12-27 01:12:08 -05:00
@echo "Enter 'make test' in order to start some automatic tests."
lib:
- (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)")
+.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:U} == YES
+ (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" "VERSION=$(VERSION)" "NO_SHARED_LIBS=Yes")
+.else
+ (cd libjbig; make "CC=$(CC)" "CFLAGS=$(CFLAGS)" "VERSION=$(VERSION)")
+.endif
+
pbm: lib
(cd pbmtools; make "CC=$(CC)" "CFLAGS=$(CFLAGS)")
@@ -45,3 +50,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
1999-12-27 01:12:08 -05:00
+ @if [ -f libjbig/libjbig.so.$(VERSION) ]; then \
+ ${BSD_INSTALL_DATA} libjbig/libjbig.so.$(VERSION) ${PREFIX}/lib;\
1999-12-27 01:12:08 -05:00
+ fi