2001-12-18 19:06:17 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: qglviewer
|
|
|
|
# Date created: Dec 18, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qglviewer
|
2003-05-17 03:14:24 +02:00
|
|
|
PORTVERSION= 1.4
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 3
|
2001-12-18 19:06:17 +01:00
|
|
|
CATEGORIES= graphics
|
2005-12-27 14:00:26 +01:00
|
|
|
MASTER_SITES= http://www.gris.uni-tuebingen.de/projects/qglviewer/
|
2001-12-18 19:06:17 +01:00
|
|
|
|
2003-05-17 03:14:24 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 18:44:37 +01:00
|
|
|
COMMENT= Use OpenGL to play around with three dimensional scenes
|
2001-12-18 19:06:17 +01:00
|
|
|
|
2003-02-23 18:44:37 +01:00
|
|
|
USE_QT_VER= 3
|
|
|
|
USE_GMAKE= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2001-12-18 19:06:17 +01:00
|
|
|
CONFIGURE_ENV= QTDIR="${X11BASE}"
|
2006-08-15 01:06:39 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-12-18 19:06:17 +01:00
|
|
|
|
2003-02-23 18:44:37 +01:00
|
|
|
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
QTCFGLIBS+= ${PTHREAD_LIBS}
|
|
|
|
|
2001-12-18 19:06:17 +01:00
|
|
|
post-patch:
|
2003-02-23 18:44:37 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|-lqt"|-lqt-mt ${PTHREAD_LIBS}"|g ; \
|
|
|
|
s|-lqt -lqgl"|-lqt-mt -lqtgl ${PTHREAD_LIBS}"|g ; \
|
|
|
|
s|/moc|/${MOC:T}|g' ${WRKSRC}/configure
|
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS =.*$$|SUBDIRS = src include|g ; \
|
|
|
|
s| install-pkgdocDATA||g' ${WRKSRC}/Makefile.in
|
|
|
|
|
2004-03-14 15:24:29 +01:00
|
|
|
pre-build:
|
|
|
|
-@${RM} ${WRKSRC}/src/QCameraKeyPathEditor.h
|
|
|
|
-@${RM} ${WRKSRC}/src/QLightSourceEditor.h
|
|
|
|
|
2003-02-23 18:44:37 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/*.css ${DOCSDIR}/html
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${DOCSDIR}/html
|
|
|
|
.endif
|
2001-12-18 19:06:17 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|