summaryrefslogtreecommitdiff
path: root/recipes/djvulibre/djvulibre_3.5.21.bb
blob: ce57cf0d9dfd724526cd2f4946995b98ae6fb33d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
DESCRIPTION = "DjVuLibre is an open source (GPL'ed) implementation of DjVu, including viewers, browser plugins, decoders, simple encoders, and utilities."
LICENSE = "GPL"
DEPENDS = "jpeg libpng tiff"

SRC_URI = "${SOURCEFORGE_MIRROR}/djvu/djvulibre-${PV}.tar.gz \
           file://fix-cross-configure.patch"

inherit qt4x11 autotools pkgconfig

#export QT_LIBS = "${OE_QMAKE_LIBS_QT}"
#export QT_CFLAGS = "${OE_QMAKE_CXXFLAGS} -I${QTDIR}/include/Qt/ "

EXTRA_OECONF = " --enable-threads \
                 --with-qt=${QTDIR} "

do_configure() {
	gnu-configize
	autoreconf
	oe_runconf
	for i in $(find ${S} -name "Makefile") ; do
		sed -i -e s:-L/usr/lib::g $i
	done
}

do_stage() {
        autotools_stage_all
}

PACKAGES =+ "libdjvulibre"
FILES_libdjvulibre = "${libdir}/libdjvulibre.so.*"
FILES_${PN} += "${datadir}/djvu"

SRC_URI[md5sum] = "4c6f3eb03ffbd067b6d2fe2344b0d9ad"
SRC_URI[sha256sum] = "39f80c1810be22c5ea7f6a44bbb449c3e29902895dcff9da6a8440891a67b8b4"