aboutsummaryrefslogtreecommitdiffstats
path: root/package/snowball-hdmiservice/snowball-hdmiservice.mk
blob: ebd65dfba7d0e3164d1b4c897db667d4b8a8905f (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#############################################################
#
# snowball-hdmiservice
#
#############################################################
SNOWBALL_HDMISERVICE_VERSION = f75c99d1c52707240a78b4ba78e41d20d3aa3b08
SNOWBALL_HDMISERVICE_SITE = git://igloocommunity.org/git/bsp/hdmiservice.git
SNOWBALL_HDMISERVICE_LICENSE = MIT
SNOWBALL_HDMISERVICE_LICENSE_FILES = debian/copyright
SNOWBALL_HDMISERVICE_INSTALL_STAGING = YES

define SNOWBALL_HDMISERVICE_BUILD_CMDS
	$(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS)" 	
endef

define SNOWBALL_HDMISERVICE_INSTALL_STAGING_CMDS
	$(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS)" DESTDIR=$(STAGING_DIR) install
endef

define SNOWBALL_HDMISERVICE_INSTALL_TARGET_CMDS
	$(MAKE) -C $(@D) CC="$(TARGET_CC) $(TARGET_CFLAGS)" DESTDIR=$(TARGET_DIR) install
endef

define SNOWBALL_HDMISERVICE_UNINSTALL_STAGING_CMDS
	rm -f $(STAGING_DIR)/usr/lib/hdmiservice.so
	rm -f $(STAGING_DIR)/usr/bin/hdmistart
	rm -f $(STAGING_DIR)/usr/include/hdmi_service_api.h
	rm -f $(STAGING_DIR)/usr/include/hdmi_service_local.h
endef

define SNOWBALL_HDMISERVICE_UNINSTALL_TARGET_CMDS
	rm -f $(TARGET_DIR)/usr/lib/hdmiservice.so
	rm -f $(TARGET_DIR)/usr/bin/hdmistart
endef

define SNOWBALL_HDMISERVICE_CLEAN_CMDS
	$(MAKE) -C $(@D) clean
endef


$(eval $(generic-package))