mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Add staging support
This commit is contained in:
parent
3445d16c0a
commit
100290b3aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356851
@ -24,7 +24,6 @@ MAKE_ARGS= CC="${CC}" \
|
||||
LIBPLOT_LDFLAGS="-L${LOCALBASE}/lib -lplot" \
|
||||
PYTHON="${PYTHON_CMD}"
|
||||
|
||||
NO_STAGE= yes
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/CC/s,gcc,$$\{CC\},' ${WRKSRC}/make.inc
|
||||
@${REINPLACE_CMD} -e 's|= python|= ${PYTHON_CMD}|' ${WRKSRC}/make.inc
|
||||
@ -34,13 +33,10 @@ pre-build:
|
||||
@${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PYTHON_SITELIBDIR}/biggles
|
||||
.for ext in ini so py pyc pyo
|
||||
${INSTALL_DATA} ${WRKSRC}/src/*.${ext} ${PYTHON_SITELIBDIR}/biggles
|
||||
.endfor
|
||||
@${MKDIR} ${PYTHON_SITELIBDIR}/biggles/libplot
|
||||
.for ext in so py pyc pyo
|
||||
${INSTALL_DATA} ${WRKSRC}/src/libplot/*.${ext} ${PYTHON_SITELIBDIR}/biggles/libplot
|
||||
.endfor
|
||||
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/biggles/libplot
|
||||
(cd ${WRKSRC}/src && ${INSTALL_DATA} *.ini *.so *.py *.pyc *.pyo \
|
||||
${STAGEDIR}${PYTHON_SITELIBDIR}/biggles)
|
||||
(cd ${WRKSRC}/src/libplot/ && ${INSTALL_DATA} *.so *.py *.pyc *.pyo \
|
||||
${STAGEDIR}${PYTHON_SITELIBDIR}/biggles/libplot)
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user