summaryrefslogtreecommitdiff
path: root/package/nanocom/nanocom.mk
blob: 8421397dad8471650381bb228c132584bd41f92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" -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))