2018-09-28 20:00:33 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pigpio
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-03-03 23:07:30 +01:00
|
|
|
PIGPIO_VERSION = 79
|
2020-01-27 13:37:22 +01:00
|
|
|
PIGPIO_SITE = $(call github,joan2937,pigpio,v$(PIGPIO_VERSION))
|
2018-09-28 20:00:33 +02:00
|
|
|
PIGPIO_LICENSE = Unlicense
|
|
|
|
PIGPIO_LICENSE_FILES = UNLICENCE
|
2019-08-15 15:43:21 +02:00
|
|
|
PIGPIO_INSTALL_STAGING = YES
|
2018-09-28 20:00:33 +02:00
|
|
|
|
|
|
|
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
|
2019-09-26 21:39:17 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libpigpio.so.1 $(TARGET_DIR)/usr/lib/libpigpio.so.1
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libpigpiod_if.so.1 $(TARGET_DIR)/usr/lib/libpigpiod_if.so.1
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libpigpiod_if2.so.1 $(TARGET_DIR)/usr/lib/libpigpiod_if2.so.1
|
|
|
|
ln -sf libpigpio.so.1 $(TARGET_DIR)/usr/lib/libpigpio.so
|
|
|
|
ln -sf libpigpiod_if.so.1 $(TARGET_DIR)/usr/lib/libpigpiod_if.so
|
|
|
|
ln -sf libpigpiod_if2.so.1 $(TARGET_DIR)/usr/lib/libpigpiod_if2.so
|
2018-09-28 20:00:33 +02:00
|
|
|
endef
|
|
|
|
|
2019-08-15 15:43:21 +02:00
|
|
|
define PIGPIO_INSTALL_STAGING_CMDS
|
2019-09-26 21:39:17 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libpigpio.so.1 $(STAGING_DIR)/usr/lib/libpigpio.so.1
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libpigpiod_if.so.1 $(STAGING_DIR)/usr/lib/libpigpiod_if.so.1
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/libpigpiod_if2.so.1 $(STAGING_DIR)/usr/lib/libpigpiod_if2.so.1
|
2019-08-15 15:43:21 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pigpio.h $(STAGING_DIR)/usr/include/pigpio.h
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pigpiod_if.h $(STAGING_DIR)/usr/include/pigpiod_if.h
|
|
|
|
$(INSTALL) -D -m 0644 $(@D)/pigpiod_if2.h $(STAGING_DIR)/usr/include/pigpiod_if2.h
|
2019-09-26 21:39:17 +02:00
|
|
|
ln -sf libpigpio.so.1 $(STAGING_DIR)/usr/lib/libpigpio.so
|
|
|
|
ln -sf libpigpiod_if.so.1 $(STAGING_DIR)/usr/lib/libpigpiod_if.so
|
|
|
|
ln -sf libpigpiod_if2.so.1 $(STAGING_DIR)/usr/lib/libpigpiod_if2.so
|
2019-08-15 15:43:21 +02:00
|
|
|
endef
|
|
|
|
|
2020-09-07 11:34:26 +02:00
|
|
|
define PIGPIO_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/pigpio/S50pigpio \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S50pigpio
|
|
|
|
endef
|
|
|
|
|
|
|
|
define PIGPIO_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/pigpio/pigpio.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/pigpio.service
|
|
|
|
endef
|
|
|
|
|
2018-09-28 20:00:33 +02:00
|
|
|
$(eval $(generic-package))
|