summaryrefslogtreecommitdiff
path: root/graphics/megapov/Makefile
blob: 1e47d3b59078525e51eb4571e0798b9f8974e319 (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
# Created by: maho@FreeBSD.org
# $FreeBSD$

PORTNAME=	megapov
PORTVERSION=	1.2.1
PORTREVISION=	7
CATEGORIES=	graphics
MASTER_SITES=	http://megapov.inetart.net/packages/unix/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Unofficial extensions of POV-Ray

LIB_DEPENDS=	libpng.so:graphics/png \
		libtiff.so:graphics/tiff
#RUN_DEPENDS=	povray:graphics/povray-meta

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
INSTALL_WRKSRC=	${WRKSRC}/unix

USES=		gmake jpeg localbase tar:bzip2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	COMPILED_BY="ports@FreeBSD.org"

PORTDOCS=	*
PORTEXAMPLES=	*
PLIST_FILES=	bin/megapov

OPTIONS_DEFINE=		DOCS EXAMPLES OPTIMIZED_CFLAGS X11
OPTIONS_DEFINE_amd64=	SVGALIB
OPTIONS_DEFINE_i386=	SVGALIB

OPTIMIZED_CFLAGS_CFLAGS=\
			-O3 -ffast-math -finline-functions \
			-fomit-frame-pointer -funroll-loops \
			-fexpensive-optimizations
SVGALIB_LIB_DEPENDS=	libvga.so:graphics/svgalib
SVGALIB_CONFIGURE_WITH=	svga
X11_USE=		xorg=x11,xpm
X11_CONFIGURE_WITH=	x

post-patch:
	@${REINPLACE_CMD} -e \
		's|"-O3"|""|' ${WRKSRC}/configure

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "include scenes" ${STAGEDIR}${EXAMPLESDIR})

.include <bsd.port.mk>