freebsd-ports/graphics/xfpovray/Makefile
Mikhail Teterin 337793a270 The actual reason, this port was broken was a bug in a recent version of
x11-toolkits/xforms. That bug was fixed earlier today.

Make sure, this builds with both erroneous as well as corrected xforms.

Fix the problems with parallelized build -- by replacing the upstream's
rudimentary Imakefiles with a BSDmakefile. Relocate application's help-
files into DOCSDIR.

Fix compiler warnings up to WARNS=3 and a few genuine (if ancient) bugs,
that this process revealed. Bump PORTREVISION and unbreak.
2015-03-09 06:21:47 +00:00

31 lines
866 B
Makefile

# 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>