summaryrefslogtreecommitdiff
path: root/graphics/OpenRM/Makefile
blob: 97e00e041c72d1d5ff5b1aec44419e3c433829e6 (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
# $NetBSD: Makefile,v 1.4 2004/04/19 05:54:45 garbled Exp $
#

DISTNAME=		openrm-devel-1.5.2
PKGNAME=		OpenRM-1.5.2
CATEGORIES=		graphics
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=openrm/}

MAINTAINER=		root@garbled.net
HOMEPAGE=		http://www.openrm.org/
COMMENT=		The OpenRM Scene Graph API

USE_X11=		yes
WRKSRC=			${WRKDIR}/rm152
ALL_TARGET=		freebsd docs
USE_BUILDLINK3=		yes
MAKE_ENV+=		AR=${AR} RM=${RM} CP=${CP} LN=${LN} ECHO_CMD=${ECHO} \
			STRIP_CMD=${ECHO}

post-patch:
	${MV} ${WRKSRC}/doc/sortlist.pl ${WRKSRC}/doc/sortlist.pl.orig && \
		${SED} -e 's|%%PERLBIN%%|${PERL5}|g'			  \
		${WRKSRC}/doc/sortlist.pl.orig > ${WRKSRC}/doc/sortlist.pl
	${CHMOD} 755 ${WRKSRC}/doc/sortlist.pl
	${MV} ${WRKSRC}/doc/source2html.pl ${WRKSRC}/doc/source2html.pl.orig &&\
		${SED} -e 's|%%PERLBIN%%|${PERL5}|g'			  \
		${WRKSRC}/doc/source2html.pl.orig > ${WRKSRC}/doc/source2html.pl
	${CHMOD} 755 ${WRKSRC}/doc/source2html.pl

do-install:
# install libraries
	${INSTALL_PROGRAM} ${WRKSRC}/lib/librm.so.1 ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/lib/librmaux.so.1 ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/lib/librmi.so.1 ${PREFIX}/lib
	${INSTALL_PROGRAM} ${WRKSRC}/lib/librmv.so.1 ${PREFIX}/lib
	${LN} -fs ${PREFIX}/lib/librm.so.1 ${PREFIX}/lib/librm.so
	${LN} -fs ${PREFIX}/lib/librmaux.so.1 ${PREFIX}/lib/librmaux.so
	${LN} -fs ${PREFIX}/lib/librmi.so.1 ${PREFIX}/lib/librmi.so
	${LN} -fs ${PREFIX}/lib/librmv.so.1 ${PREFIX}/lib/librmv.so
	${INSTALL_DATA} ${WRKSRC}/lib/librm.a ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/lib/librmaux.a ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/lib/librmi.a ${PREFIX}/lib
	${INSTALL_DATA} ${WRKSRC}/lib/librmv.a ${PREFIX}/lib
# install includes
	${INSTALL_DATA_DIR} ${PREFIX}/include/rm
	${INSTALL_DATA} ${WRKSRC}/include/rm/*.h ${PREFIX}/include/rm
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/OpenRM
	${INSTALL_DATA} ${WRKSRC}/FUTUREPLANS ${PREFIX}/share/doc/OpenRM
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/OpenRM
	${INSTALL_DATA} ${WRKSRC}/RELEASENOTES ${PREFIX}/share/doc/OpenRM
	${INSTALL_DATA} ${WRKSRC}/doc/HTML/*.html ${PREFIX}/share/doc/OpenRM
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/OpenRM/images
	${INSTALL_DATA} ${WRKSRC}/doc/HTML/images/* ${PREFIX}/share/doc/OpenRM/images

.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/Mesa/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../lang/perl5/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"