Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
# New ports collection makefile for: fbreader
|
|
|
|
# Date created: 29 March 2007
|
|
|
|
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fbreader
|
2008-01-07 23:47:22 +01:00
|
|
|
PORTVERSION= 0.8.10
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
DISTVERSIONPREFIX= sources-
|
|
|
|
CATEGORIES= deskutils
|
2007-04-30 22:17:10 +02:00
|
|
|
MASTER_SITES= http://www.fbreader.org/ CENKES
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= infofarmer@FreeBSD.org
|
2007-04-23 14:08:32 +02:00
|
|
|
COMMENT= Powerful e-book reader
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
|
2007-12-14 18:04:38 +01:00
|
|
|
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
|
2007-07-18 12:15:15 +02:00
|
|
|
USE_LDCONFIG= yes
|
2007-12-14 18:04:38 +01:00
|
|
|
.ifdef WITHOUT_QT
|
|
|
|
UI= gtk
|
|
|
|
USE_GNOME= gtk20
|
|
|
|
.else
|
|
|
|
UI= qt4
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
USE_QT_VER= 4
|
2007-04-23 01:19:56 +02:00
|
|
|
QT_COMPONENTS= gui corelib moc
|
2007-12-14 18:04:38 +01:00
|
|
|
.endif
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lcompat
|
2007-12-14 18:04:38 +01:00
|
|
|
MAKE_ENV+= TARGET_ARCH=desktop UI_TYPE=${UI} TARGET_STATUS=release \
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
ROOTDIR=${WRKSRC} EXTERNALINCLUDE="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="${LDFLAGS}" INSTALLDIR="${PREFIX}" LIBDIR=${PREFIX}/lib \
|
2007-08-07 11:43:14 +02:00
|
|
|
BUILD_SHARED_LIBRARY=yes LD="${CXX}"
|
|
|
|
MAKE_ARGS+= MAKE=gmake LIBDIR=${PREFIX}/lib
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
|
|
|
INSTALL_TARGET= do_install
|
2007-12-14 18:04:38 +01:00
|
|
|
PLIST_SUB= UI=${UI}
|
2007-12-28 19:37:35 +01:00
|
|
|
PORT_VERBS= FBReader zlibrary libzl
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^LDFLAGS/s|=|+=|' ${WRKSRC}/makefiles/arch/*mk
|
2007-07-18 12:15:15 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-ldl||;/CORE_LIBS/s|$$| -liconv|'\
|
|
|
|
${WRKSRC}/makefiles/config.mk ${WRKSRC}/zlibrary/core/Makefile
|
2007-12-14 18:04:38 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|libpng |libpng12 |'\
|
|
|
|
${WRKSRC}/makefiles/arch/desktop.mk
|
2007-07-18 12:15:15 +02:00
|
|
|
@${REINPLACE_CMD} -e '/TARGET =/s|\.so\..*|.so.0|;s|$$[(]LIBDIR[)]|${PREFIX}/lib|'\
|
|
|
|
${WRKSRC}/zlibrary/[ct]*/Makefile
|
2007-08-07 11:43:14 +02:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile -or -name \*.mk -or -name rules|\
|
|
|
|
${XARGS} ${REINPLACE_CMD} -e 's/make /gmake /g;s| @| |;\
|
|
|
|
s|/usr/local|%%PREFIX%%|g;s|/usr|%%PREFIX%%|g;s|%%PREFIX%%|${PREFIX}|g;\
|
|
|
|
/^CC =/d;/^LD =/d;s|-pipe||;s|-O3|${CFLAGS}|'
|
|
|
|
@${FIND} ${WRKSRC} -name '*.bak' -delete
|
2007-07-18 12:15:15 +02:00
|
|
|
|
Add port deskutils/fbreader:
FBReader is a book reader. Main features:
* Supported formats: fb2, HTML, CHM, plucker, Palmdoc, zTxt, TCR, RTF,
OEB, OpenReader, mobipocket, plain text.
* Direct reading from tar, zip, gzip and bzip2 archives.
* Supported encodings: utf-8, us-ascii, windows-1251, windows-1252,
koi8-r, ibm866, iso-8859-*, Big5, GBK.
* Automatically generated contents table.
* Embedded images support.
* Footnotes/hyperlinks support.
* Position indicator.
* Keeps the last open book and the last read positions for all opened
books between runs.
* List of last opened books.
* Automatic hyphenations. Liang's algorithm is used. Patterns for Czech,
English, Esperanto, French, German and Russian are included in the
current version.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
WWW: http://only.mawhrin.net/fbreader/
2007-04-21 19:18:45 +02:00
|
|
|
.include <bsd.port.mk>
|