brcm-2.6: remove old b44 support patches, integrate bcm47xx support into newest versi...
[openwrt.git] / package / ser / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ser
6 PKG_VERSION:=0.8.14
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=3e2e12c8dfbd7dad9199304093de0838
9
10 PKG_SOURCE_URL:=ftp://ftp.berlios.de/pub/ser/$(PKG_VERSION)/src
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_src.tar.gz
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,SER,ser,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 SER_MODULES := sl tm rr maxfwd usrloc registrar dbtext textops nathelper
20
21 SER_MODULE_FILES := $(foreach module,$(SER_MODULES),modules/$(module)/$(module).so)
22 SER_MODULES := $(patsubst %,modules/%,$(SER_MODULES))
23
24 $(PKG_BUILD_DIR)/.configured:
25 touch $@
26
27 $(PKG_BUILD_DIR)/.built:
28 $(MAKE) -C $(PKG_BUILD_DIR) \
29 extra_defs="-DUSE_PTHREAD_MUTEX " \
30 CC="$(TARGET_CC)" \
31 ARCH="$(ARCH)" \
32 CFLAGS="$(TARGET_CFLAGS)" \
33 modules all
34 touch $@
35
36 $(IPKG_SER):
37 mkdir -p $(IDIR_SER)/usr/sbin
38 cp -a $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_SER)/usr/sbin/
39 -$(STRIP) $(IDIR_SER)/usr/sbin/*
40 cp -a $(PKG_BUILD_DIR)/scripts/sc $(IDIR_SER)/usr/sbin/serctl
41 mkdir -p $(IDIR_SER)/usr/lib/ser/modules
42 (cd $(PKG_BUILD_DIR);\
43 cp -a $(SER_MODULE_FILES) $(IDIR_SER)/usr/lib/ser/modules/; \
44 )
45 $(STRIP) $(IDIR_SER)/usr/lib/ser/modules/*
46 mkdir -p $(IDIR_SER)/etc/ser
47 cp -a $(PKG_BUILD_DIR)/etc/ser.cfg $(IDIR_SER)/etc/ser/
48 $(IPKG_BUILD) $(IDIR_SER) $(PACKAGE_DIR)
49
This page took 0.046435 seconds and 5 git commands to generate.