aboutsummaryrefslogtreecommitdiff
path: root/net/dpdk/Makefile
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-10-16 05:59:54 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-10-16 05:59:54 +0000
commit90e67e34b2c6fb3ed1c24a207c183737a41eccab (patch)
treedeb4668dfa6f3d1f029fbc20be4172742280ca04 /net/dpdk/Makefile
parent9f1ff7d28fd7e5f55f002b14614833b4f9115ae1 (diff)
downloadports-90e67e34b2c6fb3ed1c24a207c183737a41eccab.tar.gz
ports-90e67e34b2c6fb3ed1c24a207c183737a41eccab.zip
Notes
Diffstat (limited to 'net/dpdk/Makefile')
-rw-r--r--net/dpdk/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/net/dpdk/Makefile b/net/dpdk/Makefile
new file mode 100644
index 000000000000..088d17e43f2c
--- /dev/null
+++ b/net/dpdk/Makefile
@@ -0,0 +1,61 @@
+# $FreeBSD$
+
+PORTNAME= dpdk
+PORTVERSION= 1.7.1
+CATEGORIES= net
+MASTER_SITES= http://www.dpdk.org/browse/dpdk/snapshot/
+
+MAINTAINER= bruce.richardson@intel.com
+COMMENT= Intel(R) DPDK: Software libraries for packet processing
+
+LICENSE= BSD3CLAUSE
+
+USES= gmake kmod
+MAKEFILE= GNUmakefile
+ONLY_FOR_ARCHS= amd64
+ONLY_FOR_ARCHS_REASON= Only works on 64-bit x86 hardware
+NO_PACKAGE= ignores cflags
+RTE_TARGET= x86_64-native-bsdapp-clang
+WRKBUILD= ${WRKSRC}/${RTE_TARGET}
+
+ALL_TARGET= install T=${RTE_TARGET}
+
+# build up the list of files in the compiled directory that should be executable
+EXEC_FILES= hostapp/testhost \
+ app/cmdline_test \
+ app/testpipeline \
+ app/testpmd \
+ app/test
+
+post-patch:
+ @${REINPLACE_CMD} -e 's/-fdirectives-only//' ${WRKSRC}/mk/rte.sdkconfig.mk
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${DATADIR}/${RTE_TARGET}/app \
+ ${STAGEDIR}${DATADIR}/${RTE_TARGET}/lib \
+ ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/arch \
+ ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/exec-env
+ cd ${WRKSRC} && ${COPYTREE_SHARE} mk ${STAGEDIR}${DATADIR} \
+ && ${COPYTREE_SHARE} examples ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKBUILD}/.config ${STAGEDIR}${DATADIR}/${RTE_TARGET}
+ for f in ${EXEC_FILES} ; do \
+ ${INSTALL_PROGRAM} ${WRKBUILD}/$$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/app; \
+ done
+ for f in ${WRKBUILD}/lib/* ; do \
+ ${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/lib ; \
+ done
+ for f in ${WRKBUILD}/include/*.h ; do \
+ ${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include ; \
+ done
+ for f in ${WRKBUILD}/include/arch/*.h ; do \
+ ${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/arch ; \
+ done
+ for f in ${WRKBUILD}/include/exec-env/*.h ; do \
+ ${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/exec-env ; \
+ done
+ ${LN} -sf ${DATADIR}/${RTE_TARGET}/lib ${STAGEDIR}${PREFIX}/lib/dpdk
+ ${LN} -sf ${DATADIR}/${RTE_TARGET}/include ${STAGEDIR}${PREFIX}/include/dpdk
+ ${LN} -sf ${DATADIR}/examples ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_KLD} ${WRKBUILD}/kmod/* ${STAGEDIR}${KMODDIR}
+
+.include <bsd.port.mk>