aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xfpovray/Makefile
blob: 35487175033db8cb7a7e3386cb19407ce2ba0f79 (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
# Created by: Thomas Gellekum <tg@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xfpovray
PORTVERSION=    1.3.1
PORTREVISION=   13
CATEGORIES= graphics
MASTER_SITES=   http://www.batse.msfc.nasa.gov/~mallozzi/home/software/xforms/src/ \
        ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/graphics/rays/pov

MAINTAINER= ports@FreeBSD.org
COMMENT=    Graphical interface to POV-Ray

LIB_DEPENDS=    libforms.so:${PORTSDIR}/x11-toolkits/xforms
RUN_DEPENDS=    povray:${PORTSDIR}/graphics/povray-meta

USES=       tar:tgz uidfix
USE_XORG=   x11 xext xpm
MAKEFILE=   ${FILESDIR}/BSDmakefile
MAKE_ENV+=  DOCSDIR="${DOCSDIR}"

post-patch:
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g;" ${WRKSRC}/src/xfpovray.h
    @${REINPLACE_CMD} -e "s|fl_drw_box|fl_draw_box|g;"  \
        ${WRKSRC}/flx/flx_return_button/flx_return_button.c

post-install:
    ${MV} ${WRKSRC}/help ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>