diff options
author | wiz <wiz> | 2009-01-18 17:39:37 +0000 |
---|---|---|
committer | wiz <wiz> | 2009-01-18 17:39:37 +0000 |
commit | 6785465f56a6b301bc3d253ff10766f1b194677c (patch) | |
tree | 5c9b68b1d83ca8a1383bc45befd54e2aeef5f011 /misc/fbreader | |
parent | 8294453c3ee49a1aee8d05e127d5008397d32a90 (diff) | |
download | pkgsrc-6785465f56a6b301bc3d253ff10766f1b194677c.tar.gz |
Initial import of fbreader-0.10.1:
FBReader is an e-book reader for various platforms.
Main features:
* Supported formats are
* fb2 e-book format (style attributes are not supported yet).
* HTML format (tables are not supported).
* CHM format (tables are not supported).
* plucker format (tables are not supported).
* Palmdoc (aportis doc).
* zTxt (Weasel format).
* TCR (psion text) format.
* RTF format (stylesheets and tables are not supported).
* OEB format (css and tables are not supported).
* OpenReader format (css and tables are not supported).
* Non-DRM'ed mobipocket format (tables are not supported).
* Plain text format.
* Direct reading from tar, zip, gzip and bzip2 archives. (Multiple books
in one archive are supported.)
* Automatic library building.
* Automatic language and character encoding detection is supported.
* 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.
* Text search.
* Full-screen mode.
* Screen rotation by 90, 180 and 270 degrees.
Diffstat (limited to 'misc/fbreader')
-rw-r--r-- | misc/fbreader/DESCR | 31 | ||||
-rw-r--r-- | misc/fbreader/Makefile | 34 | ||||
-rw-r--r-- | misc/fbreader/PLIST | 141 | ||||
-rw-r--r-- | misc/fbreader/distinfo | 15 | ||||
-rw-r--r-- | misc/fbreader/options.mk | 31 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-aa | 40 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-ab | 32 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-ac | 22 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-ad | 22 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-ae | 13 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-af | 13 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-ag | 13 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-ah | 15 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-ai | 12 | ||||
-rw-r--r-- | misc/fbreader/patches/patch-aj | 15 |
15 files changed, 449 insertions, 0 deletions
diff --git a/misc/fbreader/DESCR b/misc/fbreader/DESCR new file mode 100644 index 00000000000..2aa821abeaf --- /dev/null +++ b/misc/fbreader/DESCR @@ -0,0 +1,31 @@ +FBReader is an e-book reader for various platforms. + +Main features: + * Supported formats are + * fb2 e-book format (style attributes are not supported yet). + * HTML format (tables are not supported). + * CHM format (tables are not supported). + * plucker format (tables are not supported). + * Palmdoc (aportis doc). + * zTxt (Weasel format). + * TCR (psion text) format. + * RTF format (stylesheets and tables are not supported). + * OEB format (css and tables are not supported). + * OpenReader format (css and tables are not supported). + * Non-DRM'ed mobipocket format (tables are not supported). + * Plain text format. + * Direct reading from tar, zip, gzip and bzip2 archives. (Multiple books + in one archive are supported.) + * Automatic library building. + * Automatic language and character encoding detection is supported. + * 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. + * Text search. + * Full-screen mode. + * Screen rotation by 90, 180 and 270 degrees. diff --git a/misc/fbreader/Makefile b/misc/fbreader/Makefile new file mode 100644 index 00000000000..666f54c5375 --- /dev/null +++ b/misc/fbreader/Makefile @@ -0,0 +1,34 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ +# + +DISTNAME= fbreader-sources-0.10.1 +PKGNAME= ${DISTNAME:S/-sources//} +CATEGORIES= misc +MASTER_SITES= http://www.fbreader.org/ +EXTRACT_SUFX= .tgz + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.fbreader.org/ +COMMENT= Ebook reader software + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} +USE_DIRS+= xdg-1.4 +USE_LANGUAGES= c c++ +USE_TOOLS+= gmake + +MAKE_ENV+= INSTALLDIR=${PREFIX} +MAKE_ENV+= DESTDIR=${DESTDIR} +MAKE_ENV+= LDFLAGS=${COMPILER_RPATH_FLAG}${PREFIX}/lib +MAKE_ENV+= TARGET_ARCH=desktop + +.include "options.mk" + +.include "../../archivers/bzip2/buildlink3.mk" +.include "../../converters/fribidi/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../graphics/jpeg/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../textproc/expat/buildlink3.mk" +.include "../../textproc/liblinebreak/buildlink3.mk" +.include "../../www/curl/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/misc/fbreader/PLIST b/misc/fbreader/PLIST new file mode 100644 index 00000000000..e8b29518fa6 --- /dev/null +++ b/misc/fbreader/PLIST @@ -0,0 +1,141 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ +bin/FBReader +lib/libzlcore.so.0.10 +lib/libzlcore.so.0.10.1 +lib/libzltext.so.0.10 +lib/libzltext.so.0.10.1 +lib/zlibrary/ui/zlui-gtk.so +share/FBReader/default/config.xml +share/FBReader/default/external.xml +share/FBReader/default/fullscreen_toolbar.xml +share/FBReader/default/keymap.xml +share/FBReader/default/styles.xml +share/FBReader/default/toolbar.xml +share/FBReader/formats/fb2/FBReaderVersion.ent +share/FBReader/formats/fb2/fb2genres.xml +share/FBReader/formats/html/html.ent +share/FBReader/formats/xhtml/xhtml-lat1.ent +share/FBReader/formats/xhtml/xhtml-special.ent +share/FBReader/formats/xhtml/xhtml-symbol.ent +share/FBReader/help/MiniHelp.cs.fb2 +share/FBReader/help/MiniHelp.en.fb2 +share/FBReader/help/MiniHelp.fi.fb2 +share/FBReader/help/MiniHelp.fr.fb2 +share/FBReader/help/MiniHelp.id.fb2 +share/FBReader/help/MiniHelp.it.fb2 +share/FBReader/help/MiniHelp.ru.fb2 +share/FBReader/help/MiniHelp.sv.fb2 +share/FBReader/help/MiniHelp.uk.fb2 +share/FBReader/resources/ar.xml +share/FBReader/resources/cs.xml +share/FBReader/resources/en.xml +share/FBReader/resources/fi.xml +share/FBReader/resources/fr.xml +share/FBReader/resources/id.xml +share/FBReader/resources/it.xml +share/FBReader/resources/ru.xml +share/FBReader/resources/sv.xml +share/FBReader/resources/uk.xml +share/applications/FBReader.desktop +share/pixmaps/FBReader.png +share/pixmaps/FBReader/addBook.png +share/pixmaps/FBReader/advancedSearchOnNetwork.png +share/pixmaps/FBReader/bookInfo.png +share/pixmaps/FBReader/byAuthor.png +share/pixmaps/FBReader/byTag.png +share/pixmaps/FBReader/fb2.png +share/pixmaps/FBReader/findNext.png +share/pixmaps/FBReader/findPrevious.png +share/pixmaps/FBReader/folder.png +share/pixmaps/FBReader/gotoHome.png +share/pixmaps/FBReader/html.png +share/pixmaps/FBReader/mobipocket.png +share/pixmaps/FBReader/oeb.png +share/pixmaps/FBReader/openreader.png +share/pixmaps/FBReader/palm.png +share/pixmaps/FBReader/plucker.png +share/pixmaps/FBReader/preferences.png +share/pixmaps/FBReader/redo.png +share/pixmaps/FBReader/rotate.png +share/pixmaps/FBReader/rtf.png +share/pixmaps/FBReader/search.png +share/pixmaps/FBReader/showHelp.png +share/pixmaps/FBReader/showLibrary.png +share/pixmaps/FBReader/showNetLibrary.png +share/pixmaps/FBReader/showReading.png +share/pixmaps/FBReader/showRecent.png +share/pixmaps/FBReader/tcr.png +share/pixmaps/FBReader/toc.png +share/pixmaps/FBReader/tree-authorinfo.png +share/pixmaps/FBReader/tree-bookinfo.png +share/pixmaps/FBReader/tree-download-epub.png +share/pixmaps/FBReader/tree-download-fb2.png +share/pixmaps/FBReader/tree-download-mobi.png +share/pixmaps/FBReader/tree-local-epub.png +share/pixmaps/FBReader/tree-local-fb2.png +share/pixmaps/FBReader/tree-local-mobi.png +share/pixmaps/FBReader/tree-open-in-browser.png +share/pixmaps/FBReader/tree-order-series.png +share/pixmaps/FBReader/tree-removebook.png +share/pixmaps/FBReader/tree-removetag.png +share/pixmaps/FBReader/tree-strut.png +share/pixmaps/FBReader/tree-taginfo.png +share/pixmaps/FBReader/undo.png +share/pixmaps/FBReader/unknown.png +share/pixmaps/FBReader/upfolder.png +share/pixmaps/FBReader/weasel.png +share/pixmaps/FBReader/zipfolder.png +share/zlibrary/default/config.xml +share/zlibrary/encodings/Big5 +share/zlibrary/encodings/Encodings.xml +share/zlibrary/encodings/GBK +share/zlibrary/encodings/IBM866 +share/zlibrary/encodings/ISO-8859-1 +share/zlibrary/encodings/ISO-8859-10 +share/zlibrary/encodings/ISO-8859-11 +share/zlibrary/encodings/ISO-8859-13 +share/zlibrary/encodings/ISO-8859-14 +share/zlibrary/encodings/ISO-8859-15 +share/zlibrary/encodings/ISO-8859-16 +share/zlibrary/encodings/ISO-8859-2 +share/zlibrary/encodings/ISO-8859-3 +share/zlibrary/encodings/ISO-8859-4 +share/zlibrary/encodings/ISO-8859-5 +share/zlibrary/encodings/ISO-8859-6 +share/zlibrary/encodings/ISO-8859-7 +share/zlibrary/encodings/ISO-8859-8 +share/zlibrary/encodings/ISO-8859-9 +share/zlibrary/encodings/KOI8-R +share/zlibrary/encodings/windows-1251 +share/zlibrary/encodings/windows-1252 +share/zlibrary/hyphenationPatterns.zip +share/zlibrary/keynames-gtk.xml +share/zlibrary/languagePatterns.zip +share/zlibrary/resources/ar.xml +share/zlibrary/resources/cs.xml +share/zlibrary/resources/en.xml +share/zlibrary/resources/fi.xml +share/zlibrary/resources/fr.xml +share/zlibrary/resources/id.xml +share/zlibrary/resources/it.xml +share/zlibrary/resources/ru.xml +share/zlibrary/resources/sv.xml +share/zlibrary/resources/uk.xml +share/zlibrary/unicode.xml.gz +@dirrm share/zlibrary/resources +@dirrm share/zlibrary/encodings +@dirrm share/zlibrary/default +@dirrm share/zlibrary +@dirrm share/pixmaps/FBReader +@comment in xdg-dirs: @dirrm share/pixmaps +@comment in xdg-dirs: @dirrm share/applications +@dirrm share/FBReader/resources +@dirrm share/FBReader/help +@dirrm share/FBReader/formats/xhtml +@dirrm share/FBReader/formats/html +@dirrm share/FBReader/formats/fb2 +@dirrm share/FBReader/formats +@dirrm share/FBReader/default +@dirrm share/FBReader +@dirrm lib/zlibrary/ui +@dirrm lib/zlibrary diff --git a/misc/fbreader/distinfo b/misc/fbreader/distinfo new file mode 100644 index 00000000000..211a7bd6770 --- /dev/null +++ b/misc/fbreader/distinfo @@ -0,0 +1,15 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +SHA1 (fbreader-sources-0.10.1.tgz) = 83589da5559d324503cdc0967c4df71b2fddf43d +RMD160 (fbreader-sources-0.10.1.tgz) = 1dd908c143875b08f8b04c6945e15652b64da364 +Size (fbreader-sources-0.10.1.tgz) = 1596725 bytes +SHA1 (patch-aa) = c76391244ee4a5f2efb1729157638ddb1ca97d3e +SHA1 (patch-ab) = b2b2efd7389a847429003e460bd3ccfe4fb27722 +SHA1 (patch-ac) = 95c7a7bee4cfc017cdf52ac04895d78fde2530df +SHA1 (patch-ad) = 1ba41ce767a7affeae6a02953eea390b8db88bf7 +SHA1 (patch-ae) = 29b33b9440e013cf87ae02ec4d32826f62e6b2ba +SHA1 (patch-af) = dad6ecbf5ca5663d11ea4a5dbb0bed1ab3cae6d8 +SHA1 (patch-ag) = 9c536b53b51bec9394f40d3b12fd14d162c212f1 +SHA1 (patch-ah) = dabb36a6370840f7a0efd8b8398b8dcac3d83882 +SHA1 (patch-ai) = d851a0cc23f9515afa5433cb31755a792b5a9345 +SHA1 (patch-aj) = 5db2865b8975eb9972ec78ebc0914a81bd382b4c diff --git a/misc/fbreader/options.mk b/misc/fbreader/options.mk new file mode 100644 index 00000000000..83883a6e422 --- /dev/null +++ b/misc/fbreader/options.mk @@ -0,0 +1,31 @@ +# $NetBSD: options.mk,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.fbreader +PKG_OPTIONS_REQUIRED_GROUPS= gui +PKG_OPTIONS_GROUP.gui= gtk2 # qt3 qt4 - untested +PKG_SUPPORTED_OPTIONS= debug +PKG_SUGGESTED_OPTIONS= gtk2 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdebug) +MAKE_ENV+= TARGET_STATUS=debug +.else +MAKE_ENV+= TARGET_STATUS=release +.endif + +.if !empty(PKG_OPTIONS:Mgtk2) +.include "../../x11/gtk2/buildlink3.mk" +MAKE_ENV+= UI_TYPE=gtk +USE_TOOLS+= pkg-config +.endif + +.if !empty(PKG_OPTIONS:Mqt3) +.include "../../x11/qt3-libs/buildlink3.mk" +MAKE_ENV+= UI_TYPE=qt +.endif + +.if !empty(PKG_OPTIONS:Mqt4) +.include "../../x11/qt4-libs/buildlink3.mk" +MAKE_ENV+= UI_TYPE=qt4 +.endif diff --git a/misc/fbreader/patches/patch-aa b/misc/fbreader/patches/patch-aa new file mode 100644 index 00000000000..3265ddf40de --- /dev/null +++ b/misc/fbreader/patches/patch-aa @@ -0,0 +1,40 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- build_packages.sh.orig 2009-01-11 01:44:33.000000000 +0100 ++++ build_packages.sh +@@ -3,7 +3,7 @@ + version=`cat fbreader/VERSION` + tmpdir=fbreader-$version + +-if [ "$1" == "-non-GPL" ]; then ++if [ "$1" = "-non-GPL" ]; then + distdir=distributions-nonGPL + pkgdir=packages-nonGPL + prepare_nonGPL=true +@@ -35,7 +35,7 @@ create_tmpdir() { + rm -rf `find $tmpdir -name ".svn"` + make -C $tmpdir distclean 1> /dev/null 2>&1 + +- if [ "$prepare_nonGPL" == "true" ]; then ++ if [ "$prepare_nonGPL" = "true" ]; then + pushd $tmpdir > /dev/null; + echo -en "Removing Arabic localization... "; + rm -rf fbreader/data/resources/ar.xml zlibrary/core/data/resources/ar.xml fbreader/data/help/MiniHelp.*.ar.fb2; +@@ -114,7 +114,7 @@ build_package() { + esac; + } + +-if [ $1 == all ]; then ++if [ $1 = all ]; then + create_tmpdir + for pkgtype in $distdir/*; do + for archtype in $pkgtype/*; do +@@ -128,7 +128,7 @@ else + pkgtype=`echo $1 | cut -d "-" -f 2`; + extra=`echo $1 | cut -d "-" -f 3`; + +- if [ "$pkgtype" != "" -a "$extra" == "" -a -d $distdir/$pkgtype/$archtype ]; then ++ if [ "$pkgtype" != "" -a "$extra" = "" -a -d $distdir/$pkgtype/$archtype ]; then + create_tmpdir + build_package $archtype $pkgtype + remove_tmpdir diff --git a/misc/fbreader/patches/patch-ab b/misc/fbreader/patches/patch-ab new file mode 100644 index 00000000000..5baba4f4f60 --- /dev/null +++ b/misc/fbreader/patches/patch-ab @@ -0,0 +1,32 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- zlibrary/core/src/unix/time/ZLUnixTime.cpp.orig 2008-03-22 13:00:31.000000000 +0000 ++++ zlibrary/core/src/unix/time/ZLUnixTime.cpp +@@ -17,21 +17,21 @@ + * 02110-1301, USA. + */ + +-#include <sys/timeb.h> ++#include <sys/time.h> + #include <time.h> + + #include "ZLUnixTime.h" + + ZLTime ZLUnixTimeManager::currentTime() const { +- struct timeb timeB; +- ftime(&timeB); +- return ZLTime(timeB.time, timeB.millitm); ++ struct timeval timeV; ++ gettimeofday(&timeV, NULL); ++ return ZLTime(timeV.tv_sec, 1000*timeV.tv_usec); + } + + short ZLUnixTimeManager::hoursBySeconds(long seconds) const { +- return localtime(&seconds)->tm_hour; ++ return localtime((time_t*)&seconds)->tm_hour; + } + + short ZLUnixTimeManager::minutesBySeconds(long seconds) const { +- return localtime(&seconds)->tm_min; ++ return localtime((time_t*)&seconds)->tm_min; + } diff --git a/misc/fbreader/patches/patch-ac b/misc/fbreader/patches/patch-ac new file mode 100644 index 00000000000..9940c3a4a6f --- /dev/null +++ b/misc/fbreader/patches/patch-ac @@ -0,0 +1,22 @@ +$NetBSD: patch-ac,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- fbreader/src/formats/fb2/FB2BookReader.cpp.orig 2008-03-22 13:00:31.000000000 +0000 ++++ fbreader/src/formats/fb2/FB2BookReader.cpp +@@ -65,7 +65,7 @@ void FB2BookReader::startElementHandler( + myModelReader.addHyperlinkLabel(id); + } + switch (tag) { +- case _P: ++ case _PP: + if (mySectionStarted) { + mySectionStarted = false; + } else if (myInsideTitle) { +@@ -218,7 +218,7 @@ void FB2BookReader::startElementHandler( + + void FB2BookReader::endElementHandler(int tag) { + switch (tag) { +- case _P: ++ case _PP: + myModelReader.endParagraph(); + break; + case _V: diff --git a/misc/fbreader/patches/patch-ad b/misc/fbreader/patches/patch-ad new file mode 100644 index 00000000000..1e0896a4266 --- /dev/null +++ b/misc/fbreader/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- zlibrary/core/src/unix/iconv/IConvEncodingConverter.cpp.orig 2009-01-11 01:44:33.000000000 +0100 ++++ zlibrary/core/src/unix/iconv/IConvEncodingConverter.cpp +@@ -89,7 +89,7 @@ iconvlabel: + #ifdef DO_ICONV_CAST + iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize); + #else // DO_ICONV_CAST +- iconv(myIConverter, &in, &inSize, &out, &outSize); ++ iconv(myIConverter, (const char **)&in, &inSize, &out, &outSize); + #endif // DO_ICONV_CAST + if (inSize != 0) { + if (myBuffer.empty()) { +@@ -132,7 +132,7 @@ bool IConvEncodingConverter::fillTable(i + #ifdef DO_ICONV_CAST + iconv(myIConverter, (const char**)&in, &inSize, &out, &outSize); + #else // DO_ICONV_CAST +- iconv(myIConverter, &in, &inSize, &out, &outSize); ++ iconv(myIConverter, (const char **)&in, &inSize, &out, &outSize); + #endif // DO_ICONV_CAST + if (inSize == 0) { + ZLUnicodeUtil::Ucs4Char ch; diff --git a/misc/fbreader/patches/patch-ae b/misc/fbreader/patches/patch-ae new file mode 100644 index 00000000000..9e3840c1402 --- /dev/null +++ b/misc/fbreader/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- fbreader/src/formats/fb2/FB2Reader.cpp.orig 2008-03-22 13:00:31.000000000 +0000 ++++ fbreader/src/formats/fb2/FB2Reader.cpp +@@ -31,7 +31,7 @@ void FB2Reader::endElementHandler(const + } + + static const FB2Reader::Tag TAGS[] = { +- {"p", FB2Reader::_P}, ++ {"p", FB2Reader::_PP}, + {"subtitle", FB2Reader::_SUBTITLE}, + {"cite", FB2Reader::_CITE}, + {"text-author", FB2Reader::_TEXT_AUTHOR}, diff --git a/misc/fbreader/patches/patch-af b/misc/fbreader/patches/patch-af new file mode 100644 index 00000000000..4260d1b623d --- /dev/null +++ b/misc/fbreader/patches/patch-af @@ -0,0 +1,13 @@ +$NetBSD: patch-af,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- fbreader/src/formats/fb2/FB2Reader.h.orig 2008-03-22 13:00:31.000000000 +0000 ++++ fbreader/src/formats/fb2/FB2Reader.h +@@ -44,7 +44,7 @@ private: + + public: + enum TagCode { +- _P, ++ _PP, + _SUBTITLE, + _CITE, + _TEXT_AUTHOR, diff --git a/misc/fbreader/patches/patch-ag b/misc/fbreader/patches/patch-ag new file mode 100644 index 00000000000..800200d3228 --- /dev/null +++ b/misc/fbreader/patches/patch-ag @@ -0,0 +1,13 @@ +$NetBSD: patch-ag,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- zlibrary/core/Makefile.orig 2008-03-22 13:00:31.000000000 +0000 ++++ zlibrary/core/Makefile +@@ -44,7 +44,7 @@ $(TARGET): .objects + @echo -n "Creating $@ ..." + @$(RM_QUIET) $(TARGET) + ifeq "$(ZLSHARED)" "yes" +- @$(LD) $(LDFLAGS) -shared -Wl,-soname,$(TARGET_SONAME) -o $(TARGET) -lc $(patsubst %, %/*.o, $(SUBDIRS)) $(XML_LIB) $(ARCHIVER_LIB) -ldl ++ @$(LD) $(LDFLAGS) -shared -Wl,-soname,$(TARGET_SONAME) -o $(TARGET) -lc $(patsubst %, %/*.o, $(SUBDIRS)) $(XML_LIB) $(ARCHIVER_LIB) + @ln -sf $(TARGET) $(TARGET_SONAME) + @ln -sf $(TARGET) $(TARGET_SHORTNAME) + else diff --git a/misc/fbreader/patches/patch-ah b/misc/fbreader/patches/patch-ah new file mode 100644 index 00000000000..56675978fe9 --- /dev/null +++ b/misc/fbreader/patches/patch-ah @@ -0,0 +1,15 @@ +$NetBSD: patch-ah,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- makefiles/config.mk.orig 2009-01-11 01:44:33.000000000 +0100 ++++ makefiles/config.mk +@@ -33,8 +33,8 @@ ZINCLUDE = -I $(ROOTDIR)/zlibrary/core/i + ZLSHARED ?= yes + + ifeq "$(ZLSHARED)" "yes" +- CORE_LIBS = -lm -L$(ROOTDIR)/zlibrary/core -lzlcore $(XML_LIB) $(ARCHIVER_LIB) -ldl +- TEXT_LIBS = -lzltext ++ CORE_LIBS = -lm -L$(ROOTDIR)/zlibrary/core -lzlcore $(XML_LIB) $(ARCHIVER_LIB) ++ TEXT_LIBS = -lzltext -llinebreak + else + CORE_LIBS = -lm -L$(ROOTDIR)/zlibrary/ui -L$(ROOTDIR)/zlibrary/core -lzlcore -lzlui-$(UI_TYPE) -lzlcore $(UILIBS) $(XML_LIB) $(ARCHIVER_LIB) + TEXT_LIBS = -lzltext -llinebreak -lfribidi diff --git a/misc/fbreader/patches/patch-ai b/misc/fbreader/patches/patch-ai new file mode 100644 index 00000000000..c467acf2fc0 --- /dev/null +++ b/misc/fbreader/patches/patch-ai @@ -0,0 +1,12 @@ +$NetBSD: patch-ai,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- makefiles/arch/desktop.mk.orig 2008-03-22 13:00:31.000000000 +0000 ++++ makefiles/arch/desktop.mk +@@ -11,7 +11,6 @@ AR = ar rsu + LD = g++ + + CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG +-LDFLAGS = + + ifeq "$(UI_TYPE)" "qt" + MOC = moc-qt3 diff --git a/misc/fbreader/patches/patch-aj b/misc/fbreader/patches/patch-aj new file mode 100644 index 00000000000..bd9748d3c01 --- /dev/null +++ b/misc/fbreader/patches/patch-aj @@ -0,0 +1,15 @@ +$NetBSD: patch-aj,v 1.1.1.1 2009/01/18 17:39:37 wiz Exp $ + +--- fbreader/desktop/Makefile.orig 2008-03-22 13:00:31.000000000 +0000 ++++ fbreader/desktop/Makefile +@@ -6,8 +6,8 @@ TARGET = FBReader + SHARE_FBREADER = $(DESTDIR)$(SHAREDIR)/FBReader + + install: +- @install -d $(DESTDIR)/usr/share/applications +- @install -m 0644 desktop $(DESTDIR)/usr/share/applications/$(TARGET).desktop ++ @install -d $(DESTDIR)${INSTALLDIR}/share/applications ++ @install -m 0644 desktop $(DESTDIR)${INSTALLDIR}/share/applications/$(TARGET).desktop + @install -d $(DESTDIR)$(IMAGEDIR) + @install -m 0644 ../data/icons/application/$(TARGET_ARCH).png $(DESTDIR)$(IMAGEDIR)/FBReader.png + @install -m 0644 ../data/default/config.desktop.xml $(SHARE_FBREADER)/default/config.xml |