2006-10-30 13:51:50 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
2006-07-01 10:25:37 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cgilib
|
|
|
|
PKG_VERSION:=0.5
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-10-30 13:51:50 +00:00
|
|
|
PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
|
|
|
|
PKG_MD5SUM:=5187ba11b2ec165b6c5b6629087733b0
|
2006-07-01 10:25:37 +00:00
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/cgilib
|
2006-10-30 13:51:50 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Simple CGI Library
|
|
|
|
URL:=http://www.infodrom.org/projects/cgilib/
|
2006-07-01 10:25:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
OFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/cgi.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/libcgi.{a,so*} $(STAGING_DIR)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
|
|
|
rm -rf \
|
2006-10-30 13:51:50 +00:00
|
|
|
$(STAGING_DIR)/usr/include/cgi.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libcgi.{a,so*}
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/cgilib/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-30 13:51:50 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libcgi.so.* $(1)/usr/lib/
|
2006-07-01 10:25:37 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,cgilib))
|