Skip to contentSkip to conversation

gs: Clean up and break into two recipes.

PATCH New Graham Gower 1 participant 1 message Oct 28, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gs: Clean up and break into two recipes.

* Break the native compilation steps into a separate native recipe.
* Fix license
* Convert to new style staging
* Fix build on mipsel due to missing -fPIC for objects linked into so files.

---
 recipes/gs/gs-tools-native_8.64.bb |   30 ++++++++++++++++++++++
 recipes/gs/gs_8.64.bb              |   49 +++++++++++-------------------------
 2 files changed, 45 insertions(+), 34 deletions(-)
 create mode 100644 recipes/gs/gs-tools-native_8.64.bb
recipes/gs/gs-tools-native_8.64.bb new file +30 -0
new file mode 100644
index 0000000..ea5f5fa
@@ -0,0 +1,30 @@
+DESCRIPTION = "Tools needed for cross building Ghostscript"
+LICENSE = "GPLv2"
+HOMEPAGE = "http://www.gnu.org/software/ghostscript/ghostscript.html"
+DEPENDS = "zlib-native fontconfig-native"
+
+S = "${WORKDIR}/ghostscript-${PV}~dfsg"
+SRC_URI = "${DEBIAN_MIRROR}/main/g/ghostscript/ghostscript_${PV}~dfsg.orig.tar.gz;name=tarball"
+
+inherit autotools native
+
+SRC_URI[tarball.md5sum] = "e42706c2409815df5c959484080fd4a3"
+SRC_URI[tarball.sha256sum] = "cc856d33cb781cdc3383b8eb4e0f390997f8359fe144a906b84297b5d377f03d"
+
+EXTRA_OECONF = "--without-x --without-jasper"
+
+do_compile() {
+        mkdir -p obj
+        for i in genarch genconf mkromfs echogs gendev genht; do
+                oe_runmake obj/$i
+        done
+}
+
+NATIVE_INSTALL_WORKS = "1"
+
+do_install () {
+	install -d ${D}${bindir}/gs-tools-${PV}
+        for i in genarch genconf mkromfs echogs gendev genht; do
+		install -m 755 obj/$i ${D}${bindir}/gs-tools-${PV}/$i
+	done
+}
recipes/gs/gs_8.64.bb +15 -34

84 lines not on this page · raw message

Signature · 1 line
1.7.1