large build system cleanup. added some stuff to control the verbosity level, but...
[openwrt.git] / openwrt / package / cgilib / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=cgilib
6 PKG_VERSION:=0.5
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=5187ba11b2ec165b6c5b6629087733b0
9
10 PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,CGILIB,cgilib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 $(TARGET_CONFIGURE_OPTS) \
26 OFLAGS="$(TARGET_CFLAGS)" \
27 all
28 touch $@
29
30 $(IPKG_CGILIB):
31 install -d -m0755 $(IDIR_CGILIB)/usr/lib
32 cp -fpR $(PKG_BUILD_DIR)/libcgi.so.* $(IDIR_CGILIB)/usr/lib/
33 $(RSTRIP) $(IDIR_CGILIB)
34 $(IPKG_BUILD) $(IDIR_CGILIB) $(PACKAGE_DIR)
35
36 $(STAGING_DIR)/usr/lib/libcgi.so: $(PKG_BUILD_DIR)/.built
37 mkdir -p $(STAGING_DIR)/usr/include
38 cp -fpR $(PKG_BUILD_DIR)/cgi.h $(STAGING_DIR)/usr/include/
39 mkdir -p $(STAGING_DIR)/usr/lib
40 cp -fpR $(PKG_BUILD_DIR)/libcgi.{a,so*} $(STAGING_DIR)/usr/lib/
41 touch $@
42
43 install-dev: $(STAGING_DIR)/usr/lib/libcgi.so
44
45 uninstall-dev:
46 rm -rf \
47 $(STAGING_DIR)/usr/include/cgi.h \
48 $(STAGING_DIR)/usr/lib/libcgi.{a,so*} \
49
50 compile: install-dev
51 clean: uninstall-dev
This page took 0.041651 seconds and 5 git commands to generate.