mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
15945f8122
to GCC 4.8.3. Part II, Bump PORTREVISIONs. PR: 192025 Tested by: antoine (-exp runs) Approved by: portmgr (implicit)
53 lines
1.2 KiB
Makefile
53 lines
1.2 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= partio
|
|
PORTVERSION= 1.1.0.20140128
|
|
PORTREVISION= 3
|
|
CATEGORIES= graphics math
|
|
|
|
MAINTAINER= mva@FreeBSD.org
|
|
COMMENT= C++ library for manipulating animation particle formats
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= cmake:outsource
|
|
USE_XORG= xmu
|
|
USE_GL= gl glut
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= wdas
|
|
GH_PROJECT= partio
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
GH_COMMIT= 833fd42
|
|
|
|
OPTIONS_DEFINE= DOCS PYTHON
|
|
OPTIONS_DEFAULT= PYTHON
|
|
|
|
DOCS_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
|
|
PYTHON_USE= PYTHON=2.7+
|
|
PYTHON_BUILD_DEPENDS= swig:${PORTSDIR}/devel/swig13
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|python -c|${PYTHON_CMD} -c|; \
|
|
s|lib64/python$${PYTHON_VERSION}/site-packages|${PYTHONPREFIX_SITELIBDIR:S/${PREFIX}\///}|' \
|
|
${WRKSRC}/src/py/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e '/install(TARGETS/d' \
|
|
${WRKSRC}/src/tests/CMakeLists.txt
|
|
.if !${PORT_OPTIONS:MPYTHON}
|
|
@${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY.*src\/py.*/d' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.endif
|
|
.if !${PORT_OPTIONS:MDOCS}
|
|
@${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY.*src\/doc.*/d' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
post-build:
|
|
@(cd ${BUILD_WRKSRC}; make doc)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|