1SUMMARY="Viewer for DjVu documents" 2DESCRIPTION="This package contains the djview4 viewer and browser plugin. 3This new viewer relies on the DjVulibre library and the Qt toolkit. 4 5Highlights: 6- entirely based on the public djvulibre api. 7- entirely written in portable Qt4/Qt5. 8- works natively under Unix/X11, MS Windows, and MacOS X. 9- continuous scrolling of pages 10- side-by-side display of pages 11- ability to specify a url to the djview command 12- all plugin and cgi options available from the command line 13- all silly annotations implemented 14- display thumbnails as a grid 15- display outlines 16- page names supported (see djvused command set-page-title) 17- metadata dialog (see djvused command set-meta) 18- implemented as reusable Qt widgets" 19HOMEPAGE="http://djvu.sourceforge.net/djview4.html" 20COPYRIGHT="2006- Leon Bottou" 21LICENSE="GNU GPL v2" 22REVISION="1" 23SOURCE_URI="http://downloads.sourceforge.net/djvu/djview-$portVersion.tar.gz" 24CHECKSUM_SHA256="5673c6a8b7e195b91a1720b24091915b8145de34879db1158bc936b100eaf3e3" 25SOURCE_DIR="djview4-$portVersion" 26ADDITIONAL_FILES="djview4.rdef.in" 27 28ARCHITECTURES="all !x86_gcc2" 29SECONDARY_ARCHITECTURES="x86" 30 31PROVIDES=" 32 djview$secondaryArchSuffix = $portVersion 33 cmd:djview$secondaryArchSuffix = $portVersion 34 " 35REQUIRES=" 36 haiku$secondaryArchSuffix 37 lib:libdjvulibre$secondaryArchSuffix 38 lib:libGL$secondaryArchSuffix 39 lib:libQt5Core$secondaryArchSuffix 40 lib:libQt5Gui$secondaryArchSuffix 41 lib:libQt5Network$secondaryArchSuffix 42 lib:libQt5OpenGL$secondaryArchSuffix 43 lib:libQt5PrintSupport$secondaryArchSuffix 44 lib:libQt5Widgets$secondaryArchSuffix 45 lib:libtiff$secondaryArchSuffix 46 " 47 48BUILD_REQUIRES=" 49 haiku${secondaryArchSuffix}_devel 50 xlibe${secondaryArchSuffix}_devel 51 devel:libdjvulibre$secondaryArchSuffix >= 21.7 52 devel:libGL$secondaryArchSuffix 53 devel:libglib_2.0$secondaryArchSuffix 54 devel:libQt5Core$secondaryArchSuffix 55 devel:libQt5DBus$secondaryArchSuffix 56 devel:libQt5Gui$secondaryArchSuffix 57 devel:libQt5Network$secondaryArchSuffix 58 devel:libQt5OpenGL$secondaryArchSuffix 59 devel:libQt5PrintSupport$secondaryArchSuffix 60 devel:libQt5Widgets$secondaryArchSuffix 61 devel:libtiff$secondaryArchSuffix 62 " 63BUILD_PREREQUIRES=" 64 cmd:aclocal 65 cmd:autoreconf 66 cmd:awk 67 cmd:convert 68 cmd:gcc$secondaryArchSuffix 69 cmd:libtoolize$secondaryArchSuffix 70 cmd:lrelease$secondaryArchSuffix >= 5 71 cmd:make 72 cmd:pkg_config$secondaryArchSuffix 73 cmd:rsvg_convert 74 " 75 76BUILD() 77{ 78 export LDFLAGS="-lnetwork" 79 NOCONFIGURE=1 ./autogen.sh 80 runConfigure ./configure 81 make $jobArgs 82} 83 84INSTALL() 85{ 86 make install 87 88 # we are not linux 89 rm -rf $dataDir/{applications,icons} 90 91 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 92 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 93 local MINOR="0" 94 local APP_NAME="DjView" 95 local LONG_INFO="$SUMMARY" 96 local APP_SIGNATURE="application/x-vnd.djview" 97 sed \ 98 -e "s|@MAJOR@|$MAJOR|" \ 99 -e "s|@MIDDLE@|$MIDDLE|" \ 100 -e "s|@MINOR@|$MINOR|" \ 101 -e "s|@LONG_INFO@|$LONG_INFO|" \ 102 -e "s|@APP_NAME@|$APP_NAME|" \ 103 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 104 $portDir/additional-files/djview4.rdef.in > djview4.rdef 105 106 addResourcesToBinaries djview4.rdef $binDir/djview 107 108 addAppDeskbarSymlink $binDir/djview DjView 109} 110