source: freewrt/package/cgilib/Makefile@ d419478

freewrt_1_0 freewrt_2_0
Last change on this file since d419478 was d419478, checked in by Thorsten Glaser <tg@…>, 19 years ago
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# $Id: Makefile 3112 2006-02-01 23:53:19Z mbm $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=cgilib
6PKG_VERSION:=0.5
7PKG_RELEASE:=1
8PKG_MD5SUM:=5187ba11b2ec165b6c5b6629087733b0
9
10PKG_SOURCE_URL:=http://www.infodrom.org/projects/cgilib/download
11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12
13
14include $(TOPDIR)/package/rules.mk
15
16$(eval $(call PKG_template,CGILIB,cgilib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18$(WRKBUILD)/.configured:
19 touch $@
20
21$(WRKBUILD)/.built: $(WRKBUILD)/.configured
22 $(MAKE) -C $(WRKBUILD) \
23 $(TARGET_CONFIGURE_OPTS) \
24 OFLAGS="$(TARGET_CFLAGS)" \
25 all
26 touch $@
27
28$(IPKG_CGILIB):
29 install -d -m0755 $(IDIR_CGILIB)/usr/lib
30 $(CP) $(WRKBUILD)/libcgi.so.* $(IDIR_CGILIB)/usr/lib/
31 $(RSTRIP) $(IDIR_CGILIB)
32 $(IPKG_BUILD) $(IDIR_CGILIB) $(PACKAGE_DIR)
33
34$(STAGING_DIR)/usr/lib/libcgi.so: $(WRKBUILD)/.built
35 mkdir -p $(STAGING_DIR)/usr/include
36 $(CP) $(WRKBUILD)/cgi.h $(STAGING_DIR)/usr/include/
37 mkdir -p $(STAGING_DIR)/usr/lib
38 $(CP) $(WRKBUILD)/libcgi.{a,so*} $(STAGING_DIR)/usr/lib/
39 touch $@
40
41install-dev: $(STAGING_DIR)/usr/lib/libcgi.so
42uninstall-dev:
43 rm -rf \
44 $(STAGING_DIR)/usr/include/cgi.h \
45 $(STAGING_DIR)/usr/lib/libcgi.{a,so*} \
46
47compile-targets: install-dev
48clean-targets: uninstall-dev
Note: See TracBrowser for help on using the repository browser.