2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://www.infodrom.org
/projects
/cgilib
/download
17 PKG_MD5SUM
:=5187ba11b2ec165b6c5b6629087733b0
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
26 TITLE
:=Simple CGI Library
27 URL
:=http
://www.infodrom.org
/projects
/cgilib
/
30 define Build
/Configure
33 TARGET_CFLAGS
+= $(FPIC
)
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
38 OFLAGS
="$(TARGET_CFLAGS)" \
42 define Build
/InstallDev
43 mkdir
-p
$(1)/usr
/include
44 $(CP
) $(PKG_BUILD_DIR
)/cgi.h
$(1)/usr
/include/
46 $(CP
) $(PKG_BUILD_DIR
)/libcgi.
{a
,so
*} $(1)/usr
/lib
/
49 define Package
/cgilib
/install
50 $(INSTALL_DIR
) $(1)/usr
/lib
51 $(CP
) $(PKG_BUILD_DIR
)/libcgi.so.
* $(1)/usr
/lib
/
54 $(eval
$(call BuildPackage
,cgilib
))