diff options
Diffstat (limited to 'contrib/package/ucode-mod-html/Makefile')
-rw-r--r-- | contrib/package/ucode-mod-html/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/contrib/package/ucode-mod-html/Makefile b/contrib/package/ucode-mod-html/Makefile new file mode 100644 index 0000000000..4ed21738f5 --- /dev/null +++ b/contrib/package/ucode-mod-html/Makefile @@ -0,0 +1,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)) |