summaryrefslogtreecommitdiff
path: root/graphics/partio/Makefile
blob: 122787aca761dda2fdaf8ca80df1acd9cc118ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $FreeBSD$

PORTNAME=	partio
PORTVERSION=	1.5.5
DISTVERSIONPREFIX=	v
CATEGORIES=	graphics math

MAINTAINER=	ports@FreeBSD.org
COMMENT=	C++ library for manipulating animation particle formats

LICENSE=	BSD3CLAUSE

BUILD_DEPENDS=	swig3.0:devel/swig30

USES=		cmake gl python shebangfix
SHEBANG_FILES=	src/tools/partedit.py src/tools/partjson.py
USE_GL=		gl glu glut
USE_LDCONFIG=	yes
USE_XORG=	xi xmu

USE_GITHUB=	yes
GH_ACCOUNT=	wdas

OPTIONS_DEFINE=		DOCS DOXYGEN
OPTIONS_DEFAULT=	DOCS

# DOCS must be selected for PORTDOCS to work
DOXYGEN_IMPLIES=	DOCS
DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen
DOXYGEN_ALL_TARGET=	all doc

DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen

BINARY_ALIAS=	swig=swig3.0

PORTDOCS=	*

post-patch:
	@${REINPLACE_CMD} -e 's|python -c|${PYTHON_CMD} -c|' \
		${WRKSRC}/src/py/CMakeLists.txt \
		${WRKSRC}/src/tools/CMakeLists.txt
	@${REINPLACE_CMD} -e '/install(TARGETS/d' \
		${WRKSRC}/src/tests/CMakeLists.txt

post-patch-DOCS-off:
	@${REINPLACE_CMD} -e '/ADD_SUBDIRECTORY.*src\/doc.*/d' \
		${WRKSRC}/CMakeLists.txt

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	cd ${WRKSRC}/src/doc && ${INSTALL_DATA} tutorial.txt partio.tex ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>