kumquat-buildroot/package/pigpio/pigpio.mk
Grzegorz Blach a3fb16a0ff pigpio: new package
Pigpio is a library for the Raspberry Pi which allows
control of the General Purpose Input Outputs (GPIO).

http://abyz.me.uk/rpi/pigpio/

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
[Thomas:
 - Use proper SPDX tag for The Unlicense
 - Add missing dependency on !BR2_STATIC_LIBS, since the Makefile is
   unconditionally building a shared library
 - Use BR2_arm instead of BR2_ARM_EABIHF, there's nothing that makes
   it EABIHF specific.
 - Use -D and full destination paths during the installation.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-10-09 15:26:31 +02:00

26 lines
927 B
Makefile

################################################################################
#
# pigpio
#
################################################################################
PIGPIO_VERSION = V67
PIGPIO_SITE = $(call github,joan2937,pigpio,$(PIGPIO_VERSION))
PIGPIO_LICENSE = Unlicense
PIGPIO_LICENSE_FILES = UNLICENCE
define PIGPIO_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define PIGPIO_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/pig2vcd $(TARGET_DIR)/usr/bin/pig2vcd
$(INSTALL) -D -m 0755 $(@D)/pigpiod $(TARGET_DIR)/usr/bin/pigpiod
$(INSTALL) -D -m 0755 $(@D)/pigs $(TARGET_DIR)/usr/bin/pigs
$(INSTALL) -D -m 0755 $(@D)/libpigpio.so $(TARGET_DIR)/usr/lib/libpigpio.so
$(INSTALL) -D -m 0755 $(@D)/libpigpiod_if.so $(TARGET_DIR)/usr/lib/libpigpiod_if.so
$(INSTALL) -D -m 0755 $(@D)/libpigpiod_if2.so $(TARGET_DIR)/usr/lib/libpigpiod_if2.so
endef
$(eval $(generic-package))