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
|
2009-05-03 13:36:13 +02:00
|
|
|
PORTVERSION= 0.10.7
|
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-
|
2009-05-11 09:33:38 +02:00
|
|
|
PORTREVISION= 1
|
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
|
2009-02-28 20:46:02 +01:00
|
|
|
MASTER_SITES= http://www.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
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2009-01-27 05:15:21 +01:00
|
|
|
MAINTAINER= yuri.pankov@gmail.com
|
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
|
|
|
|
2009-01-27 05:15:21 +01:00
|
|
|
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl \
|
|
|
|
expat.6:${PORTSDIR}/textproc/expat2 \
|
|
|
|
fribidi.0:${PORTSDIR}/converters/fribidi \
|
|
|
|
linebreak.1:${PORTSDIR}/textproc/liblinebreak
|
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
|
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
|
2009-05-11 09:33:38 +02:00
|
|
|
QT_COMPONENTS= gui corelib 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
|
|
|
|
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
|
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-05-03 13:36:13 +02:00
|
|
|
PLIST_SUB+= VERSION=${PORTVERSION}
|
2009-01-27 05:15:21 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION}
|
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
MAKE_ENV+= TARGET_ARCH=desktop UI_TYPE=${UI} TARGET_STATUS=release \
|
|
|
|
ROOTDIR=${WRKSRC} INSTALLDIR=${PREFIX} LIBDIR=${PREFIX}/lib \
|
|
|
|
LD="${CXX}" LDFLAGS="${LDFLAGS}"
|
|
|
|
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
|
|
|
|
|
|
|
post-patch:
|
2009-01-27 05:15:21 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^CFLAGS/s,-pipe.*$$,${CFLAGS} -DDO_ICONV_CAST -DLIBICONV_PLUG,' \
|
|
|
|
-e '/^CC/d;/^LD/d;/QTINCLUDE/s,-I.*$$,-I${QT_INCDIR},;s,libpng ,libpng12 ,' \
|
2007-12-14 18:04:38 +01:00
|
|
|
${WRKSRC}/makefiles/arch/desktop.mk
|
2009-01-27 05:15:21 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,-O3,,;s,-ldl,-liconv,' \
|
|
|
|
${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>
|