source: freewrt/package/psybnc/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 2749 2005-12-21 13:35:15Z nico $
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=psybnc
6PKG_VERSION:=2.3.2-7
7PKG_RELEASE:=1
8PKG_MD5SUM:=4b893a92f914813450e0921b2894ad6c
9
10PKG_SOURCE_URL:=http://www.psybnc.net/
11PKG_SOURCE:=psyBNC-$(PKG_VERSION).tar.gz
12
13WRKBUILD:=${WRKDIR}/$(PKG_NAME)
14
15include $(TOPDIR)/package/rules.mk
16
17$(eval $(call PKG_template,PSYBNC,psybnc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19$(WRKBUILD)/.configured:
20 touch $@
21
22$(WRKBUILD)/.built:
23 $(MAKE) -C $(WRKBUILD) \
24 CC="$(TARGET_CC)" \
25 CFLAGS="$(TARGET_CFLAGS)" \
26 HOSTCC="$(HOSTCC)" \
27 all
28 touch $@
29
30$(IPKG_PSYBNC):
31 install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/lang/
32 install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/log/
33 install -d -m0755 $(IDIR_PSYBNC)/usr/sbin/
34 install -m0755 $(WRKBUILD)/psybnc $(IDIR_PSYBNC)/usr/share/psybnc/
35 install -m0600 $(WRKBUILD)/psybnc.conf $(IDIR_PSYBNC)/usr/share/psybnc/
36 install -m0644 $(WRKBUILD)/lang/english.lng $(IDIR_PSYBNC)/usr/share/psybnc/lang/
37 install -m0755 $(WRKBUILD)/psybnc.sh $(IDIR_PSYBNC)/usr/sbin/psybnc
38 $(RSTRIP) $(IDIR_PSYBNC)
39 $(IPKG_BUILD) $(IDIR_PSYBNC) $(PACKAGE_DIR)
40
41mostlyclean:
42 -$(MAKE) -C $(WRKBUILD) clean
43 rm -f $(WRKBUILD)/.built
Note: See TracBrowser for help on using the repository browser.