3 include $(TOPDIR)/rules.mk
8 PKG_MD5SUM:=5187ba11b2ec165b6c5b6629087733b0
10 PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 include $(TOPDIR)/package/rules.mk
18 $(eval $(call PKG_template,CGILIB,cgilib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20 $(PKG_BUILD_DIR)/.configured:
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 $(TARGET_CONFIGURE_OPTS) \
26 OFLAGS="$(TARGET_CFLAGS)" \
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)
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/
43 install-dev: $(STAGING_DIR)/usr/lib/libcgi.so
47 $(STAGING_DIR)/usr/include/cgi.h \
48 $(STAGING_DIR)/usr/lib/libcgi.{a,so*} \