summaryrefslogtreecommitdiff
path: root/package/palantir/Makefile
blob: a7e3e84fff4c060a02d192a719233b81cb513680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id$
#-
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		palantir
PKG_VERSION:=		2.7
PKG_RELEASE:=		1
PKG_MD5SUM:=		3a5b1fb340857f6d8e357bf39b77583e
MASTER_SITES:=		http://www.fastpath.it/products/palantir/pub/
DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tgz

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,PALANTIR,palantir,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))

do-build:
	mkdir -p ${WRKINST}/usr
	${MAKE} -C ${WRKBUILD}/server/libgsm \
		${TARGET_CONFIGURE_OPTS} \
		CCINC="${TCPPFLAGS}" \
		lib/libgsm.a
	${MAKE} -C ${WRKBUILD}/server \
		${TARGET_CONFIGURE_OPTS} \
		CFLAGS="-Wall -D_REENTRANT ${TCFLAGS} ${TCPPFLAGS} ${TLDFLAGS}" \
		palantir

do-install:
	${INSTALL_DIR} ${IDIR_PALANTIR}/etc
	${INSTALL_DIR} ${IDIR_PALANTIR}/usr/sbin
	${INSTALL_DATA} ${WRKBUILD}/server/palantir-mips.conf.sample \
	                ${IDIR_PALANTIR}/etc/palantir.conf
	${INSTALL_BIN} ${WRKBUILD}/server/palantir ${IDIR_PALANTIR}/usr/sbin/

include ${TOPDIR}/mk/pkg-bottom.mk