aboutsummaryrefslogtreecommitdiff
path: root/graphics/dynamechs/Makefile
blob: e1e83b02a50347507389fb13d4253319b619e78b (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
# ex:ts=8
# New ports collection makefile for:	dynamechs
# Date created:			Dec 6, 2001
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	dynamechs
PORTVERSION=	4.0.p1
PORTREVISION=	4
PORTEPOCH=	1
CATEGORIES=	graphics
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/4.0pre1
DISTNAME=	${PORTNAME}_${PORTVERSION:S/.p/pre/}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A Multibody Dynamic Simulation Library

USE_BZIP2=	yes
USE_GL=		glut
USE_GMAKE=	yes
USE_PERL5_BUILD=yes
CXXFLAGS+=	${PTHREAD_CFLAGS}
MAKE_ENV=	OPENGLINCDIR="${LOCALBASE}/include" \
		OPENGLLIBDIR="${LOCALBASE}/lib" \
		LDFLAGS="${PTHREAD_LIBS}"
ALL_TARGET=	freebsd
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

do-configure:
	@${CP} -f ${FILESDIR}/make.platform.freebsd ${WRKSRC}/make/

do-install:
.for dir in dm dmu dmGL
	${RM} -f ${WRKSRC}/${dir}/*.orig
	@${MKDIR} ${PREFIX}/include/${PORTNAME}/${dir}
	${INSTALL_DATA} ${WRKSRC}/${dir}/*.h* ${PREFIX}/include/${PORTNAME}/${dir}
	${INSTALL_DATA} ${WRKSRC}/lib/platform.freebsd/lib${dir}.so ${PREFIX}/lib
.endfor

.include <bsd.port.post.mk>