aboutsummaryrefslogtreecommitdiff
path: root/graphics/jbigkit
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-02-01 10:54:33 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-02-01 10:54:33 +0000
commit272711748f252322105a3ba911d869e30b7dd3f0 (patch)
tree349eb3ebd5284a3b0a5897862fcb533b71d4a718 /graphics/jbigkit
parenta4e50b41f3e660e2ab09a4098b49f9e825ebae0c (diff)
downloadports-272711748f252322105a3ba911d869e30b7dd3f0.tar.gz
ports-272711748f252322105a3ba911d869e30b7dd3f0.zip
Notes
Diffstat (limited to 'graphics/jbigkit')
-rw-r--r--graphics/jbigkit/Makefile9
-rw-r--r--graphics/jbigkit/files/patch-aa22
-rw-r--r--graphics/jbigkit/pkg-plist2
3 files changed, 15 insertions, 18 deletions
diff --git a/graphics/jbigkit/Makefile b/graphics/jbigkit/Makefile
index 8ce7ede0cf48..c3570daf76b9 100644
--- a/graphics/jbigkit/Makefile
+++ b/graphics/jbigkit/Makefile
@@ -12,16 +12,11 @@ COMMENT= Lossless compression for bi-level images such as scanned pages, faxes
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_LDCONFIG= yes
-MAN1= jbgtopbm.1 pbmtojbg.1
-
DOCSDIR?= ${PREFIX}/share/doc/jbig
-NO_STAGE= yes
post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.doc ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.doc ${STAGEDIR}${DOCSDIR}
post-build test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LD_LIBRARY_PATH=${WRKSRC}/libjbig ${MAKE} test
diff --git a/graphics/jbigkit/files/patch-aa b/graphics/jbigkit/files/patch-aa
index bea5e3195a1d..8421b11ca5e2 100644
--- a/graphics/jbigkit/files/patch-aa
+++ b/graphics/jbigkit/files/patch-aa
@@ -42,20 +42,20 @@
cp CHANGES $(HOME)/public_html/jbigkit/
+
+install:
-+ mkdir -p ${PREFIX}/bin
++ mkdir -p $(DESTDIR)${PREFIX}/bin
+ ${BSD_INSTALL_PROGRAM} pbmtools/jbgtopbm pbmtools/pbmtojbg \
-+ ${PREFIX}/bin
-+ mkdir -p ${PREFIX}/man/man1
++ $(DESTDIR)${PREFIX}/bin
++ mkdir -p $(DESTDIR)${PREFIX}/man/man1
+ ${BSD_INSTALL_MAN} pbmtools/pbmtojbg.1 pbmtools/jbgtopbm.1 \
-+ ${PREFIX}/man/man1
-+ # mkdir -p ${PREFIX}/man/man5
++ $(DESTDIR)${PREFIX}/man/man1
++ # mkdir -p $(DESTDIR)${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
-+ ${BSD_INSTALL_DATA} libjbig/libjbig.so.1 ${PREFIX}/lib
-+ ln -sf libjbig.so.1 ${PREFIX}/lib/libjbig.so
++ mkdir -p $(DESTDIR)${PREFIX}/include
++ ${BSD_INSTALL_DATA} libjbig/jbig.h $(DESTDIR)${PREFIX}/include
++ mkdir -p $(DESTDIR)${PREFIX}/lib
++ ${BSD_INSTALL_DATA} libjbig/libjbig.a $(DESTDIR)${PREFIX}/lib
++ ${BSD_INSTALL_DATA} libjbig/libjbig.so.1 $(DESTDIR)${PREFIX}/lib
++ ln -sf libjbig.so.1 $(DESTDIR)${PREFIX}/lib/libjbig.so
diff --git a/graphics/jbigkit/pkg-plist b/graphics/jbigkit/pkg-plist
index 98a68455e307..88132965ca30 100644
--- a/graphics/jbigkit/pkg-plist
+++ b/graphics/jbigkit/pkg-plist
@@ -4,5 +4,7 @@ include/jbig.h
lib/libjbig.a
lib/libjbig.so
lib/libjbig.so.1
+man/man1/jbgtopbm.1.gz
+man/man1/pbmtojbg.1.gz
%%PORTDOCS%%%%DOCSDIR%%/jbig.doc
%%PORTDOCS%%@dirrm %%DOCSDIR%%