termcap, termcapfile: add GNU termcap 1.3.1
authorChris Larson <chris_larson@mentor.com>
Thu, 4 Nov 2010 18:25:17 +0000 (14:25 -0400)
committerChris Larson <chris_larson@mentor.com>
Thu, 4 Nov 2010 18:25:53 +0000 (14:25 -0400)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
recipes/termcap/termcap_1.3.1.bb [new file with mode: 0644]
recipes/termcapfile/termcapfile_11.0.1.bb [moved from recipes/termcap/termcap_11.0.1.bb with 87% similarity]

diff --git a/recipes/termcap/termcap_1.3.1.bb b/recipes/termcap/termcap_1.3.1.bb
new file mode 100644 (file)
index 0000000..6f78bbf
--- /dev/null
@@ -0,0 +1,35 @@
+inherit autotools
+
+DESCRIPTION = "GNU termcap is a library of C functions that enables programs \
+to send control strings to terminals in a terminal type-independent manner"
+HOMEPAGE = "http://freshmeat.net/projects/termcap/"
+LICENSE = "GPLv2"
+DEPENDS = ""
+PE = "1"
+PR = "0"
+
+SRC_URI = "${GNU_MIRROR}/termcap/termcap-${PV}.tar.gz"
+SRC_URI[md5sum] = "ffe6f86e63a3a29fa53ac645faaabdfa"
+SRC_URI[sha256sum] = "91a0e22e5387ca4467b5bcb18edf1c51b930262fd466d5fda396dd9d26719100"
+
+EXTRA_OECONF += "\
+    --enable-install-termcap \
+    --with-termcap=${sysconfdir}/termcap \
+"
+
+EXTRA_OEMAKE += "\
+    'AR=${AR}' \
+    'CFLAGS=${CFLAGS}' \
+"
+
+do_install () {
+    install -d ${D}${sysconfdir}
+    oe_runmake install \
+        'libdir=${D}${libdir}' \
+        'includedir=${D}${includedir}' \
+        'infodir=${D}${infodir}' \
+        'termcapfile=${D}${sysconfdir}/termcap' \
+        'oldincludedir='
+}
+
+BBCLASSEXTEND += "native nativesdk"
similarity index 87%
rename from recipes/termcap/termcap_11.0.1.bb
rename to recipes/termcapfile/termcapfile_11.0.1.bb
index a14630d..6e8517b 100644 (file)
@@ -2,6 +2,7 @@ DESCRIPTION = "Terminal Capabilities File"
 SECTION = "base"
 HOMEPAGE = "http://www.catb.org/~esr/terminfo/"
 LICENSE = "PD"
+PR = "r1"
 
 SRC_URI = "http://www.catb.org/~esr/terminfo/termtypes.tc.gz"
 S = "${WORKDIR}"
@@ -11,9 +12,5 @@ do_install() {
        install -m 0644 termtypes.tc ${D}${sysconfdir}/termcap
 }
 
-PACKAGES = "${PN}-dbg termcap"
-FILES_termcap = "${sysconfdir}"
-
-
 SRC_URI[md5sum] = "37318885db65314f1bcc2b22751123d3"
 SRC_URI[sha256sum] = "c4fa04257fea6e968d4caa28cc18dbbf9eea4769a463296eaca21ceea757a728"