python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / wiringpi / wiringpi.mk
blob3227fb26d611a60744fde78a1e8c23b868ff6fff
1 ################################################################################
3 # wiringpi
5 ################################################################################
7 WIRINGPI_VERSION = 2.44
8 WIRINGPI_SITE = git://git.drogon.net/wiringPi
10 WIRINGPI_LICENSE = LGPLv3+
11 WIRINGPI_LICENSE_FILES = COPYING.LESSER
12 WIRINGPI_INSTALL_STAGING = YES
14 ifeq ($(BR2_STATIC_LIBS),y)
15 WIRINGPI_LIB_BUILD_TARGETS = static
16 WIRINGPI_LIB_INSTALL_TARGETS = install-static
17 WIRINGPI_BIN_BUILD_TARGETS = gpio-static
18 else ifeq ($(BR2_SHARED_LIBS),y)
19 WIRINGPI_LIB_BUILD_TARGETS = all
20 WIRINGPI_LIB_INSTALL_TARGETS = install
21 WIRINGPI_BIN_BUILD_TARGETS = all
22 else
23 WIRINGPI_LIB_BUILD_TARGETS = all static
24 WIRINGPI_LIB_INSTALL_TARGETS = install install-static
25 WIRINGPI_BIN_BUILD_TARGETS = all
26 endif
28 define WIRINGPI_BUILD_CMDS
29 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/wiringPi $(WIRINGPI_LIB_BUILD_TARGETS)
30 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/devLib $(WIRINGPI_LIB_BUILD_TARGETS)
31 $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)/gpio $(WIRINGPI_BIN_BUILD_TARGETS)
32 endef
34 define WIRINGPI_INSTALL_STAGING_CMDS
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/wiringPi $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(STAGING_DIR) PREFIX=/usr LDCONFIG=true
36 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/devLib $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(STAGING_DIR) PREFIX=/usr LDCONFIG=true
37 endef
39 define WIRINGPI_INSTALL_TARGET_CMDS
40 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/wiringPi $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(TARGET_DIR) PREFIX=/usr LDCONFIG=true
41 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/devLib $(WIRINGPI_LIB_INSTALL_TARGETS) DESTDIR=$(TARGET_DIR) PREFIX=/usr LDCONFIG=true
42 $(INSTALL) -D -m 0755 $(@D)/gpio/gpio $(TARGET_DIR)/usr/bin/gpio
43 $(INSTALL) -D -m 0755 $(@D)/gpio/pintest $(TARGET_DIR)/usr/bin/pintest
44 endef
46 $(eval $(generic-package))