blob: 8ec68da5291e31c0ebb3dcfb1f2ae95cfbe9cc8a [file] [log] [blame]
#
# Copyright (C) 2006-2014 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:=libcgi
PKG_VERSION:=1.0
#PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
#PKG_SOURCE_URL:=https://s3.amazonaws.com/json-c_releases/releases/
#PKG_MD5SUM:=aa02367d2f7a830bf1e3376f77881e98
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING
#PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
#PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
#USE_SOURCE_DIR:=$(TOPDIR)/marvell/services/web/cgi/libs/libcgi/$(PKG_NAME)-$(PKG_VERSION)
CGI_SOURCE_DIR:=$(TOPDIR)/marvell/services/web/cgi/libs/libcgi/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS += $(FPIC)
define Package/libcgi
SECTION:=libs
CATEGORY:=Libraries
TITLE:= CGI library for C
endef
#define Build/Prepare
# mkdir -p $(PKG_BUILD_DIR)
# cp -rf $(CGI_SOURCE_DIR)/* $(PKG_BUILD_DIR)
#endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/src/cgi.h $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/src/${PKG_NAME}.{a,so*} $(1)/usr/lib/
endef
define Package/libcgi/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/src/${PKG_NAME}.so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcgi))