Files
packages/libs/liblo/Makefile
T
Yanase Yuki b0d8a3d384 treewide: cleanup URLs
This commit converts plain HTTP URLs to HTTPS, and updates
old or outdated URLs.

Signed-off-by: Yanase Yuki <dev@zpc.st>
2026-05-08 22:28:27 +02:00

75 lines
1.7 KiB
Makefile

#
# Copyright (C) 2010-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=liblo
PKG_VERSION:=0.34
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/liblo
PKG_HASH:=69aa0cd365dba5ea7799b850a7da659ad303e6074bbd67f4ab84e4d6f5f6c3a4
PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_LICENSE_FILES:=COPYING
CMAKE_SOURCE_SUBDIR:=cmake
PKG_CONFIG_DEPENDS:=CONFIG_PACKAGE_liblo-utils
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/liblo/Default
TITLE:=Lightweight Open Sound Control (OSC)
URL:=https://liblo.sourceforge.net/
endef
define Package/liblo
$(call Package/liblo/Default)
SECTION:=libs
CATEGORY:=Libraries
SUBMENU:=Sound
TITLE+= library
DEPENDS:= +libpthread
endef
define Package/liblo-utils
$(call Package/liblo/Default)
CATEGORY:=Sound
TITLE+= utilities
DEPENDS:= +liblo
endef
CMAKE_OPTIONS += \
-DWITH_TOOLS=O$(if $(CONFIG_PACKAGE_liblo-utils),N,FF) \
-DWITH_TESTS=OFF \
-DWITH_EXAMPLES=OFF \
-DWITH_CPP_TESTS=OFF \
-DWITH_STATIC=OFF \
-DTHREADING=ON
define Build/InstallDev
$(call Build/InstallDev/cmake,$(1))
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/liblo.pc
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/liblo.pc
endef
define Package/liblo/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liblo.so.* $(1)/usr/lib/
endef
define Package/liblo-utils/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/osc{dump,send} $(1)/usr/bin/
endef
$(eval $(call BuildPackage,liblo))
$(eval $(call BuildPackage,liblo-utils))