Skip to contentSkip to conversation

tree: respect the package's own default CFLAGS

PATCH New Andre McCurdy 1 participant 1 message Nov 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tree: respect the package's own default CFLAGS

The tree Makefile defines default CFLAGS form Linux (-DLINUX, etc) which are lost if we don't manually include them in the final CFLAGS.

Also break the dependency on EXTRA_OEMAKE containing '-e', disable the unused configure task and, since package has a very short description, set SUMMARY instead of DESCRIPTION.

---
 meta-oe/recipes-support/tree/tree_1.7.0.bb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
meta-oe/recipes-support/tree/tree_1.7.0.bb +9 -2
index 507b12a..2e8ebdb 100644
@@ -1,4 +1,4 @@
-DESCRIPTION = "a recursive directory listing command"
+SUMMARY = "A recursive directory listing command"
 HOMEPAGE = "http://mama.indstate.edu/users/ice/tree/"
 SECTION = "console/utils"
 LICENSE = "GPLv2"
@@ -8,7 +8,14 @@ SRC_URI = "ftp://mama.indstate.edu/linux/${BPN}/${BP}.tgz"
 SRC_URI[md5sum] = "abe3e03e469c542d8e157cdd93f4d8a6"
 SRC_URI[sha256sum] = "6957c20e82561ac4231638996e74f4cfa4e6faabc5a2f511f0b4e3940e8f7b12"
 
+# tree's default CFLAGS for Linux
+CFLAGS += "-Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
+
+EXTRA_OEMAKE = "CC='${CC}' CFLAGS='${CFLAGS}' LDFLAGS='${LDFLAGS}'"
+
+do_configure[noexec] = "1"
+
 do_install() {
     install -d ${D}${bindir}
-    install -m 0755 ${S}/${BPN} ${D}${bindir}/${BPN}
+    install -m 0755 ${S}/${BPN} ${D}${bindir}/
 }
Signature · 1 line
1.9.1