contrib: introduce ucode-mod-html
[project/luci.git] / contrib / package / ucode-mod-html / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ucode-mod-html
4 PKG_RELEASE:=1
5 PKG_LICENSE:=ISC
6 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
7
8 include $(INCLUDE_DIR)/package.mk
9
10 define Package/ucode-mod-html
11 SECTION:=utils
12 CATEGORY:=Utilities
13 TITLE:=ucode HTML utility library
14 DEPENDS:=+libucode
15 endef
16
17 define Package/ucode-mod-html/install
18 $(INSTALL_DIR) $(1)/usr/lib/ucode
19 $(CP) $(PKG_BUILD_DIR)/html.so $(1)/usr/lib/ucode/
20 endef
21
22 define Build/Configure
23 endef
24
25 define Build/Compile
26 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
27 -Wall -ffunction-sections -Wl,--gc-sections -shared \
28 -o $(PKG_BUILD_DIR)/html.so $(PKG_BUILD_DIR)/html.c
29 endef
30
31 $(eval $(call BuildPackage,ucode-mod-html))