mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Convert to USES=scons
Stage support
This commit is contained in:
parent
5afc780e9b
commit
c8321dce2b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355528
1 changed files with 5 additions and 10 deletions
|
@ -15,16 +15,12 @@ COMMENT= Python bindings for exiv2
|
||||||
LIB_DEPENDS= libexiv2.so:${PORTSDIR}/graphics/exiv2\
|
LIB_DEPENDS= libexiv2.so:${PORTSDIR}/graphics/exiv2\
|
||||||
libboost_python.so:${PORTSDIR}/devel/boost-python-libs
|
libboost_python.so:${PORTSDIR}/devel/boost-python-libs
|
||||||
|
|
||||||
USES= gmake tar:bzip2
|
USES= scons tar:bzip2
|
||||||
USE_PYTHON= 2
|
USE_PYTHON= 2
|
||||||
USE_SCONS= yes
|
|
||||||
USE_LDCONFIG= yes
|
USE_LDCONFIG= yes
|
||||||
SCONS_ENV+= PREFIX=${PREFIX} CPPPATH=${PREFIX}/include LIBPATH=${PREFIX}/lib
|
CXXFLAGS+= -I${LOCALBASE}/include
|
||||||
SCONS_BUILDENV= ${SCONS_ENV} CXXFLAGS="-I${LOCALBASE}/include" \
|
MAKE_ARGS+= prefix=${PREFIX} use_env=1
|
||||||
LDFLAGS="-L${LOCALBASE}/lib"
|
|
||||||
SCONS_ARGS+= prefix=${PREFIX} use_env=1
|
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's|python_inc_path\]|python_inc_path,\
|
${REINPLACE_CMD} -e 's|python_inc_path\]|python_inc_path,\
|
||||||
"${PREFIX}/include"\]|' -e 's|LIBS=libs|LIBS=libs,\
|
"${PREFIX}/include"\]|' -e 's|LIBS=libs|LIBS=libs,\
|
||||||
|
@ -32,10 +28,9 @@ post-patch:
|
||||||
${WRKSRC}/src/SConscript
|
${WRKSRC}/src/SConscript
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
|
cd ${STAGEDIR}/${PYTHON_SITELIBDIR}/pyexiv2; ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py .
|
||||||
${PYTHON_SITELIBDIR}/pyexiv2
|
|
||||||
|
|
||||||
regression-test: build
|
regression-test: build
|
||||||
@cd ${WRKSRC} && ${SCONS_BIN} test
|
@cd ${WRKSRC} && ${MAKE_CMD} test
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Add table
Reference in a new issue