aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/jbigkit
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-06-22 07:15:26 +0800
committerantoine <antoine@FreeBSD.org>2014-06-22 07:15:26 +0800
commitc8f1f148a0abb6104f71dbcb4d7d6eec35dbe1ca (patch)
treeb496d9d5ab2460e61407fe3eab326255988deda3 /graphics/jbigkit
parent4c02a8ff25eb235dd3ee43cd614bf49d2357bcf0 (diff)
downloadfreebsd-ports-gnome-c8f1f148a0abb6104f71dbcb4d7d6eec35dbe1ca.tar.gz
freebsd-ports-gnome-c8f1f148a0abb6104f71dbcb4d7d6eec35dbe1ca.tar.zst
freebsd-ports-gnome-c8f1f148a0abb6104f71dbcb4d7d6eec35dbe1ca.zip
- Unbreak
- Package man pages - Convert to OPTIONS - Strip shared libs Pointyhats: mi@
Diffstat (limited to 'graphics/jbigkit')
-rw-r--r--graphics/jbigkit/Makefile15
-rw-r--r--graphics/jbigkit/files/patch-aa20
-rw-r--r--graphics/jbigkit/pkg-plist2
3 files changed, 28 insertions, 9 deletions
diff --git a/graphics/jbigkit/Makefile b/graphics/jbigkit/Makefile
index 63f179128f71..968c22a9f378 100644
--- a/graphics/jbigkit/Makefile
+++ b/graphics/jbigkit/Makefile
@@ -10,29 +10,32 @@ MAINTAINER= mi@aldan.algebra.com
COMMENT= Lossless compression for bi-level images such as scanned pages, faxes
USE_LDCONFIG= yes
-MAN1= jbgtopbm.1 pbmtojbg.1
-BINS= jbgtopbm pbmtojbg jbgtopbm85 pbmtojbg85
-LIBS= libjbig.a libjbig.so.2 libjbig85.a libjbig85.so.1
+MANS= jbgtopbm.1 pbmtojbg.1
+BINS= jbgtopbm pbmtojbg jbgtopbm85 pbmtojbg85
+LIBA= libjbig.a libjbig85.a
+LIBS= libjbig.so.2 libjbig85.so.1
DOCSDIR?= ${PREFIX}/share/doc/jbig
+OPTIONS_DEFINE= DOCS
+
do-install:
${INSTALL_PROGRAM} \
${BINS:S|^|${WRKSRC}/pbmtools/|} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} \
- ${MAN1:S|^|${WRKSRC}/pbmtools/|} ${STAGEDIR}${MANPREFIX}/man/man1
+ ${MANS:S|^|${WRKSRC}/pbmtools/|} ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/libjbig/*.h ${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} \
+ ${LIBA:S|^|${WRKSRC}/libjbig/|} ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_LIB} \
${LIBS:S|^|${WRKSRC}/libjbig/|} ${STAGEDIR}${PREFIX}/lib
${LN} -sf libjbig.so.1 ${STAGEDIR}${PREFIX}/lib/libjbig.so
${LN} -sf libjbig85.so.1 ${STAGEDIR}${PREFIX}/lib/libjbig85.so
-.if !defined(NOPORTDOCS)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.txt ${STAGEDIR}${DOCSDIR}
-.endif
regression-test 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 9e7cd316261b..08cec0f9f572 100644
--- a/graphics/jbigkit/files/patch-aa
+++ b/graphics/jbigkit/files/patch-aa
@@ -1,6 +1,7 @@
---- Makefile 2014-03-27 14:47:15.000000000 -0400
-+++ Makefile 2014-04-08 08:37:59.000000000 -0400
-@@ -2,12 +2,10 @@
+--- ./Makefile.orig 2014-03-27 18:47:15.000000000 +0000
++++ ./Makefile 2014-06-21 22:53:57.000000000 +0000
+@@ -1,24 +1,22 @@
+ # Unix makefile for JBIG-KIT
# Select an ANSI/ISO C compiler here, GNU gcc is recommended
-CC = gcc
@@ -15,3 +16,16 @@
-
VERSION=2.1
+ all: lib pbm
+ @echo "Enter 'make test' in order to start some automatic tests."
+
+ lib:
+- cd libjbig && $(MAKE) -e
++ cd libjbig && $(MAKE)
+
+ pbm: lib
+- cd pbmtools && $(MAKE) -e
++ cd pbmtools && $(MAKE)
+
+ test: lib pbm
+ cd libjbig && $(MAKE) test
diff --git a/graphics/jbigkit/pkg-plist b/graphics/jbigkit/pkg-plist
index 5a683639a2ee..b9c8306dcda8 100644
--- a/graphics/jbigkit/pkg-plist
+++ b/graphics/jbigkit/pkg-plist
@@ -11,5 +11,7 @@ lib/libjbig.so.2
lib/libjbig85.a
lib/libjbig85.so
lib/libjbig85.so.1
+man/man1/jbgtopbm.1.gz
+man/man1/pbmtojbg.1.gz
%%PORTDOCS%%%%DOCSDIR%%/jbig.txt
%%PORTDOCS%%@dirrm %%DOCSDIR%%