port of liblo

A lightweight Open Sound Control implementation

http://liblo.sourceforge.net/

Ref #47
This commit is contained in:
Emery Hemingway
2016-10-30 11:48:29 +01:00
committed by Norman Feske
parent 9c917acc37
commit aa91eb1857
5 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
LIBLO_PORT_DIR := $(call select_from_ports,liblo)
INC_DIR += $(LIBLO_PORT_DIR)/include

20
lib/mk/liblo.mk Normal file
View File

@@ -0,0 +1,20 @@
include $(REP_DIR)/lib/import/import-liblo.mk
LIBLO_SRC_DIR := $(LIBLO_PORT_DIR)/src/lib/liblo/src
LIBS := libc
CC_OPT += \
-DHAVE_CONFIG_H \
-D_POSIX_C_SOURCE=200112 \
-D__BSD_VISIBLE \
INC_DIR += \
$(REP_DIR)/src/lib/liblo \
$(LIBLO_PORT_DIR)/include/lo \
$(LIBLO_PORT_DIR)/include \
SRC_C := \
address.c send.c message.c server.c method.c \
blob.c bundle.c timetag.c pattern_match.c version.c
vpath %.c $(LIBLO_SRC_DIR)

1
ports/liblo.hash Normal file
View File

@@ -0,0 +1 @@
f1d81edaaa6fcb01a431a90eabcce701cc1be936

23
ports/liblo.port Normal file
View File

@@ -0,0 +1,23 @@
LICENSE := GPLv3
VERSION := 0.28
DOWNLOADS := liblo.archive
URL(liblo) := http://downloads.sourceforge.net/liblo/liblo-$(VERSION).tar.gz
SHA(liblo) := 949d5f0c9919741c67602514786b9c7366fa001b
DIR(liblo) := src/lib/liblo
DIRS := include/lo
DIR_CONTENT(include/lo) := src/lib/liblo/lo/*.h
_dirs: include/lo/lo.h src/lib/liblo/lo/lo_endian.h
@$(MSG_GENERATE)$(notdir $@)
$(VERBOSE)sed -i '/in6_addr/d' src/lib/liblo/src/lo_types_internal.h
include/lo/lo.h: src/lib/liblo/lo/lo.h.in $(DOWNLOADS)
@$(MSG_GENERATE)$(notdir $@)
$(VERBOSE)mkdir -p include/lo
$(VERBOSE)sed 's/@ENABLE_THREADS@/0/' $< > $@
src/lib/liblo/lo/lo_endian.h: src/lib/liblo/lo/lo_endian.h.in $(DOWNLOADS)
@$(MSG_GENERATE)$(notdir $@)
$(VERBOSE)sed 's/@LO_BIGENDIAN@/0/' $< > $@

14
src/lib/liblo/config.h Normal file
View File

@@ -0,0 +1,14 @@
#define PACKAGE_NAME "liblo"
#define PACKAGE_VERSION "0.28"
#define VERSION PACKAGE_VERSION
#define LO_SO_VERSION {9, 0, 2}
#define HAVE_POLL
#define HAVE_SELECT
/* #undef HAVE_GETIFADDRS */
#define HAVE_INET_PTON
#define HAVE_LIBPTHREAD 1
#define ENABLE_THREADS
#define HAVE_SYS_SOCKET_H
#define PRINTF_LL "ll"