update motion package, add a patch to honor CPPFLAGS,
[openwrt.git] / openwrt / package / sipp / Makefile
1 # $Id: Makefile 1146 2005-06-05 13:32:28Z florian $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=sipp
6 PKG_VERSION:=1.0
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=8866e9af0d3bc29e91ebb6eab89a7f1f
9
10 PKG_SOURCE_URL:=@SF/sipp
11 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,SIPP,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21 touch $@
22
23 $(PKG_BUILD_DIR)/.built:
24 $(MAKE) -C $(PKG_BUILD_DIR) \
25 CC=$(TARGET_CC) \
26 CC_linux=$(TARGET_CC) \
27 CPP_linux=$(TARGET_CC) \
28 CCLINK_linux=$(TARGET_CC) \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 CPPFLAGS_linux="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -fno-builtin -nostdinc++" \
31 LFLAGS_linux="-nodefaultlibs -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
32 LIBS="-luClibc++ -lc -lm -lgcc -lpthread -ldl -lncurses" \
33 STAGING_DIR=$(STAGING_DIR) \
34 all
35 touch $@
36
37 $(IPKG_SIPP):
38 mkdir -p $(IDIR_SIPP)/usr/sbin
39 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_SIPP)/usr/sbin/
40 $(STRIP) $(IDIR_SIPP)/usr/sbin/*
41 $(IPKG_BUILD) $(IDIR_SIPP) $(PACKAGE_DIR)
42
43 mostlyclean:
44 $(MAKE) -C $(PKG_BUILD_DIR) clean
45 rm -f $(PKG_BUILD_DIR)/.built
This page took 0.050819 seconds and 5 git commands to generate.