summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-31 11:22:42 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2006-07-31 11:22:42 +0800
commit0d50c0b23784053a9fbae34cac66f9cec48f9982 (patch)
tree410f9d386da52839f6dc7d2c4df923a0a93c59c4
parentba6f32789b9143c24a8e7474ea0128844425c509 (diff)
downloadmarcuscom-ports-0d50c0b23784053a9fbae34cac66f9cec48f9982.tar
marcuscom-ports-0d50c0b23784053a9fbae34cac66f9cec48f9982.tar.gz
marcuscom-ports-0d50c0b23784053a9fbae34cac66f9cec48f9982.tar.bz2
marcuscom-ports-0d50c0b23784053a9fbae34cac66f9cec48f9982.tar.lz
marcuscom-ports-0d50c0b23784053a9fbae34cac66f9cec48f9982.tar.xz
marcuscom-ports-0d50c0b23784053a9fbae34cac66f9cec48f9982.tar.zst
marcuscom-ports-0d50c0b23784053a9fbae34cac66f9cec48f9982.zip
X11BASE -> LOCALBASE, browser_plugins lives in LOCALBASE. Bump the
PORTREVISION. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6898 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--graphics/djvulibre/Makefile92
-rw-r--r--graphics/djvulibre/distinfo3
-rw-r--r--graphics/djvulibre/files/patch-configure20
-rw-r--r--graphics/djvulibre/pkg-descr13
-rw-r--r--graphics/djvulibre/pkg-plist69
5 files changed, 197 insertions, 0 deletions
diff --git a/graphics/djvulibre/Makefile b/graphics/djvulibre/Makefile
new file mode 100644
index 000000000..8e1b35f64
--- /dev/null
+++ b/graphics/djvulibre/Makefile
@@ -0,0 +1,92 @@
+# New ports collection makefile for: libdjvu++
+# Date Created: 20 July 1999
+# Whom: Mikhail Teterin <mi@aldan.algebra.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= djvulibre
+PORTVERSION= 3.5.17
+PORTREVISION= 2
+CATEGORIES= graphics www
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= djvu
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT?= DjVu viewers, encoders, browser plugin, and utilities
+
+LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
+ tiff.4:${PORTSDIR}/graphics/tiff
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+
+USE_ICONV= yes
+USE_GNOME= gnomehack
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= JPEG_CFLAGS="-I${LOCALBASE}/include" \
+ JPEG_LIBS="-L${LOCALBASE}/lib -ljpeg" \
+ TIFF_CFLAGS="-I${LOCALBASE}/include" \
+ TIFF_LIBS="-L${LOCALBASE}/lib -ltiff" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ CXX="${CXX}" \
+ X11BASE="${X11BASE}"
+CONFIGURE_ARGS= --enable-threads=pthread --enable-shared
+INSTALLS_SHLIB= yes
+
+MANLANG= "" ja
+MAN1= bzz.1 c44.1 cjb2.1 cpaldjvu.1 csepdjvu.1 ddjvu.1 djvm.1 \
+ djvmcvt.1 djvu.1 djvudump.1 djvuextract.1 djvumake.1 djvups.1 \
+ djvused.1 djvuserve.1 djvutxt.1
+MAN1EXTRA= any2djvu.1 djvutoxml.1 djvuxml.1 djvuxmlparser.1 djvudigital.1
+MAN1+= ${MAN1EXTRA}
+
+PORTDOCS= djvu2spec.djvu lizard2002.djvu
+
+.if !defined(WITHOUT_X11)
+USE_QT_VER= 3
+CONFIGURE_ENV+= QTLIBS="-L${X11BASE}/lib -lqt-mt"
+MAN1+= djview.1 nsdejavu.1
+PLIST_SUB+= X11=''
+.else
+PKGNAMESUFFIX= -nox11
+CONFIGURE_ARGS+= --disable-djview --without-x
+PLIST_SUB+= X11='@comment '
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|$${libdir}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
+ ${WRKSRC}/libdjvu/Makefile.in
+ @${REINPLACE_CMD} -e '/-O\*/d ; \
+ s|$$OPTS -O3|$$OPTS|g ; \
+ s|$$OPTS -O2|$$OPTS|g ; \
+ s|$$OPTS $$opt|$$OPTS|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|^#! /bin/bash|#! ${LOCALBASE}/bin/bash|g ; \
+ s|any2djvu\.sh|any2djvu|g' ${WRKSRC}/tools/any2djvu
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|= @CPPFLAGS|= $${FLAGS} @CPPFLAGS|g ; \
+ s|@ $${FLAGS}|@|g ; \
+ s|} $${FLAGS}|}|g ; \
+ s|/netscape/|/djvulibre/|g ; \
+ s|eucjp|eucJP|g ; \
+ s|_PROGRAM} -m|} -m|g'
+
+post-install:
+.for man1 in ${MAN1EXTRA}
+.for manlang in ${MANLANG}
+ ${TOUCH} ${MAN1PREFIX}/man/${manlang}/man1/${man1}
+.endfor
+.endfor
+.if !defined(WITHOUT_X11)
+ @${MKDIR} ${LOCALBASE}/lib/browser_plugins
+ ${LN} -sf ${PREFIX}/lib/djvulibre/plugins/nsdejavu.so \
+ ${LOCALBASE}/lib/browser_plugins/nsdejavu.so
+.endif
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/graphics/djvulibre/distinfo b/graphics/djvulibre/distinfo
new file mode 100644
index 000000000..2a4bb3b64
--- /dev/null
+++ b/graphics/djvulibre/distinfo
@@ -0,0 +1,3 @@
+MD5 (djvulibre-3.5.17.tar.gz) = 18e71eec1f7d59ef4710b405ea64650e
+SHA256 (djvulibre-3.5.17.tar.gz) = a39977be3ca99f5b1d6a01a7795133c18de538bf20ff1f2d52d652bac94647c7
+SIZE (djvulibre-3.5.17.tar.gz) = 2298690
diff --git a/graphics/djvulibre/files/patch-configure b/graphics/djvulibre/files/patch-configure
new file mode 100644
index 000000000..8ffc666de
--- /dev/null
+++ b/graphics/djvulibre/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig Mon Oct 31 19:34:47 2005
++++ configure Tue Apr 18 13:55:47 2006
+@@ -486,7 +486,7 @@
+ srcdir=
+ verbose=
+ x_includes=NONE
+-x_libraries=NONE
++x_libraries=${X11BASE}/lib
+
+ # Installation directory options.
+ # These are left unexpanded so users can "make install exec_prefix=/foo"
+@@ -26327,7 +26327,7 @@
+ then
+ NSDEJAVU_CFLAGS=${X_CFLAGS}
+ case "$host" in
+- *-cygwin* | *-mingw*)
++ *-cygwin* | *-mingw* | *-freebsd*)
+ NSDEJAVU_LIBS="`echo ${X_LIBS} | sed -e 's/-lXext/-lXt -lXext/'`"
+ NSDEJAVU_LIBS="-no-undefined $NSDEJAVU_LIBS"
+ ;;
diff --git a/graphics/djvulibre/pkg-descr b/graphics/djvulibre/pkg-descr
new file mode 100644
index 000000000..71c20fb4a
--- /dev/null
+++ b/graphics/djvulibre/pkg-descr
@@ -0,0 +1,13 @@
+DjVu is a web-centric format and software platform for distributing
+documents and images. DjVu was originally developped at AT&T
+Labs-Research. In March 2000, AT&T sold DjVu to LizardTech Inc. who
+now distributes Windows/Mac plug-ins, and commercial encoders (mostly
+on Windows)
+
+The LizardTech released the reference implementation of DjVu under
+the GNU GPL in October 2000. DjVuLibre (which means free DjVu), is
+an enhanced version of that code maintained by the original inventors
+of DjVu. It is compatible with version 3.5 of the LizardTech DjVu
+software suite.
+
+WWW: http://djvulibre.djvuzone.org/
diff --git a/graphics/djvulibre/pkg-plist b/graphics/djvulibre/pkg-plist
new file mode 100644
index 000000000..1a4f93104
--- /dev/null
+++ b/graphics/djvulibre/pkg-plist
@@ -0,0 +1,69 @@
+bin/any2djvu
+bin/bzz
+bin/c44
+bin/cjb2
+bin/cpaldjvu
+bin/csepdjvu
+bin/ddjvu
+%%X11%%bin/djview
+bin/djvm
+bin/djvmcvt
+bin/djvudigital
+bin/djvudump
+bin/djvuextract
+bin/djvumake
+bin/djvups
+bin/djvused
+bin/djvuserve
+bin/djvutoxml
+bin/djvutxt
+bin/djvuxmlparser
+include/libdjvu/ddjvuapi.h
+include/libdjvu/miniexp.h
+%%X11%%lib/djvulibre/plugins/nsdejavu.so
+lib/libdjvulibre.la
+lib/libdjvulibre.so
+lib/libdjvulibre.so.17
+libdata/pkgconfig/ddjvuapi.pc
+share/djvu/languages.xml
+%%X11%%share/djvu/osi/de/djview.qm
+share/djvu/osi/de/libdjvu++.xml
+share/djvu/osi/de/messages.xml
+%%X11%%share/djvu/osi/de/qt.qm
+share/djvu/osi/en/djvutools-reference.xml
+share/djvu/osi/en/libdjvu++.xml
+share/djvu/osi/en/messages.xml
+share/djvu/osi/en/unixgui-shared.xml
+share/djvu/osi/en/unixgui-viewer.xml
+%%X11%%share/djvu/osi/fr/djview.qm
+share/djvu/osi/fr/libdjvu++.xml
+share/djvu/osi/fr/messages.xml
+%%X11%%share/djvu/osi/fr/qt.qm
+%%X11%%share/djvu/osi/ja/djview.qm
+share/djvu/osi/ja/libdjvu++.xml
+share/djvu/osi/ja/messages.xml
+%%X11%%share/djvu/osi/ja/qt.qm
+share/djvu/osi/zh/libdjvu++.xml
+share/djvu/osi/zh/messages.xml
+share/djvu/pubtext/DjVuMessages.dtd
+share/djvu/pubtext/DjVuOCR.dtd
+share/djvu/pubtext/DjVuXML-s.dtd
+%%X11%%@exec mkdir -p %%LOCALBASE%%/lib/browser_plugins
+%%X11%%@exec ln -sf %D/lib/djvulibre/plugins/nsdejavu.so %%LOCALBASE%%/lib/browser_plugins/nsdejavu.so
+%%X11%%@unexec rm -f %%LOCALBASE%%/lib/browser_plugins/nsdejavu.so
+@dirrm share/djvu/pubtext
+@dirrm share/djvu/osi/zh
+@dirrm share/djvu/osi/ja
+@dirrm share/djvu/osi/fr
+@dirrm share/djvu/osi/en
+@dirrm share/djvu/osi/de
+@dirrm share/djvu/osi
+@dirrm share/djvu
+%%X11%%@dirrm lib/djvulibre/plugins
+%%X11%%@dirrm lib/djvulibre
+@dirrm include/libdjvu
+@dirrmtry man/fr/man1
+@dirrmtry man/fr
+@dirrmtry man/de/man1
+@dirrmtry man/de
+@unexec rmdir %%LOCALBASE%%/lib/browser_plugins 2>/dev/null || true