more tristate -> prompt fixes
[openwrt.git] / package / palantir / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=palantir
6 PKG_VERSION:=2.6
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=8e4d20e7f7fad26d7447483c68894ace
9
10 PKG_SOURCE_URL:=http://www.fastpath.it/products/palantir/pub/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 export CPPFLAGS=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
18 export LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
19
20 include $(TOPDIR)/package/rules.mk
21
22 $(eval $(call PKG_template,PALANTIR,palantir,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24 $(PKG_BUILD_DIR)/.configured:
25 touch $@
26
27 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
28 rm -rf $(PKG_INSTALL_DIR)
29 mkdir -p $(PKG_INSTALL_DIR)/usr
30 $(MAKE) -C $(PKG_BUILD_DIR)/server/libgsm \
31 $(TARGET_CONFIGURE_OPTS) \
32 CCINC="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
33 lib/libgsm.a
34 $(MAKE) -C $(PKG_BUILD_DIR)/server \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="-Wall -D_REENTRANT $(TARGET_CFLAGS)" \
37 palantir
38 touch $@
39
40 $(IPKG_PALANTIR):
41 install -d -m0755 $(IDIR_PALANTIR)/etc
42 install -m0644 $(PKG_BUILD_DIR)/server/palantir-mips.conf.sample $(IDIR_PALANTIR)/etc/palantir.conf
43 install -d -m0755 $(IDIR_PALANTIR)/usr/sbin
44 install -m0755 $(PKG_BUILD_DIR)/server/palantir $(IDIR_PALANTIR)/usr/sbin/
45 $(RSTRIP) $(IDIR_PALANTIR)
46 $(IPKG_BUILD) $(IDIR_PALANTIR) $(PACKAGE_DIR)
This page took 0.040323 seconds and 5 git commands to generate.