2013-09-11 22:34:23 +02:00
|
|
|
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
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
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fbreader
|
2013-09-14 09:02:38 +02:00
|
|
|
PORTVERSION= 0.99.4
|
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-
|
2014-08-31 13:54:16 +02:00
|
|
|
PORTREVISION= 2
|
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
|
|
|
CATEGORIES= deskutils
|
2013-09-14 09:02:38 +02:00
|
|
|
MASTER_SITES= http://www.fbreader.org/files/desktop/ \
|
2012-11-30 01:50:23 +01:00
|
|
|
http://old.fbreader.org/
|
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
|
|
|
|
2009-11-04 16:29:17 +01:00
|
|
|
MAINTAINER= fluffy@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
|
|
|
|
2013-12-11 19:28:10 +01:00
|
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
|
|
|
|
libexpat.so:${PORTSDIR}/textproc/expat2 \
|
|
|
|
libfribidi.so:${PORTSDIR}/converters/fribidi \
|
|
|
|
libunibreak.so:${PORTSDIR}/textproc/libunibreak
|
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
|
|
|
|
2009-01-27 05:15:21 +01:00
|
|
|
.if defined(WITH_GTK2)
|
|
|
|
UI= gtk
|
2007-12-14 18:04:38 +01:00
|
|
|
USE_GNOME= gtk20
|
|
|
|
.else
|
2009-01-27 05:15:21 +01:00
|
|
|
UI= qt4
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= gui corelib imageformats network moc_build
|
2008-08-05 01:33:44 +02:00
|
|
|
LDFLAGS+= -L${QT_LIBDIR}
|
2007-12-14 18:04:38 +01:00
|
|
|
.endif
|
2009-01-27 05:15:21 +01:00
|
|
|
|
2009-12-23 01:38:18 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
STATUS= debug
|
|
|
|
.else
|
|
|
|
STATUS= release
|
|
|
|
.endif
|
|
|
|
|
2014-07-29 21:11:51 +02:00
|
|
|
USES= iconv gmake pkgconfig tar:tgz
|
2009-10-28 02:39:40 +01:00
|
|
|
USE_SQLITE= yes
|
2009-01-27 05:15:21 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
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
|
|
|
INSTALL_TARGET= do_install
|
2007-12-14 18:04:38 +01:00
|
|
|
PLIST_SUB= UI=${UI}
|
2009-01-27 05:15:21 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-12-23 01:38:18 +01:00
|
|
|
MAKE_ENV+= TARGET_ARCH=desktop UI_TYPE=${UI} TARGET_STATUS=${STATUS} \
|
2009-01-27 05:15:21 +01:00
|
|
|
ROOTDIR=${WRKSRC} INSTALLDIR=${PREFIX} LIBDIR=${PREFIX}/lib \
|
2011-09-24 00:26:39 +02:00
|
|
|
LD="${CXX}"
|
2014-06-25 00:38:24 +02:00
|
|
|
MAKE_ARGS+= MAKE=${MAKE_CMD} 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
|
|
|
|
|
|
|
post-patch:
|
2009-01-27 05:15:21 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^CFLAGS/s,-pipe.*$$,${CFLAGS} -DDO_ICONV_CAST -DLIBICONV_PLUG,' \
|
2014-12-24 00:06:00 +01:00
|
|
|
-e '/^CC/d;/^LD/d;/QTINCLUDE/s,-I.*$$,-I${QT_INCDIR},' \
|
2007-12-14 18:04:38 +01:00
|
|
|
${WRKSRC}/makefiles/arch/desktop.mk
|
2013-09-04 20:06:07 +02:00
|
|
|
@${REINPLACE_CMD} -e 's,-O3,,;s,-ldl,${ICONV_LIB},' \
|
2009-01-27 05:15:21 +01:00
|
|
|
${WRKSRC}/makefiles/config.mk ${WRKSRC}/zlibrary/core/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},' ${WRKSRC}/fbreader/desktop/Makefile
|
|
|
|
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
|
|
|
|
-e 's,make ,gmake ,'
|
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>
|