From 24f0a56aff4ea3a7c8fa46bf3372dd8cad24f7ae Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Wed, 24 Apr 2019 14:16:41 +0300 Subject: [PATCH] Add a basic rockspec that plays well with Makefile --- Makefile | 6 ++++-- pulseaudio-scm-1.rockspec | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 pulseaudio-scm-1.rockspec diff --git a/Makefile b/Makefile index 5b3a99a..33f7bea 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ INCS := $(shell pkg-config --cflags $(PKGS)) -I./ CFLAGS := -std=gnu99 -ggdb -W -Wall -Wextra -fPIC -pedantic $(INCS) $(CFLAGS) LIBS := $(shell pkg-config --libs $(PKGS)) -LDFLAGS := $(LIBS) $(LDFLAGS) -Wl,--export-dynamic +LDFLAGS := $(LIBS) $(LDFLAGS) $(LIBFLAG) -Wl,--export-dynamic SRCS = $(wildcard *.c) HEADS = $(wildcard *.h) @@ -23,5 +23,7 @@ $(OBJS): $(HEADS) clean: rm -f pulseaudio.so $(OBJS) -all: pulseaudio.so +install: pulseaudio.so + cp pulseaudio.so $(INST_LIBDIR) +all: pulseaudio.so diff --git a/pulseaudio-scm-1.rockspec b/pulseaudio-scm-1.rockspec new file mode 100644 index 0000000..889ab41 --- /dev/null +++ b/pulseaudio-scm-1.rockspec @@ -0,0 +1,37 @@ +package = "pulseaudio" +version = "scm-1" +source = { + url = "git://https://gitlab.com/doronbehar/lua-pulseaudio_cli", +} +description = { + summary = "Bindings to libpulse", + homepage = "https://github.com/liaonau/lua-pulseaudio", + license = "Apache v2.0" +} +supported_platforms = { + "linux" +} +dependencies = { + "lua >= 5.3", +} +external_dependencies = { + +} +build = { + type = "make", + build_variables = { + CFLAGS="$(CFLAGS)", + LIBFLAG="$(LIBFLAG)", + LUA_LIBDIR="$(LUA_LIBDIR)", + LUA_BINDIR="$(LUA_BINDIR)", + LUA_INCDIR="$(LUA_INCDIR)", + LUA="$(LUA)", + }, + install_variables = { + INST_PREFIX="$(PREFIX)", + INST_BINDIR="$(BINDIR)", + INST_LIBDIR="$(LIBDIR)", + INST_LUADIR="$(LUADIR)", + INST_CONFDIR="$(CONFDIR)", + }, +}