3ac1f5f42f218c8feb55d430d529ffa940bbf057
[openwrt/svn-archive/archive.git] / libs / cgilib / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=cgilib
12 PKG_VERSION:=0.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
17 PKG_MD5SUM:=5187ba11b2ec165b6c5b6629087733b0
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/cgilib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Simple CGI Library
27 URL:=http://www.infodrom.org/projects/cgilib/
28 endef
29
30 define Build/Configure
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 $(TARGET_CONFIGURE_OPTS) \
36 OFLAGS="$(TARGET_CFLAGS)" \
37 all
38 endef
39
40 define Build/InstallDev
41 mkdir -p $(1)/usr/include
42 $(CP) $(PKG_BUILD_DIR)/cgi.h $(1)/usr/include/
43 mkdir -p $(1)/usr/lib
44 $(CP) $(PKG_BUILD_DIR)/libcgi.{a,so*} $(1)/usr/lib/
45 endef
46
47 define Package/cgilib/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_BUILD_DIR)/libcgi.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,cgilib))