Skip to contentSkip to conversation

Add fmtools package.

PATCH Superseded Marek Belisko 2 participants 2 messages Mar 31, 2012 – Apr 1, 2012

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add fmtools package.

---
 package/Config.in          |    1 +
 package/fmtools/Config.in  |    9 +++++++++
 package/fmtools/fmtools.mk |   19 +++++++++++++++++++
 3 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 package/fmtools/Config.in
 create mode 100644 package/fmtools/fmtools.mk
package/Config.in +1 -0
index 68d28fa..94faf44 100644
@@ -175,6 +175,7 @@ source "package/e2fsprogs/Config.in"
 source "package/eeprog/Config.in"
 source "package/fconfig/Config.in"
 source "package/fis/Config.in"
+source "package/fmtools/Config.in"
 source "package/gadgetfs-test/Config.in"
 source "package/gdisk/Config.in"
 source "package/genext2fs/Config.in"
package/fmtools/Config.in new file +9 -0
new file mode 100644
index 0000000..41c883c
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_FMTOOLS
+	bool "fmtools"
+	help
+	  fmtools is a pair of simple command-line utilities for
+	  ?video4linux? radio tuner cards under Linux. It includes
+	  fm for power control, tuning, and volume and fmscan for
+	  scanning for stations.
+
+	  http://www.stanford.edu/~blp/fmtools/
package/fmtools/fmtools.mk new file +19 -0
new file mode 100644
index 0000000..c03afbc
@@ -0,0 +1,19 @@
+#############################################################
+#
+# fmtools
+#
+#############################################################
+
+FMTOOLS_VERSION = 1.0.2
+FMTOOLS_SITE = http://www.stanford.edu/~blp/fmtools/
+
+define FMTOOLS_BUILD_CMDS
+	$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
+endef
+
+define FMTOOLS_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/fm $(TARGET_DIR)/usr/sbin
+	$(INSTALL) -D -m 0755 $(@D)/fmscan $(TARGET_DIR)/usr/sbin
+endef
+
+$(eval $(call GENTARGETS))
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH 1/1 Add fmtools package.

Hi Marek,

Quoted 1 line · Marek Belisko

[snip]

Quoted 6 lines

new file mode 100644
index 0000000..c03afbc

package/fmtools/fmtools.mk new file +1 -0
@@ -0,0 +1,19 @@
+#############################################################

package/fmtools/fmtools.mk line 11

Quoted 10 lines
package/fmtools/fmtools.mk new file +10 -0
+#
+# fmtools
+#
+#############################################################
+
+FMTOOLS_VERSION = 1.0.2
+FMTOOLS_SITE = http://www.stanford.edu/~blp/fmtools/
+
+define FMTOOLS_BUILD_CMDS
+	$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all

Just use $(TARGET_CONFIGURE_OPTS) instead of setting CC and LD individually.

package/fmtools/fmtools.mk line 19

Quoted 8 lines
package/fmtools/fmtools.mk new file +8 -0
+endef
+
+define FMTOOLS_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/fm $(TARGET_DIR)/usr/sbin
+	$(INSTALL) -D -m 0755 $(@D)/fmscan $(TARGET_DIR)/usr/sbin
+endef
+
+$(eval $(call GENTARGETS))

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -