summaryrefslogtreecommitdiff
path: root/graphics/blender/Makefile
blob: 3d7036bf7958bf002060d1fa4dd3692ed966ee7d (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
# $NetBSD: Makefile,v 1.17 2003/03/26 04:05:44 jschauma Exp $

PKGNAME=	blender-2.11
PKGREVISION=	5
CATEGORIES=	graphics
MASTER_SITES=	ftp://www.blender.nl/pub/ \
		ftp://ftp.cs.umn.edu/pub/blender/pub/versions/2.11/

MAINTAINER=	manu@netbsd.org
HOMEPAGE=	http://www.blender.nl
COMMENT=	GUI based raytracer

RESTRICTED=	"Only the original, unmodified package may be freely distributed"
NO_BIN_ON_FTP=	${RESTRICTED}
NO_BIN_ON_CDROM=${RESTRICTED}

NO_BUILD=	yes
CHECK_SHLIBS=	NO

# To be updated as other platforms PLIST will be built
ONLY_FOR_PLATFORM= *-*-i386 *-*-powerpc *-*-sparc

.include "../../mk/bsd.prefs.mk"

.if (${MACHINE_ARCH} == "alpha")
.if !exists(/emul/linux/lib/ld.so.1)
PKG_FAIL_REASON= "${PKGNAME} requires Linux libraries - see compat_linux(8)"
.endif
DISTNAME=	blender2.11-linux-glibc2.1.3-alpha
#
.elif (${MACHINE_ARCH} == "i386")
DEPENDS+=	suse_linux>=6.4:../../emulators/${SUSE_DIR_PREFIX}_linux
DISTNAME=	blender2.11-linux-glibc2.1.2-i386-static
PLIST_ARCH=	linux-i386
#
.elif (${MACHINE_ARCH} == "sparc")
.if ${OPSYS} == "NetBSD"
.if !exists(/emul/svr4/usr/lib/ld.so)
PKG_FAIL_REASON= "${PKGNAME} requires Solaris libraries - see compat_svr4(8)"
.endif
.endif
DISTNAME=	blender2.11-solaris-2.6-sparc
PLIST_ARCH=	solaris-sparc
EXTRACT_SUFX=	.tar.Z
#
.elif (${MACHINE_ARCH} == "powerpc")
.if !exists(/emul/linux/lib/ld.so.1)
PKG_FAIL_REASON= "${PKGNAME} requires Linux libraries - see compat_linux(8)"
.endif
DEPENDS+=	linuxppc_lib>=2000.4.2:../../emulators/linuxppc_lib
DISTNAME=	blender2.11-linux-glibc2.1.3-powerpc-static
PLIST_ARCH=	linux-powerpc
#
.else
DISTNAME=	# dummy, don't break pkg system
PKG_FAIL_REASON= "Your platform is not supported and the package is buggy!"
.endif

PLIST_SRC=	${PKGDIR}/PLIST.${PLIST_ARCH}

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/blender
	${CP} -Rp ${WRKSRC}/* ${PREFIX}/lib/blender/
	${LN} -sf ../lib/blender/blender ${PREFIX}/bin/blender

.include "../../emulators/suse_linux/Makefile.application"
.include "../../mk/bsd.pkg.mk"