7e42d7a7c4
Rename this ports to use the real vendor package name. The advantage of this is to allow our users' keyword search works and easier for users to file the Bugzilla report when they use our name of ports. Debian, Gentoo, NetBSD and other OSs have the correct package name, but not in our ports tree. My team, FreeBSD GNOME Team, have agreed with it. As for other ports, chase the rename. PR: ports/97985 Repocopy by: marcus
80 lines
2.1 KiB
Makefile
80 lines
2.1 KiB
Makefile
# New ports collection makefile for: OpenVRML
|
|
# Date created: 8 Jan 2001
|
|
# Whom: Marc van Woerkom <3d@freebsd.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= openvrml
|
|
PORTVERSION= 0.15.10
|
|
PORTREVISION= 2
|
|
CATEGORIES= www graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= VRML97 runtime and browser ("lookat")
|
|
|
|
BUILD_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-js.pc:${PORTSDIR}/www/mozilla \
|
|
${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone \
|
|
pkg-config:${PORTSDIR}/devel/pkg-config
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
|
|
RUN_DEPENDS= ${X11BASE}/libdata/pkgconfig/mozilla-js.pc:${PORTSDIR}/www/mozilla
|
|
|
|
USE_GL= yes
|
|
USE_X_PREFIX= yes
|
|
USE_GNOME= gnomehack gtk20
|
|
USE_SDL= sdl
|
|
USE_GCC= 3.4
|
|
USE_AUTOTOOLS= libtool:15
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -largp -Wl,--rpath -Wl,${X11BASE}/lib/mozilla -L${X11BASE}/lib -lXext" \
|
|
XPIDLFLAGS="-I${X11BASE}/share/idl/mozilla"
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
USE_GMAKE= yes
|
|
INSTALLS_SHLIB= yes
|
|
|
|
PLIST_SUB= VER=${PORTVERSION}
|
|
SUB_FILES= lookat.sh
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 500000
|
|
BROKEN= "Does not compile on ${OPSYS}-${OSREL}"
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/include/boost/python.hpp)
|
|
LIB_DEPENDS+= boost_python.3:${PORTSDIR}/devel/boost-python
|
|
.else
|
|
LIB_DEPENDS+= boost_regex.3:${PORTSDIR}/devel/boost
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|-pthread|${PTHREAD_LIBS}|g" \
|
|
${WRKSRC}/configure
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${CP} -R ${WRKSRC}/doc/manual/ ${DOCSDIR}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/models/*.wrl ${EXAMPLESDIR}
|
|
.endif
|
|
@${ECHO_MSG}
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO_MSG}
|
|
|
|
.if defined(MAINTAINER_MODE)
|
|
test: build
|
|
(cd ${WRKSRC}/tests ; \
|
|
./testsuite )
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|