Adds a new package for linotify which provides Lua bindings for inotify
Signed-off-by: Andreas Heck <ah...@gmx.de> --- diff --git a/lang/lualinotify/Makefile b/lang/lualinotify/Makefile new file mode 100644 index 0000000..1518b25 --- /dev/null +++ b/lang/lualinotify/Makefile @@ -0,0 +1,48 @@ +# +# Copyright (C) 2009-2010 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:=linotify +PKG_VERSION:=0.2 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/hoelzro/linotify/archive/ +PKG_MD5SUM:=2f4c4b46ba974276e04fd6b06c660bdf + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/lualinotify + SUBMENU:=Lua + SECTION:=lang + CATEGORY:=Languages + TITLE:=lualinotify + URL:=https://github.com/hoelzro/linotify + DEPENDS:=+lua +endef + +define Package/lualinotify/description + A Lua binding for the Linux inotify interface +endef + +define Build/Configure +endef + +MAKE_FLAGS += + +define Package/lualinotify/install + $(INSTALL_DIR) $(1)/usr/lib/lua + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/inotify.so $(1)/usr/lib/lua/inotify.so +endef + +$(eval $(call BuildPackage,lualinotify)) + + +include $(TOPDIR)/rules.mk diff --git a/lang/lualinotify/patches/010-makefile.patch b/lang/lualinotify/patches/010-makefile.patch new file mode 100644 index 0000000..991d5a3 --- /dev/null +++ b/lang/lualinotify/patches/010-makefile.patch @@ -0,0 +1,37 @@ +--- a/Makefile ++++ b/Makefile +@@ -8,18 +8,18 @@ + OMIT_FRAME_POINTER = -fomit-frame-pointer + + # Seach for lua .pc file +-LUAPKG_CMD = $(shell pkg-config --list-all | grep Lua | awk '{print $$1}') +-CFLAGS = -fPIC -O3 -Wall $(shell pkg-config "$(LUAPKG_CMD)" --cflags) +-LFLAGS = -shared $(OMIT_FRAME_POINTER) +-INSTALL_PATH = $(shell pkg-config "$(LUAPKG_CMD)" --variable=INSTALL_CMOD) ++#LUAPKG_CMD = $(shell pkg-config --list-all | grep Lua | awk '{print $$1}') ++#CFLAGS = -fPIC -O3 -Wall $(shell pkg-config "$(LUAPKG_CMD)" --cflags) ++#LFLAGS = -shared $(OMIT_FRAME_POINTER) ++#NSTALL_PATH = $(shell pkg-config "$(LUAPKG_CMD)" --variable=INSTALL_CMOD) + + ## If your system doesn't have pkg-config, comment out the previous + ## lines and uncomment and change the following ones according to your + ## building enviroment. + +-#CFLAGS = -I/usr/include/lua5.1/ -fPIC -O3 -Wall +-#LFLAGS = -shared $(OMIT_FRAME_POINTER) +-#INSTALL_PATH = /usr/lib/lua/5.1 ++CFLAGS = -fpic -O2 -Wall ++LFLAGS = -shared $(OMIT_FRAME_POINTER) ++INSTALL_PATH = /usr/lib/lua + + all: $(LIBNAME) + +@@ -30,7 +30,7 @@ + $(CC) -o $(LIBNAME) -shared $(OBJNAME) $(LFLAGS) + + install: $(LIBNAME) +- install -D -s $(LIBNAME) $(DESTDIR)$(INSTALL_PATH)/$(LIBNAME) ++ install -D $(LIBNAME) $(DESTDIR)$(INSTALL_PATH)/$(LIBNAME) + + clean: + $(RM) $(LIBNAME) $(OBJNAME) _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel