2016-02-23 00:07:51 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# owfs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-09-15 12:35:44 +02:00
|
|
|
OWFS_VERSION = 3.2p2
|
2016-02-23 00:07:51 +01:00
|
|
|
OWFS_SITE = http://downloads.sourceforge.net/project/owfs/owfs/$(OWFS_VERSION)
|
|
|
|
OWFS_DEPENDENCIES = host-pkgconf
|
|
|
|
OWFS_CONF_OPTS = --disable-owperl --without-perl5 --disable-owtcl --without-tcl
|
|
|
|
|
2019-03-24 23:10:17 +01:00
|
|
|
# We're patching configure.ac
|
2016-02-23 00:07:51 +01:00
|
|
|
OWFS_AUTORECONF = YES
|
|
|
|
|
|
|
|
# owtcl license is declared in module/ownet/c/src/include/ow_functions.h
|
2017-03-30 15:43:37 +02:00
|
|
|
OWFS_LICENSE = GPL-2.0+, LGPL-2.0 (owtcl)
|
2016-02-23 00:07:51 +01:00
|
|
|
OWFS_LICENSE_FILES = COPYING COPYING.LIB
|
2016-03-08 20:53:48 +01:00
|
|
|
OWFS_INSTALL_STAGING = YES
|
2016-02-23 00:07:51 +01:00
|
|
|
|
2016-08-05 23:58:53 +02:00
|
|
|
# owfs PHP support is not PHP 7 compliant
|
|
|
|
# https://sourceforge.net/p/owfs/support-requests/32/
|
|
|
|
OWFS_CONF_OPTS += --disable-owphp --without-php
|
|
|
|
|
2018-09-14 06:54:59 +02:00
|
|
|
# Skip man pages processing
|
|
|
|
OWFS_CONF_ENV += ac_cv_path_SOELIM=true
|
|
|
|
|
2016-02-23 00:07:51 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
|
|
|
OWFS_DEPENDENCIES += libfuse
|
2016-03-06 21:24:20 +01:00
|
|
|
OWFS_CONF_OPTS += \
|
|
|
|
--enable-owfs \
|
|
|
|
--with-fuseinclude=$(STAGING_DIR)/usr/include \
|
|
|
|
--with-fuselib=$(STAGING_DIR)/usr/lib
|
2016-03-26 14:00:46 +01:00
|
|
|
define OWFS_INSTALL_FUSE_INIT_SYSV
|
2019-04-23 13:35:15 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S60owfs \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S60owfs
|
2016-03-26 14:00:46 +01:00
|
|
|
endef
|
|
|
|
define OWFS_CREATE_MOUNTPOINT
|
|
|
|
mkdir -p $(TARGET_DIR)/dev/1wire
|
|
|
|
endef
|
|
|
|
OWFS_POST_INSTALL_TARGET_HOOKS += OWFS_CREATE_MOUNTPOINT
|
2016-02-23 00:07:51 +01:00
|
|
|
else
|
|
|
|
OWFS_CONF_OPTS += --disable-owfs
|
|
|
|
endif
|
|
|
|
|
2019-03-24 23:10:19 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFTDI1),y)
|
|
|
|
OWFS_CONF_OPTS += \
|
|
|
|
--enable-ftdi \
|
|
|
|
--with-libftdi-config=$(STAGING_DIR)/usr/bin/libftdi1-config
|
|
|
|
OWFS_DEPENDENCIES += libftdi1
|
|
|
|
else ifeq ($(BR2_PACKAGE_LIBFTDI),y)
|
|
|
|
OWFS_CONF_OPTS += \
|
|
|
|
--enable-ftdi \
|
|
|
|
--with-libftdi-config=$(STAGING_DIR)/usr/bin/libftdi-config
|
|
|
|
OWFS_DEPENDENCIES += libftdi
|
|
|
|
else
|
|
|
|
OWFS_CONF_OPTS += --disable-ftdi
|
|
|
|
endif
|
|
|
|
|
2016-02-23 00:07:51 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
|
|
OWFS_CONF_OPTS += --enable-usb
|
|
|
|
OWFS_DEPENDENCIES += libusb
|
|
|
|
else
|
|
|
|
OWFS_CONF_OPTS += --disable-usb
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI),y)
|
|
|
|
OWFS_CONF_OPTS += --enable-avahi
|
|
|
|
OWFS_DEPENDENCIES += avahi
|
|
|
|
else
|
|
|
|
OWFS_CONF_OPTS += --disable-avahi
|
|
|
|
endif
|
|
|
|
|
|
|
|
# setup.py isn't python3 compliant
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON),y)
|
|
|
|
OWFS_CONF_OPTS += \
|
|
|
|
--enable-owpython \
|
|
|
|
--with-python \
|
|
|
|
--with-pythonconfig=$(STAGING_DIR)/usr/bin/python-config
|
|
|
|
OWFS_MAKE_ENV += \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
PYTHONPATH="$(PYTHON_PATH)" \
|
|
|
|
_python_sysroot=$(STAGING_DIR) \
|
|
|
|
_python_prefix=/usr \
|
|
|
|
_python_exec_prefix=/usr
|
|
|
|
OWFS_DEPENDENCIES += python host-swig
|
2016-11-03 21:36:04 +01:00
|
|
|
# The configure scripts finds PYSITEDIR as the python_lib directory of
|
|
|
|
# host-python, and then prepends DESTDIR in front of it. So we end up
|
2017-07-05 13:14:21 +02:00
|
|
|
# installing things in $(TARGET_DIR)/$(HOST_DIR)/lib/python which is
|
2016-11-03 21:36:04 +01:00
|
|
|
# clearly wrong.
|
|
|
|
# Patching owfs to do the right thing is not trivial, it's much easier to
|
|
|
|
# override the PYSITEDIR variable in make.
|
|
|
|
OWFS_EXTRA_MAKE_OPTS += PYSITEDIR=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
2016-02-23 00:07:51 +01:00
|
|
|
else
|
|
|
|
OWFS_CONF_OPTS += --disable-owpython --without-python
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
# zeroconf support uses dlopen()
|
|
|
|
OWFS_CONF_OPTS += --disable-zero
|
|
|
|
endif
|
|
|
|
|
2016-11-03 21:36:04 +01:00
|
|
|
OWFS_MAKE = $(MAKE) $(OWFS_EXTRA_MAKE_OPTS)
|
|
|
|
|
2016-03-26 14:00:46 +01:00
|
|
|
define OWFS_INSTALL_INIT_SYSV
|
2019-04-23 13:35:15 +02:00
|
|
|
$(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S55owserver \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S55owserver
|
2016-03-26 14:00:46 +01:00
|
|
|
$(OWFS_INSTALL_FUSE_INIT_SYSV)
|
|
|
|
endef
|
|
|
|
|
2016-02-23 00:07:51 +01:00
|
|
|
$(eval $(autotools-package))
|