[package] update cgilib to 0.7 (#5367)
[openwrt/svn-archive/archive.git] / libs / cgilib / Makefile
index 3c773be..93c175c 100644 (file)
@@ -1,5 +1,5 @@
 #
 #
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006-2009 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cgilib
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cgilib
-PKG_VERSION:=0.5
-PKG_RELEASE:=2
+PKG_VERSION:=0.7
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
-PKG_MD5SUM:=5187ba11b2ec165b6c5b6629087733b0
+PKG_MD5SUM:=2c7053f58dfb06f7a80a112797ed7e86
 
 include $(INCLUDE_DIR)/package.mk
 
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -24,28 +24,26 @@ define Package/cgilib
   URL:=http://www.infodrom.org/projects/cgilib/
 endef
 
   URL:=http://www.infodrom.org/projects/cgilib/
 endef
 
-define Build/Configure
-endef
-
 TARGET_CFLAGS += $(FPIC)
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
                 OFLAGS="$(TARGET_CFLAGS)" \
 TARGET_CFLAGS += $(FPIC)
 
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                $(TARGET_CONFIGURE_OPTS) \
                 OFLAGS="$(TARGET_CFLAGS)" \
-                all
+               DESTDIR="$(PKG_INSTALL_DIR)" \
+                install
 endef
 
 define Build/InstallDev
        mkdir -p $(1)/usr/include
 endef
 
 define Build/InstallDev
        mkdir -p $(1)/usr/include
-       $(CP) $(PKG_BUILD_DIR)/cgi.h $(1)/usr/include/
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/cgi.h $(1)/usr/include/
        mkdir -p $(1)/usr/lib
        mkdir -p $(1)/usr/lib
-       $(CP) $(PKG_BUILD_DIR)/libcgi.{a,so*} $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcgi.{a,so*} $(1)/usr/lib/
 endef
 
 define Package/cgilib/install
        $(INSTALL_DIR) $(1)/usr/lib
 endef
 
 define Package/cgilib/install
        $(INSTALL_DIR) $(1)/usr/lib
-       $(CP) $(PKG_BUILD_DIR)/libcgi.so.* $(1)/usr/lib/
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcgi.so.* $(1)/usr/lib/
 endef
 
 $(eval $(call BuildPackage,cgilib))
 endef
 
 $(eval $(call BuildPackage,cgilib))