summaryrefslogtreecommitdiff
path: root/package/ltp/Makefile
blob: 5a0da8eb12e206b908acc1c786fc001509d911d0 (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
# $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:=		ltp-full
PKG_VERSION:=		20061121
PKG_RELEASE:=		2
PKG_MD5SUM:=		f01dd2119c5d4462e876229df394ecbf
MASTER_SITES:=		http://switch.dl.sourceforge.net/sourceforge/ltp/
DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tgz

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,LTP,ltp,${PKG_VERSION}-${PKG_RELEASE}))

BUILD_STYLE:=		auto
INSTALL_STYLE:=		auto
XAKE_FLAGS+=		CROSS_COMPILER="${TARGET_CROSS}" \
			CROSS_CFLAGS="${TCFLAGS} -I${WRKBUILD}/include" \
			CPPFLAGS="${TCPPFLAGS}" \
			LDFLAGS="${TLDFLAGS}"

post-install:
	${CP} ${WRKBUILD} ${IDIR_LTP}
	find ${IDIR_LTP} \( -name '*.c' -o -name '*.h' -o -name '*.o' \) -exec rm '{}' \;

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