aboutsummaryrefslogtreecommitdiff
path: root/graphics/vertex/Makefile
blob: ae943d2b86b7bb1606169f344389df513f324322 (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
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
# New ports collection makefile for:	vertex
# Date created:				1 June 2001
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	vertex
PORTVERSION=	0.1.15
CATEGORIES=	graphics
MASTER_SITES=	ftp://wolfpack.twu.net/users/wolfpack/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A 3D modeller designed specifically for generating efficient game models

LIB_DEPENDS=	gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea

USE_BZIP2=	yes
USE_X_PREFIX=	yes
USE_MESA=	yes
USE_GNOME=	imlib
USE_REINPLACE=	yes
USE_GMAKE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	UNIX

MAN1=		${PORTNAME}.1

post-patch:
	@${GREP} -lR "malloc\.h" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
		's|malloc\.h|stdlib.h|g'
	@${REINPLACE_CMD} -e \
		's|make|$$(MAKE)|g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e \
		's|/usr/share/vertex|${DATADIR}|g' ${WRKSRC}/vertex/config.h
	@${REINPLACE_CMD} -e \
		's|echo -n -e|printf|g' ${WRKSRC}/vertex/makefile_append.ini
	@${REINPLACE_CMD} -e \
		's|%%CC%%|${CC}|g ; \
		 s|%%CXX%%|${CXX}|g ; \
		 s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
		 s|%%PREFIX%%|${PREFIX}|g ; \
		 s|%%LOCALBASE%%|${LOCALBASE}|g ; \
		 s|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/vertex/platforms.ini
	@${REINPLACE_CMD} -e \
		's|%%X11BASE%%|${X11BASE}|g' ${WRKSRC}/vertex/vmahelp.c
	@${REINPLACE_CMD} -e \
		's|CC =|CC ?=|g' ${WRKSRC}/pconf/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/vertex/vertex ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/vertex/vertex.1 ${MANPREFIX}/man/man1
	@${MKDIR} ${DATADIR}/icons
	${INSTALL_DATA} ${WRKSRC}/vertex/vertex.xpm ${DATADIR}/icons
	cd ${WRKSRC}/vertex/data && ${FIND} . -type f | \
		${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
	@${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+x

.include <bsd.port.mk>