Add poppler
authorRoss Burton <ross@openedhand.com>
Fri, 4 May 2007 15:25:50 +0000 (15:25 +0000)
committerRoss Burton <ross@openedhand.com>
Fri, 4 May 2007 15:25:50 +0000 (15:25 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1600 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta-extras/packages/poppler/poppler-data_0.1.bb [new file with mode: 0644]
meta-extras/packages/poppler/poppler-fpu.inc [new file with mode: 0644]
meta-extras/packages/poppler/poppler.inc [new file with mode: 0644]
meta-extras/packages/poppler/poppler_0.5.4.bb [new file with mode: 0644]

diff --git a/meta-extras/packages/poppler/poppler-data_0.1.bb b/meta-extras/packages/poppler/poppler-data_0.1.bb
new file mode 100644 (file)
index 0000000..ca22e4d
--- /dev/null
@@ -0,0 +1,16 @@
+DESCRIPTION = "Poppler is a PDF rendering library based on the xpdf-3.0 code base."
+LICENSE = "Adobe"
+PR = "r0"
+
+SRC_URI = "http://poppler.freedesktop.org/${PN}-${PV}.tar.gz"
+
+do_compile() {
+}
+
+do_install() {
+       oe_runmake install DESTDIR=${D}
+}
+
+FILES_${PN} += "${datadir}"
+PACKAGE_ARCH = "all"
+
diff --git a/meta-extras/packages/poppler/poppler-fpu.inc b/meta-extras/packages/poppler/poppler-fpu.inc
new file mode 100644 (file)
index 0000000..a262730
--- /dev/null
@@ -0,0 +1,6 @@
+
+def get_poppler_fpu_setting(bb, d):
+       if bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]:
+               return "--enable-fixedpoint"
+       return ""
+
diff --git a/meta-extras/packages/poppler/poppler.inc b/meta-extras/packages/poppler/poppler.inc
new file mode 100644 (file)
index 0000000..c33d6f0
--- /dev/null
@@ -0,0 +1,23 @@
+DESCRIPTION = "Poppler is a PDF rendering library based on the xpdf-3.0 code base."
+DEPENDS = "fontconfig jpeg zlib gtk+ cairo"
+LICENSE = "GPL"
+PR = "r1"
+
+SRC_URI = "http://poppler.freedesktop.org/${PN}-${PV}.tar.gz"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = " --enable-xpdf-headers \
+                --disable-gtk-test \
+                --disable-poppler-qt --disable-poppler-qt4 \
+                --enable-zlib \
+              "
+
+#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
+require poppler-fpu.inc
+EXTRA_OECONF += "${@get_poppler_fpu_setting(bb, d)}"
+
+
+do_stage() {
+       autotools_stage_all
+}
diff --git a/meta-extras/packages/poppler/poppler_0.5.4.bb b/meta-extras/packages/poppler/poppler_0.5.4.bb
new file mode 100644 (file)
index 0000000..92c25bc
--- /dev/null
@@ -0,0 +1,2 @@
+require poppler.inc
+PR = "r2"