blob: ff92e2678f5b9d653a2bcb8535aa02054813af70 (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# Created by: Igor Pokrovsky <tiamat@comset.net>
# $FreeBSD$
PORTNAME= openrm
PORTVERSION= 1.6.0.2
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-devel/${PORTVERSION:R} \
SF/${PORTNAME}/${PORTNAME}-demo/${PORTVERSION:R}:demo
DISTNAME= ${PORTNAME}-devel-${PORTVERSION:R}-${PORTVERSION:E}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DEMO_DISTFILE:S/$/:demo/}
MAINTAINER= ports@FreeBSD.org
COMMENT= Development environment used to build 2D/3D/stereo graphics
USES= jpeg perl5 shebangfix
SHEBANG_FILES= doc/*.pl
USE_GL= glu
USE_XORG= xmu
USE_PERL5= build
ALL_TARGET= freebsd docs
MAKE_ARGS= AR="${AR}" \
CC="${CC}" \
CP="${CP}" \
ECHO_CMD="${ECHO_CMD}" \
LN="${LN}" \
RM="${RM}" \
STRIP_CMD="${STRIP_CMD}" \
X11BASE="${LOCALBASE}"
WRKSRC= ${WRKDIR}/rm${PORTVERSION:R:S/.//g}
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE=yes
CFLAGS+= -fPIC -DPIC
PORTDOCS= *
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
DEMO_DISTFILE= ${DISTNAME:S,-devel-,-demo-,}${EXTRACT_SUFX}
DEMO_WRKSRC= ${WRKDIR}/rmdemo
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not compile on ia64, powerpc, or sparc64
.endif
post-patch:
.if ${PORT_OPTIONS:MEXAMPLES}
${REINPLACE_CMD} -e \
'/^RM/s|/usr|${PREFIX}| ; \
/^OPENGL/s|/usr|${LOCALBASE}| ; \
/^X11/s|/usr/X11R6|${LOCALBASE}| ; \
/^OPT/s|-g|| ; \
/^ARCH/s|-m32|| ; \
/^JPEG/s|/usr|${LOCALBASE}|' ${DEMO_WRKSRC}/makeinclude
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/include/rm
${INSTALL_DATA} ${WRKSRC}/include/rm/*.h ${STAGEDIR}${PREFIX}/include/rm
.for f in librm librmaux librmi librmv
${INSTALL_DATA} ${WRKSRC}/lib/${f}.a ${STAGEDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/lib/${f}.so.1 ${STAGEDIR}${PREFIX}/lib
${LN} -fs ${f}.so.1 ${STAGEDIR}${PREFIX}/lib/${f}.so
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}/HTML/images
(cd ${WRKSRC} && ${INSTALL_DATA} FUTUREPLANS README RELEASENOTES \
${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${WRKSRC}/doc/HTML/*.html ${STAGEDIR}${DOCSDIR}/HTML
${INSTALL_DATA} ${WRKSRC}/doc/HTML/images/* \
${STAGEDIR}${DOCSDIR}/HTML/images
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/data
(cd ${DEMO_WRKSRC} && ${INSTALL_DATA} README configure makeinclude \
Makefile.x11 *.c *.h ${STAGEDIR}${EXAMPLESDIR})
${INSTALL_DATA} ${DEMO_WRKSRC}/data/* ${STAGEDIR}${EXAMPLESDIR}/data
.endif
.include <bsd.port.post.mk>
|