blob: 7ea83593cf01a1968672f9e71f71e080845fe7f6 (
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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
# New ports collection makefile for: OpenVRML
# Date created: 8 Jan 2001
# Whom: Marc van Woerkom <3d@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= openvrml
PORTVERSION= 0.17.5
PORTREVISION= 2
CATEGORIES= www graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= VRML97 runtime and browser
BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone \
pkg-config:${PORTSDIR}/devel/pkg-config
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
js.1:${PORTSDIR}/lang/spidermonkey \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
curl.4:${PORTSDIR}/ftp/curl
USE_GL= yes
USE_GNOME= gnomehack libglade2 libgnomeui
USE_SDL= sdl
USE_JAVA= yes
GNU_CONFIGURE= yes
LIBTOOLFILES= configure mozilla-plugin/configure lib/gtkglext/configure
CONFIGURE_ARGS= --enable-gecko-rpath
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OPSYS:L}" \
LDFLAGS="-L${LOCALBASE}/lib -L${JAVA_HOME}/jre/lib/${ARCH}/client ${PTHREAD_LIBS}" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}" \
LIBS="-lm"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_GECKO= firefox seamonkey
PLIST_SUB= PLUGINS_DIR=${BROWSER_PLUGINS_DIR:S|^${LOCALBASE}/||}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/www/mozilla/bsd.gecko.mk"
.if ${OSVERSION} < 700042
BROKEN= Does not compile
.endif
.if ${ARCH} == "sparc64"
BROKEN= Gets internal gcc error on ${ARCH}
.endif
.if exists(${LOCALBASE}/include/boost/python.hpp)
LIB_DEPENDS+= boost_python.4:${PORTSDIR}/devel/boost-python
.else
LIB_DEPENDS+= boost_regex.4:${PORTSDIR}/devel/boost
.endif
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG} "Warning: building this port eats up to 1.5 GB of RAM (32 bits) or 3 GB (64 bits)"
@${ECHO_MSG} "of RAM; do not try to build it on a small configuration!"
@${ECHO_MSG}
pre-configure:
${REINPLACE_CMD} -e \
's|JNI_LIBS="|JNI_LIBS="-L${JAVA_HOME}/jre/lib/${ARCH}/client -Wl,-rpath,${JAVA_HOME}/jre/lib/${ARCH}/client |' \
${WRKSRC}/configure
${REINPLACE_CMD} -e \
's|-rpath $$(libdir)|-rpath $$(libdir) -rpath ${JAVA_HOME}/jre/lib/${ARCH}/client|' \
${WRKSRC}/src/Makefile.in
.for cfg in ${LIBTOOLFILES}
${REINPLACE_CMD} -e \
"/hardcode_libdir_flag_spec/s|\(=.\)\(.*\)\(\$$libdir\)|& \2${JAVA_HOME}/jre/lib/${ARCH}/client|" \
${WRKSRC}/${cfg}
.endfor
${REINPLACE_CMD} -e 's|$$(libdir)/mozilla/plugins|${BROWSER_PLUGINS_DIR}|' \
${WRKSRC}/mozilla-plugin/src/Makefile.in
.if ${GECKO} != "firefox"
${REINPLACE_CMD} -e "s|FIREFOX_JS|${GECKO:U}_JS|g;s|firefox-js|${GECKO}-js|" \
${WRKSRC}/configure
${REINPLACE_CMD} -e "s|firefox-plugin|${GECKO}-plugin|g" \
${WRKSRC}/mozilla-plugin/configure
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/manual/ ${DOCSDIR}
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/models/*.wrl ${EXAMPLESDIR}
.endif
regression-test:
(cd ${BUILD_WRKSRC}/tests ; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check-TESTS)
.include <bsd.port.post.mk>
|