diff options
author | David Anders <dave123@abcsinc.com> | 2006-01-23 19:49:38 +0000 |
---|---|---|
committer | David Anders <dave123@abcsinc.com> | 2006-01-23 19:49:38 +0000 |
commit | ba72c1a6ab45252ef2f1961b1ecf4e112c98c1d7 (patch) | |
tree | 07ef5490423bf96597dcf80b8ba81c6afae50ccd /package | |
parent | 7b4c85567443eed1a07fe050e0b0552d4906ab37 (diff) | |
download | buildroot-novena-ba72c1a6ab45252ef2f1961b1ecf4e112c98c1d7.tar.gz buildroot-novena-ba72c1a6ab45252ef2f1961b1ecf4e112c98c1d7.zip |
added package libcgi per case 0000298
Diffstat (limited to 'package')
-rw-r--r-- | package/Config.in | 1 | ||||
-rw-r--r-- | package/libcgi/Config.in | 12 | ||||
-rw-r--r-- | package/libcgi/libcgi.mk | 59 |
3 files changed, 72 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in index bfe8db139..fa055f0da 100644 --- a/package/Config.in +++ b/package/Config.in @@ -53,6 +53,7 @@ source "package/iproute2/Config.in" source "package/iptables/Config.in" source "package/jpeg/Config.in" source "package/less/Config.in" +source "package/libcgi/Config.in" source "package/libelf/Config.in" source "package/libfloat/Config.in" source "package/libglib12/Config.in" diff --git a/package/libcgi/Config.in b/package/libcgi/Config.in new file mode 100644 index 000000000..ee9f61582 --- /dev/null +++ b/package/libcgi/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_LIBCGI + bool "libcgi" + default n + help + LibCGI is a library written from scratch to easily make + CGI applications in C. + + There are a lot of functions like string manipulation, + session and cookie support, GET and POST methods manipulation + etc..., to help you to quickly write powerful CGI programs. + + http://libcgi.sourceforge.net/ diff --git a/package/libcgi/libcgi.mk b/package/libcgi/libcgi.mk new file mode 100644 index 000000000..dc40dad3a --- /dev/null +++ b/package/libcgi/libcgi.mk @@ -0,0 +1,59 @@ +############################################################# +# +# libcgi +# +############################################################# +LIBCGI_VERSION:=1.0 +LIBCGI_SOURCE:=libcgi-$(LIBCGI_VERSION).tar.gz +LIBCGI_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/libcgi +LIBCGI_DIR:=$(BUILD_DIR)/libcgi-$(LIBCGI_VERSION) +LIBCGI_LIBRARY:=libcgi +LIBCGI_TARGET_LIBRARY:=usr/bin/libcgi + +$(DL_DIR)/$(LIBCGI_SOURCE): + $(WGET) -P $(DL_DIR) $(LIBCGI_SITE)/$(LIBCGI_SOURCE) + +$(LIBCGI_DIR)/.source: $(DL_DIR)/$(LIBCGI_SOURCE) + zcat $(DL_DIR)/$(LIBCGI_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + touch $(LIBCGI_DIR)/.source + +$(LIBCGI_DIR)/.configured: $(LIBCGI_DIR)/.source + (cd $(LIBCGI_DIR); \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --sysconfdir=/etc \ + ); + touch $(LIBCGI_DIR)/.configured; + +$(LIBCGI_DIR)/$(LIBCGI_LIBRARY): $(LIBCGI_DIR)/.configured + $(MAKE) CC=$(TARGET_CC) -C $(LIBCGI_DIR) + +$(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY): $(LIBCGI_DIR)/$(LIBCGI_LIBRARY) + cp $(LIBCGI_DIR)/src/libcgi.so $(TARGET_DIR)/usr/lib/ + +libcgi: uclibc $(TARGET_DIR)/$(LIBCGI_TARGET_LIBRARY) + +libcgi-source: $(DL_DIR)/$(LIBCGI_SOURCE) + +libcgi-clean: + rm $(TARGET_DIR)/usr/lib/libcgi.so + + -$(MAKE) -C $(LIBCGI_DIR) clean + +libcgi-dirclean: + rm -rf $(LIBCGI_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_LIBCGI)),y) + TARGETS+=libcgi +endif + |