summaryrefslogtreecommitdiffhomepage
path: root/contrib/package/ucode-mod-html/Makefile
blob: 4ed21738f5692a2e7e319482ce97dbbb86b914dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include $(TOPDIR)/rules.mk

PKG_NAME:=ucode-mod-html
PKG_RELEASE:=1
PKG_LICENSE:=ISC
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>

include $(INCLUDE_DIR)/package.mk

define Package/ucode-mod-html
  SECTION:=utils
  CATEGORY:=Utilities
  TITLE:=ucode HTML utility library
  DEPENDS:=+libucode
endef

define Package/ucode-mod-html/install
	$(INSTALL_DIR) $(1)/usr/lib/ucode
	$(CP) $(PKG_BUILD_DIR)/html.so $(1)/usr/lib/ucode/
endef

define Build/Configure
endef

define Build/Compile
	$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(FPIC) \
		-Wall -ffunction-sections -Wl,--gc-sections -shared \
		-o $(PKG_BUILD_DIR)/html.so $(PKG_BUILD_DIR)/html.c
endef

$(eval $(call BuildPackage,ucode-mod-html))