summaryrefslogtreecommitdiffstats
path: root/package/nanocom/nanocom.mk
diff options
context:
space:
mode:
authorSimon Dawson <spdawson@gmail.com>2012-06-04 20:32:15 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-12 23:32:18 +0200
commit5c959c117d9079432e6e03c249a6534cca4eb6eb (patch)
tree15d549aed70c183d4847a664e2a2522fc8cea697 /package/nanocom/nanocom.mk
parente2b296ad7f01bbc3dd073afd3e9fbb140244bed0 (diff)
downloadbuildroot-novena-5c959c117d9079432e6e03c249a6534cca4eb6eb.tar.gz
buildroot-novena-5c959c117d9079432e6e03c249a6534cca4eb6eb.zip
nanocom: new package
Signed-off-by: Simon Dawson <spdawson@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/nanocom/nanocom.mk')
-rw-r--r--package/nanocom/nanocom.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/nanocom/nanocom.mk b/package/nanocom/nanocom.mk
new file mode 100644
index 000000000..4fb7aee79
--- /dev/null
+++ b/package/nanocom/nanocom.mk
@@ -0,0 +1,27 @@
+#############################################################
+#
+# nanocom
+#
+#############################################################
+NANOCOM_VERSION = 2.6.1
+NANOCOM_SOURCE = nanocom.tar.gz
+NANOCOM_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/nanocom/nanocom/v1.0
+
+# N.B. Don't strip any path components during extraction.
+define NANOCOM_EXTRACT_CMDS
+ gzip -d -c $(DL_DIR)/$(NANOCOM_SOURCE) | tar --strip-components=0 -C $(NANOCOM_DIR) -xf -
+endef
+
+define NANOCOM_BUILD_CMDS
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define NANOCOM_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/nanocom $(TARGET_DIR)/usr/bin/nanocom
+endef
+
+define NANOCOM_UNINSTALL_TARGET_CMDS
+ $(RM) $(TARGET_DIR)/usr/bin/nanocom
+endef
+
+$(eval $(call GENTARGETS))