diff --git a/lib/import/import-liblo.mk b/lib/import/import-liblo.mk new file mode 100644 index 0000000..2fbf0a1 --- /dev/null +++ b/lib/import/import-liblo.mk @@ -0,0 +1,3 @@ +LIBLO_PORT_DIR := $(call select_from_ports,liblo) + +INC_DIR += $(LIBLO_PORT_DIR)/include diff --git a/lib/mk/liblo.mk b/lib/mk/liblo.mk new file mode 100644 index 0000000..22be468 --- /dev/null +++ b/lib/mk/liblo.mk @@ -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) diff --git a/ports/liblo.hash b/ports/liblo.hash new file mode 100644 index 0000000..7d3daea --- /dev/null +++ b/ports/liblo.hash @@ -0,0 +1 @@ +f1d81edaaa6fcb01a431a90eabcce701cc1be936 diff --git a/ports/liblo.port b/ports/liblo.port new file mode 100644 index 0000000..451e70f --- /dev/null +++ b/ports/liblo.port @@ -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/' $< > $@ diff --git a/src/lib/liblo/config.h b/src/lib/liblo/config.h new file mode 100644 index 0000000..de4c703 --- /dev/null +++ b/src/lib/liblo/config.h @@ -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"