summaryrefslogtreecommitdiffstats
path: root/graphics/inventor/Makefile
blob: 49971d370de50914d5f58c17803ffefc0f80f870 (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
# Created by: Christian Gusenbauer
# $FreeBSD$

PORTNAME=	inventor
PORTVERSION=	2.1.5.p10
PORTREVISION=	13
CATEGORIES=	graphics
MASTER_SITES=	ftp://oss.sgi.com/projects/inventor/download/
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.p/-/}
EXTRACT_SUFX=	.src.tar.gz

MAINTAINER=	c47g@gmx.at
COMMENT=	SGI's Open Inventor (TM)

LICENSE=	LGPL21

LIB_DEPENDS=	libfreetype.so:print/freetype2

CONFLICTS=	Coin-[0-9]* SoXt-[0-9]*

USE_XORG=	x11 xext xi xp xt
USE_GL=		glu glw
USES=		gmake iconv jpeg motif
USE_LDCONFIG=	yes
ONLY_FOR_ARCHS=	i386 amd64
MAKE_JOBS_UNSAFE=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}
MAKE_ARGS=	CC="${CC}" CXX="${CXX}" LD="${CXX}" \
		VCOPTS="${CFLAGS}" VCXXOPTS="${CXXFLAGS}" \
		VLDOPTS="${LDFLAGS}" VLDDSOOPTS="${LDFLAGS}" \
		IVPREFIX="${PREFIX}" X11DIR="${LOCALBASE}"
MAKE_ENV=	LD_LIBRARY_PATH=${WRKSRC}/lib:${WRKSRC}/libSoXt \
		FREETYPE=1 \
		INSTALL_STRIP=${STRIP} \
		IVROOT=${STAGEDIR}
MAKEFILE=	GNUmakefile

SUB_FILES=	pkg-message

OPTIONS_DEFINE=	DEBUG

DEBUG_MAKE_ENV=	LIBTYPE=debug

LDFLAGS+=	-Wl,--add-needed

post-patch:
# Fix for print/freetype2 v2.7, where FT_Done_GlyphSlot function is not exported
	@${REINPLACE_CMD} -e '/FT_Done_GlyphSlot/s|^|//|' \
		${WRKSRC}/libFL/ang/flfreetype.c
	@${REINPLACE_CMD} 's|/usr\(/include/freetype2\)|${LOCALBASE}\1|' \
		${WRKSRC}/libFL/ang/GNUmakefile
	@${REINPLACE_CMD} -e 's|%%ICONV_LIB%%|${ICONV_LIB}|' \
	    ${WRKSRC}/lib/GNUmakefile

.include <bsd.port.mk>
OpenPOWER on IntegriCloud