2001-11-20 19:47:01 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: maverik
|
|
|
|
# Date created: Nov 12, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= maverik
|
2002-04-20 17:28:05 +02:00
|
|
|
PORTVERSION= 6.2
|
2004-02-04 06:21:48 +01:00
|
|
|
PORTREVISION= 1
|
2001-11-20 19:47:01 +01:00
|
|
|
CATEGORIES= graphics
|
2002-04-20 17:28:05 +02:00
|
|
|
MASTER_SITES= http://aig.cs.man.ac.uk/maverik/
|
2001-11-20 19:47:01 +01:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:08:19 +01:00
|
|
|
COMMENT= A publicly available virtual reality (VR) system
|
2001-11-20 19:47:01 +01:00
|
|
|
|
2002-01-11 04:24:51 +01:00
|
|
|
LIB_DEPENDS= gtkgl.5:${PORTSDIR}/x11-toolkits/gtkglarea
|
|
|
|
|
2004-04-17 02:26:59 +02:00
|
|
|
BROKEN= "Changes its PORTNAME at install-time (maverik -> maverik-gtk)"
|
2004-06-21 23:27:46 +02:00
|
|
|
EXPIRATION_DATE=2004-08-20
|
|
|
|
DEPRECATED= Changes its PORTNAME at install-time (maverik -> maverik-gtk)
|
2004-04-17 02:26:59 +02:00
|
|
|
|
2002-07-08 12:41:30 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-03-25 10:19:20 +01:00
|
|
|
USE_SUBMAKE= yes
|
2001-11-20 19:47:01 +01:00
|
|
|
USE_MESA= yes
|
2002-09-03 04:46:49 +02:00
|
|
|
WANT_GNOME= yes
|
2001-11-20 19:47:01 +01:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
REALCURDIR="${.CURDIR}" \
|
|
|
|
DISTNAME="${DISTNAME}"
|
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_SCRIPT= setup
|
|
|
|
CONFIGURE_ARGS= --MESAPATH=${X11BASE}
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
MANCOMPRESSED= no
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_PNG)
|
2002-01-11 04:24:51 +01:00
|
|
|
LIB_DEPENDS+= png:${PORTSDIR}/graphics/png
|
2001-11-20 19:47:01 +01:00
|
|
|
|
2002-04-20 17:28:05 +02:00
|
|
|
CONFIGURE_ARGS+= --PNGLIBS="-L${LOCALBASE}/lib -lpng" \
|
|
|
|
--PNGINCL="-I${LOCALBASE}/include"
|
2001-11-20 19:47:01 +01:00
|
|
|
.endif
|
|
|
|
|
2002-09-03 04:46:49 +02:00
|
|
|
.if ${HAVE_GNOME:Mgtk12}!=""
|
|
|
|
USE_GNOME+= gtk12
|
|
|
|
PKGNAMESUFFIX= -gtk
|
2001-11-20 19:47:01 +01:00
|
|
|
CONFIGURE_ARGS+= --GTK
|
2002-04-20 17:28:05 +02:00
|
|
|
PLIST_SUB+= GTK=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GTK="@comment "
|
2001-11-20 19:47:01 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/genman3list.sh
|
|
|
|
|
|
|
|
post-patch:
|
2002-07-08 12:41:30 +02:00
|
|
|
@${REINPLACE_CMD} -e "s,%%X11BASE%%,${X11BASE},g ; \
|
2002-04-20 17:28:05 +02:00
|
|
|
s,%%CC%%,${CC},g ; \
|
|
|
|
s,%%CXX%%,${CXX},g ; \
|
2001-11-20 19:47:01 +01:00
|
|
|
s,%%CFLAGS%%,${CFLAGS},g ; \
|
|
|
|
s,%%CXXFLAGS%%,${CXXFLAGS},g ; \
|
|
|
|
s,%%PTHREAD_CFLAGS%%,${PTHREAD_CFLAGS},g ; \
|
|
|
|
s,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},g ; \
|
|
|
|
s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/setup
|
2002-07-08 12:41:30 +02:00
|
|
|
@${REINPLACE_CMD} -e "s,gtk-config,${GTK_CONFIG},g" ${WRKSRC}/examples/misc/GTK/Makefile
|
2001-11-20 19:47:01 +01:00
|
|
|
|
|
|
|
do-install:
|
2002-04-20 17:28:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.* ${PREFIX}/lib
|
2001-11-20 19:47:01 +01:00
|
|
|
@${MKDIR} ${PREFIX}/include/maverik
|
2002-04-20 17:28:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/incl/*.* ${PREFIX}/include/maverik
|
|
|
|
${FIND} ${WRKSRC}/doc/MFS/man3 -name '*.3' -exec \
|
|
|
|
${INSTALL_MAN} \{} ${MAN3PREFIX}/man/man3 \;
|
2001-11-20 19:47:01 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-04-20 17:28:05 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}/MFS/html
|
|
|
|
${FIND} ${WRKSRC}/doc/MFS/html -name '*.html' -exec \
|
|
|
|
${INSTALL_DATA} \{} ${DOCSDIR}/MFS/html \;
|
|
|
|
@${MKDIR} ${DOCSDIR}/MFS/pdf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/MFS/pdf/*.* ${DOCSDIR}/MFS/pdf
|
|
|
|
@${MKDIR} ${DOCSDIR}/MFS/ps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/MFS/ps/*.* ${DOCSDIR}/MFS/ps
|
|
|
|
@${MKDIR} ${DOCSDIR}/MPG/pdf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/MPG/pdf/*.* ${DOCSDIR}/MPG/pdf
|
|
|
|
@${MKDIR} ${DOCSDIR}/MPG/ps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/MPG/ps/*.* ${DOCSDIR}/MPG/ps
|
2001-11-20 19:47:01 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-clean:
|
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|