openwrt_archive/libs/cgilib/Makefile
Lars-Peter Clausen b689ac3d34 [packages] Add missing libtool fixups
SVN-Revision: 19714
2010-02-19 00:14:01 +00:00

54 lines
1.2 KiB
Makefile

#
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=cgilib
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_MD5SUM:=2c7053f58dfb06f7a80a112797ed7e86
PKG_FIXUP:=libtool
LIBTOOL="$(STAGING_DIR)/host/bin/libtool"
include $(INCLUDE_DIR)/package.mk
define Package/cgilib
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Simple CGI Library
URL:=http://www.infodrom.org/projects/cgilib/
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
$(TARGET_CONFIGURE_OPTS) \
OFLAGS="$(TARGET_CFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
LIBTOOL="$(LIBTOOL)" \
install
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/cgi.h $(1)/usr/include/
$(INSTALL_DIR) $(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
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcgi.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,cgilib))