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
|
2015-03-03 13:59:41 +01:00
|
|
|
PORTVERSION= 0.99.6
|
2015-05-30 23:25:06 +02:00
|
|
|
DISTVERSIONSUFFIX= -freebsdport
|
2015-10-10 16:03:00 +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
|
|
|
|
|
2016-05-25 18:54:30 +02:00
|
|
|
MAINTAINER= xmj@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
|
|
|
|
2016-01-12 17:20:31 +01:00
|
|
|
LICENSE= GPLv2+
|
2015-09-25 17:17:37 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
|
|
libexpat.so:textproc/expat2 \
|
|
|
|
libfribidi.so:converters/fribidi \
|
|
|
|
libunibreak.so: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
|
|
|
|
2015-03-03 13:59:41 +01:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= geometer
|
|
|
|
GH_PROJECT= FBReader
|
|
|
|
|
2009-12-23 01:38:18 +01:00
|
|
|
.if defined(WITH_DEBUG)
|
|
|
|
STATUS= debug
|
|
|
|
.else
|
|
|
|
STATUS= release
|
|
|
|
.endif
|
|
|
|
|
2016-04-25 18:13:38 +02:00
|
|
|
USES= compiler gmake iconv pkgconfig sqlite tar:tgz
|
2009-01-27 05:15:21 +01:00
|
|
|
USE_LDCONFIG= yes
|
2015-03-03 13:59:41 +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
|
|
|
INSTALL_TARGET= do_install
|
2009-01-27 05:15:21 +01:00
|
|
|
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2015-03-03 13:59:41 +01:00
|
|
|
MAKE_ENV+= TARGET_ARCH=desktop 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
|
|
|
|
2015-09-25 17:17:37 +02:00
|
|
|
OPTIONS_SINGLE= GUI
|
|
|
|
OPTIONS_SINGLE_GUI= GTK2 QT4
|
|
|
|
OPTIONS_DEFAULT= QT4
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
GTK2_USE= gnome=gtk20
|
|
|
|
GTK2_MAKE_ENV= UI_TYPE=gtk
|
|
|
|
|
|
|
|
QT4_USE= qt4=gui,corelib,imageformats,network,moc_build
|
|
|
|
QT4_LDFLAGS= -L${QT_LIBDIR}
|
|
|
|
QT4_MAKE_ENV= UI_TYPE=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
|
|
|
post-patch:
|
2015-10-10 16:03:00 +02:00
|
|
|
@${REINPLACE_CMD} -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
|
2015-03-03 13:59:41 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/-llinebreak/-lunibreak/g' ${WRKSRC}/zlibrary/text/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's/-llinebreak/-lunibreak/g' ${WRKSRC}/makefiles/*.mk
|
2009-01-27 05:15:21 +01:00
|
|
|
@${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
|
|
|
|
2015-10-10 16:03:00 +02:00
|
|
|
pre-configure:
|
|
|
|
# This cannot be done in post-patch because build dependencies are installed
|
|
|
|
# after patching and they can pull in libiconv which can affect CFLAGS in
|
|
|
|
# Mk/Uses/iconv.mk.
|
|
|
|
@${REINPLACE_CMD} 's|^CFLAGS =.*$$|CFLAGS = ${CFLAGS}|' \
|
|
|
|
${WRKSRC}/makefiles/arch/desktop.mk
|
|
|
|
|
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>
|