summaryrefslogtreecommitdiff
path: root/graphics/povray31/Makefile
blob: e5df5ca1a88e7c443012beced7033306aad66683 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    POV-Ray
# Date created:         3 Dec 1996
# Whom:                 paulo@isr.uc.pt
#
# $FreeBSD$
#

PORTNAME=	povray
PORTVERSION=	3.1g
PORTREVISION=	3
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.povray.org/pub/povray/%SUBDIR%/ \
		ftp://ftp.mirrorservice.org/sites/ftp.povray.org/pub/povray/%SUBDIR%/ \
		${MASTER_SITE_RINGSERVER:S,%SUBDIR%,graphics/povray/%SUBDIR%,}
MASTER_SITE_SUBDIR=	Old-Versions/Official-3.1g/Unix
DISTNAME=	povray31
DISTFILES=	povuni_s.tgz povuni_d.tgz

MAINTAINER=	bkoenig@alpha-tierchen.de
COMMENT=	Persistence of Vision Ray Tracer

LIB_DEPENDS=	png.6:${PORTSDIR}/graphics/png

OPTIONS=	X11 "X Window support" On

DIST_SUBDIR=	povray31
LATEST_LINK=	povray31

#
#   I think all of this needs some explanation.
#   The port downloads the MS-DOS source files of POV-Ray 3.1d
#   and the UNIX source files of POV-Ray 3.0 (which need some
#   patching, obviously).  This is necessary because there are
#   no UNIX source files for POV-Ray 3.1.
#

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_X11)
USE_XORG=	x11
ALL_TARGET=	newxwin
POVBIN=		${BUILD_WRKSRC}/x-povray
.else
ALL_TARGET=	newunix
POVBIN=		${BUILD_WRKSRC}/povray
.endif

MAN1=		${LATEST_LINK}.1

POVLIB=		${PREFIX}/lib/${LATEST_LINK}

BUILD_WRKSRC=	${WRKSRC}/source/unix
MAKEFILE=	makefile

do-install:
	@${MKDIR} ${POVLIB}/allscene
	@${TOUCH} ${POVLIB}/allscene/.bla
	@${INSTALL_PROGRAM} ${POVBIN} ${PREFIX}/bin/${LATEST_LINK}
	@(cd ${WRKSRC}; ${TAR} cpf - include scenes) | \
		(cd ${POVLIB}; ${TAR} xpf -)
	@${INSTALL_DATA} ${WRKSRC}/*.ini ${POVLIB}/
	@${INSTALL_DATA} ${WRKSRC}/*.doc ${POVLIB}/
	@${INSTALL_DATA} ${WRKSRC}/*.txt ${POVLIB}/
	@${INSTALL_DATA} ${WRKSRC}/*.gif ${WRKSRC}/*.xpm ${POVLIB}/
	@${INSTALL_SCRIPT} ${WRKSRC}/allscene.sh ${POVLIB}/
	@${MV} ${WRKSRC}/${PORTNAME}.1 ${WRKSRC}/${LATEST_LINK}.1
	@${INSTALL_MAN} ${WRKSRC}/${LATEST_LINK}.1 ${PREFIX}/man/man1
	@${CHMOD} -R a+rX,og-w ${POVLIB}

post-install:
	@${SH} ${FILESDIR}/script

.include <bsd.port.post.mk>