add psybnc package (thanks to Peter Feuerer)
[openwrt.git] / openwrt / package / psybnc / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=psybnc
4 PKG_VERSION:=2.3.2-7
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=4b893a92f914813450e0921b2894ad6c
7
8 PKG_SOURCE_URL:=http://www.psybnc.info/download/beta/
9 PKG_SOURCE:=psyBNC-$(PKG_VERSION).tar.gz
10 PKG_CAT:=zcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
13
14 include $(TOPDIR)/package/rules.mk
15
16 $(eval $(call PKG_template,PSYBNC,psybnc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
17
18 $(PKG_BUILD_DIR)/.built:
19 $(MAKE) -C $(PKG_BUILD_DIR) \
20 CC="$(TARGET_CC)" \
21 CFLAGS="$(TARGET_CFLAGS)" \
22 HOSTCC="$(HOSTCC)" \
23 all
24 touch $@
25
26 $(IPKG_PSYBNC):
27 install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/lang/
28 install -d -m0755 $(IDIR_PSYBNC)/usr/share/psybnc/log/
29 install -d -m0755 $(IDIR_PSYBNC)/usr/sbin/
30 install -m0755 $(PKG_BUILD_DIR)/psybnc $(IDIR_PSYBNC)/usr/share/psybnc/
31 install -m0600 $(PKG_BUILD_DIR)/psybnc.conf $(IDIR_PSYBNC)/usr/share/psybnc/
32 install -m0644 $(PKG_BUILD_DIR)/lang/english.lng $(IDIR_PSYBNC)/usr/share/psybnc/lang/
33 install -m0755 $(PKG_BUILD_DIR)/psybnc.sh $(IDIR_PSYBNC)/usr/sbin/psybnc
34 $(RSTRIP) $(IDIR_PSYBNC)
35 $(IPKG_BUILD) $(IDIR_PSYBNC) $(PACKAGE_DIR)
36
37 mostlyclean:
38 -$(MAKE) -C $(PKG_BUILD_DIR) clean
39 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.038503 seconds and 5 git commands to generate.