2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dirk Chang
<dirk@kooiot.com
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=https
://github.com
/keplerproject
/md5.git
19 PKG_SOURCE_VERSION
:=024b65738b4434860777fc43d7cacaefea29ec60
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/lua-md5
31 URL
:=https
://github.com
/keplerproject
/md5
35 define Package
/lua-md5
/description
36 MD5 offers basic cryptographic facilities for Lua
39 TARGET_CFLAGS
+= $(FPIC
)
41 # add make variable overrides here
44 define Build
/Configure
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 PREFIX
="$(STAGING_DIR)/usr" \
50 LUA_LIBDIR
="$(STAGING_DIR)/usr/lib/lua" \
52 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
53 PREFIX
="$(STAGING_DIR)/usr" \
54 LUA_LIBDIR
="$(STAGING_DIR)/usr/lib/lua" \
55 LIB_OPTION
="-shared" \
56 CC
="$(TARGET_CROSS)gcc" \
57 CFLAGS
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \
62 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
63 LUA_LIBDIR
="$(PKG_INSTALL_DIR)/usr/lib/lua" \
64 LUA_DIR
="$(PKG_INSTALL_DIR)/usr/lib/lua" \
68 define Package
/lua-md5
/install
69 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
70 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/src
/md5.lua
$(1)/usr
/lib
/lua
71 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
/md5
72 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/core.so
$(1)/usr
/lib
/lua
/md5
/core.so
75 $(eval
$(call BuildPackage
,lua-md5
))