3c773be63056d74f5bdc73838898507e76a4a05d
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cgilib
11 PKG_VERSION:=0.5
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
16 PKG_MD5SUM:=5187ba11b2ec165b6c5b6629087733b0
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/cgilib
21 SECTION:=libs
22 CATEGORY:=Libraries
23 TITLE:=Simple CGI Library
24 URL:=http://www.infodrom.org/projects/cgilib/
25 endef
26
27 define Build/Configure
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 $(TARGET_CONFIGURE_OPTS) \
35 OFLAGS="$(TARGET_CFLAGS)" \
36 all
37 endef
38
39 define Build/InstallDev
40 mkdir -p $(1)/usr/include
41 $(CP) $(PKG_BUILD_DIR)/cgi.h $(1)/usr/include/
42 mkdir -p $(1)/usr/lib
43 $(CP) $(PKG_BUILD_DIR)/libcgi.{a,so*} $(1)/usr/lib/
44 endef
45
46 define Package/cgilib/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_BUILD_DIR)/libcgi.so.* $(1)/usr/lib/
49 endef
50
51 $(eval $(call BuildPackage,cgilib))