phidget21: add missing dependency
[openwrt/svn-archive/archive.git] / libs / cgilib / Makefile
1 #
2 # Copyright (C) 2006-2009 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.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
16 PKG_MD5SUM:=2c7053f58dfb06f7a80a112797ed7e86
17
18 PKG_FIXUP:=autoreconf
19 LIBTOOL="$(STAGING_DIR)/host/bin/libtool"
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 TARGET_CFLAGS += $(FPIC)
31
32 define Build/Compile
33 $(MAKE) -C $(PKG_BUILD_DIR) \
34 $(TARGET_CONFIGURE_OPTS) \
35 OFLAGS="$(TARGET_CFLAGS)" \
36 DESTDIR="$(PKG_INSTALL_DIR)" \
37 LIBTOOL="$(LIBTOOL)" \
38 install
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/cgi.h $(1)/usr/include/
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcgi.{a,so*} $(1)/usr/lib/
46 endef
47
48 define Package/cgilib/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcgi.so.* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,cgilib))