reorganize/rationalize/format package menuconfig,
[openwrt.git] / openwrt / 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)/.built:
25 $(MAKE) -C $(PKG_BUILD_DIR) \
26 extra_defs="-DUSE_PTHREAD_MUTEX " \
27 CC="$(TARGET_CC)" \
28 ARCH="$(ARCH)" \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 modules all
31 touch $@
32
33 $(IPKG_SER):
34 mkdir -p $(IDIR_SER)/usr/sbin
35 cp -a $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_SER)/usr/sbin/
36 -$(STRIP) $(IDIR_SER)/usr/sbin/*
37 cp -a $(PKG_BUILD_DIR)/scripts/sc $(IDIR_SER)/usr/sbin/serctl
38 mkdir -p $(IDIR_SER)/usr/lib/ser/modules
39 (cd $(PKG_BUILD_DIR);\
40 cp -a $(SER_MODULE_FILES) $(IDIR_SER)/usr/lib/ser/modules/; \
41 )
42 $(STRIP) $(IDIR_SER)/usr/lib/ser/modules/*
43 mkdir -p $(IDIR_SER)/etc/ser
44 cp -a $(PKG_BUILD_DIR)/etc/ser.cfg $(IDIR_SER)/etc/ser/
45 $(IPKG_BUILD) $(IDIR_SER) $(PACKAGE_DIR)
46
This page took 0.040977 seconds and 5 git commands to generate.