packages/utils/bluez-tools/Makefile

57 lines
1.4 KiB
Makefile
Raw Normal View History

#
# Copyright (C) 2021 Karl Osterseher <karli_o@gmx.at>
#
# This is free software, licensed under the GNU General Public License v2.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=bluez-tools
PKG_VERSION:=20201025.f653217
PKG_RELEASE:=$(AUTORELEASE)
PKG_MAINTAINER:=Karl Osterseher <karli_o@gmx.at>
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/khvzak/bluez-tools.git
PKG_SOURCE_DATE:=2020-10-25
PKG_SOURCE_VERSION:=f65321736475429316f07ee94ec0deac8e46ec4a
PKG_MIRROR_HASH:=a0a7856738fcee12df8894239608d8cc4a7af92574d9bdb5a0b68a8a5455214b
PKG_BUILD_DIR:=$(BUILD_DIR)/bluez-tools-$(PKG_VERSION)
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
bluez-tools: fix compile with BUILD_NLS Fixes: ccache_cc -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/mox-openwrt-master/build/build_dir/target-aarch64_cortex-a53_musl/bluez-tools-20201025.f653217=bluez-tools-20201025.f653217 -Wformat -Werror=format-security -DPIC -fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro -L/mox-openwrt-master/build/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/usr/lib -L/mox-openwrt-master/build/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib -DPIC -fPIC -specs=/mox-openwrt-master/build/include/hardened-ld-pie.specs -znow -zrelro -o bt-adapter lib/agent-helper.o lib/dbus-common.o lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o lib/bluez/alert.o lib/bluez/cycling_speed.o lib/bluez/cycling_speed_manager.o lib/bluez/device.o lib/bluez/health_channel.o lib/bluez/health_device.o lib/bluez/health_manager.o lib/bluez/heart_rate.o lib/bluez/heart_rate_manager.o lib/bluez/media.o lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o lib/bluez/sim_access.o lib/bluez/thermometer.o lib/bluez/thermometer_manager.o bt-adapter.o -L/mox-openwrt-master/build/staging_dir/target-aarch64_cortex-a53_musl/usr/lib -lglib-2.0 -lintl -L/mox-openwrt-master/build/staging_dir/target-aarch64_cortex-a53_musl/usr/lib -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl /mox-openwrt-master/build/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cannot find -lintl /mox-openwrt-master/build/staging_dir/toolchain-aarch64_cortex-a53_gcc-11.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cannot find -lintl collect2: error: ld returned 1 exit status make[5]: *** [Makefile:580: bt-adapter] Error 1 Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2022-05-09 13:49:55 +00:00
include $(INCLUDE_DIR)/nls.mk
define Package/bluez-tools
SECTION:=Utilities
CATEGORY:=Utilities
DEPENDS:=+bluez-daemon +glib2
TITLE:=Bluetooth tools
URL:=https://github.com/khvzak/bluez-tools
endef
define Package/bluez-tools/description
Bluetooth tools for bluez daemon. This will install bt-agent only!
endef
define Package/bluez-tools/conffiles
/etc/config/btagent
endef
define Package/bluez-tools/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/btagent.init $(1)/etc/init.d/btagent
$(INSTALL_DIR) $(1)/etc/config
$(CP) ./files/btagent.cfg $(1)/etc/config/btagent
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/bt-agent $(1)/usr/bin/
endef
$(eval $(call BuildPackage,bluez-tools))