source: freewrt/package/mini_sendmail/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: 917 bytes
Line 
1# $Id: Makefile 1269 2005-06-17 06:29:08Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=mini-sendmail
6PKG_VERSION:=1.3.5
7PKG_RELEASE:=1
8PKG_MD5SUM:=fff344184e98cff0ea4d817da9d29383
9
10PKG_SOURCE_URL:=http://www.acme.com/software/mini_sendmail/
11PKG_SOURCE:=mini_sendmail-$(PKG_VERSION).tar.gz
12
13WRKBUILD:=${WRKDIR}/mini_sendmail-$(PKG_VERSION)
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,MINI_SENDMAIL,mini-sendmail,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19
20$(WRKBUILD)/.configured:
21 touch $@
22
23$(WRKBUILD)/.built:
24 $(MAKE) -C $(WRKBUILD) \
25 CC=$(TARGET_CC) \
26 OFLAGS="$(TARGET_CFLAGS)" \
27 all
28 touch $@
29
30$(IPKG_MINI_SENDMAIL):
31 install -d -m0755 $(IDIR_MINI_SENDMAIL)/usr/sbin
32 install -m0755 $(WRKBUILD)/mini_sendmail $(IDIR_MINI_SENDMAIL)/usr/sbin/
33 ln -sf mini_sendmail $(IDIR_MINI_SENDMAIL)/usr/sbin/sendmail
34 $(RSTRIP) $(IDIR_MINI_SENDMAIL)
35 $(IPKG_BUILD) $(IDIR_MINI_SENDMAIL) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.