source: freewrt/package/palantir/Makefile@ ca629a6

freewrt_1_0 freewrt_2_0
Last change on this file since ca629a6 was c8b93bd, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

major package Makefile cleanup. remove mostly-clean, add licence header, always use RSTRIP varibale for stripping, rename some init scripts, indent

git-svn-id: svn://www.freewrt.org/trunk/freewrt@600 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.4 KB
Line 
1# $FreeWRT$
2#-
3# This file is part of the FreeWRT project. FreeWRT is copyrighted
4# material, please see the LICENCE file in the top-level directory
5# or at http://www.freewrt.org/licence for details.
6
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:= palantir
10PKG_VERSION:= 2.6
11PKG_RELEASE:= 1
12PKG_MD5SUM:= a40863d7079ca5e7b1a0da0fd4dbd5f0
13
14PKG_SOURCE_URL:= http://www.fastpath.it/products/palantir/pub/
15PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tgz
16
17export CPPFLAGS=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
18export LDFLAGS=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
19
20include $(TOPDIR)/mk/package.mk
21
22$(eval $(call PKG_template,PALANTIR,palantir,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
23
24$(WRKBUILD)/.configured:
25 touch $@
26
27$(WRKBUILD)/.built: $(WRKBUILD)/.configured
28 rm -rf $(WRKINST)
29 mkdir -p $(WRKINST)/usr
30 $(MAKE) -C $(WRKBUILD)/server/libgsm \
31 $(TARGET_CONFIGURE_OPTS) \
32 CCINC="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
33 lib/libgsm.a
34 $(MAKE) -C $(WRKBUILD)/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 $(WRKBUILD)/server/palantir-mips.conf.sample $(IDIR_PALANTIR)/etc/palantir.conf
43 install -d -m0755 $(IDIR_PALANTIR)/usr/sbin
44 install -m0755 $(WRKBUILD)/server/palantir $(IDIR_PALANTIR)/usr/sbin/
45 $(RSTRIP) $(IDIR_PALANTIR)
46 $(IPKG_BUILD) $(IDIR_PALANTIR) $(PACKAGE_DIR)
Note: See TracBrowser for help on using the repository browser.