summaryrefslogtreecommitdiff
path: root/package/ltp/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/ltp/Makefile')
-rw-r--r--package/ltp/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/ltp/Makefile b/package/ltp/Makefile
new file mode 100644
index 000000000..f803bfeee
--- /dev/null
+++ b/package/ltp/Makefile
@@ -0,0 +1,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},${ARCH}))
+
+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