aboutsummaryrefslogtreecommitdiff
path: root/graphics/wdune/Makefile
blob: 1463a9c5bf94b1d69ad079ad6c300b648f73a13c (plain) (blame)
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
54
55
56
PORTNAME=	wdune
PORTVERSION=	1.956
PORTREVISION=	4
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.ourproject.org/pub/wdune/

MAINTAINER=	pi@FreeBSD.org
COMMENT=	Graphical VRML97 editor and animation tool
WWW=		https://wdune.ourproject.org/

LICENSE=	GPLv2

DEPRECATED=	upstream no longer maintained
EXPIRATION_DATE=2024-06-30

BUILD_DEPENDS=	cgal>0:math/cgal
LIB_DEPENDS=	libcurl.so:ftp/curl \
		libexpat.so:textproc/expat2 \
		libfreetype.so:print/freetype2 \
		libgmp.so:math/gmp \
		libmpfr.so:math/mpfr \
		libosdCPU.so:graphics/opensubdiv \
		libpng.so:graphics/png \
		libswresample.so.3:multimedia/ffmpeg4

USES=		compiler:c++11-lang gl jpeg localbase:ldflags motif sdl tar:bzip2 xorg
USE_CXXSTD=	c++14
USE_GL=		gl glu glut
USE_SDL=	sdl
USE_XORG=	x11 xft xi xmu xext xt

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-optimization \
		--without-devil \
		--with-cgalheaders \
		--with-helpurl="${DOCSDIR}/index.html"

ALL_TARGET=	dune

CPPFLAGS+=	-I${LOCALBASE}/ffmpeg4/include -I${LOCALBASE}/include/freetype2 -D__FREEBSD__
LDFLAGS+=	-L${LOCALBASE}/ffmpeg4/lib

CONFLICTS_INSTALL=	ocaml-dune

OPTIONS_DEFINE=	DOCS

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/dune ${STAGEDIR}${PREFIX}/bin
	cd ${WRKSRC}/bin && ${INSTALL_SCRIPT} dune4kids illegal2vrml \
		${STAGEDIR}${PREFIX}/bin
	cd ${WRKSRC}/man && ${INSTALL_MAN} dune.1 illegal2vrml.1 ${STAGEDIR}${PREFIX}/share/man/man1

do-install-DOCS-on:
	cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>