Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
current python flavor. It can be used in dependency lines when the
port itself is not python flavored. For example, deskutils/calibre.
By default, all the flavors are generated. To only generate flavors
for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.
In all the ports with Python dependencies, the *_DEPENDS entries MUST
end with the flavor so that the framework knows which to build/use.
This is done by appending '@${PY_FLAVOR}' after the origin (or
@${FLAVOR} if in a Python module with Python flavors, as the content
will be the same). For example:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
PR: 223071
Reviewed by: portmgr, python
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D12464
74 lines
2.4 KiB
Makefile
74 lines
2.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dpdk
|
|
PORTVERSION= 16.07
|
|
PORTREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.dpdk.org/browse/dpdk/snapshot/
|
|
|
|
MAINTAINER= bruce.richardson@intel.com
|
|
COMMENT= 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}
|
|
MAKE_ENV= V=1
|
|
|
|
ALL_TARGET= install T=${RTE_TARGET}
|
|
|
|
OPTIONS_DEFINE= DEBUG TOOLS
|
|
OPTIONS_SUB= yes
|
|
DEBUG_DESC= Debugging support (unoptimized build, impacts performance)
|
|
TOOLS_DESC= Install tool scripts
|
|
|
|
DEBUG_MAKE_ENV= EXTRA_CFLAGS='-O0 -g'
|
|
TOOLS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyelftools>=0:devel/py-pyelftools
|
|
TOOLS_USES= python:2.7
|
|
|
|
# build up the list of files in the compiled directory that should be executable
|
|
EXEC_FILES= app/cmdline_test \
|
|
app/testpipeline \
|
|
app/testpmd \
|
|
app/testacl \
|
|
app/test
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/${RTE_TARGET}/app \
|
|
${STAGEDIR}${DATADIR}/${RTE_TARGET}/lib \
|
|
${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/generic \
|
|
${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/generic/*.h ; do \
|
|
${INSTALL_DATA} $$f ${STAGEDIR}${DATADIR}/${RTE_TARGET}/include/generic ; \
|
|
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}
|
|
|
|
do-install-TOOLS-on:
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/bin/
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tools/dpdk-pmdinfo.py ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|