2001-12-18 18:06:17 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: qglviewer
|
|
|
|
# Date created: Dec 18, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= qglviewer
|
2003-05-17 01:14:24 +00:00
|
|
|
PORTVERSION= 1.4
|
2004-02-04 05:21:48 +00:00
|
|
|
PORTREVISION= 2
|
2001-12-18 18:06:17 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.qglviewer.de/
|
|
|
|
|
2003-05-17 01:14:24 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 17:44:37 +00:00
|
|
|
COMMENT= Use OpenGL to play around with three dimensional scenes
|
2001-12-18 18:06:17 +00:00
|
|
|
|
2003-02-23 17:44:37 +00:00
|
|
|
USE_QT_VER= 3
|
2002-07-08 10:41:30 +00:00
|
|
|
USE_REINPLACE= yes
|
2003-02-23 17:44:37 +00:00
|
|
|
USE_GMAKE= yes
|
2001-12-18 18:06:17 +00:00
|
|
|
USE_LIBTOOL= yes
|
2003-05-17 01:14:24 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2001-12-18 18:06:17 +00:00
|
|
|
CONFIGURE_ENV= QTDIR="${X11BASE}"
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2003-02-23 17:44:37 +00:00
|
|
|
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
QTCFGLIBS+= ${PTHREAD_LIBS}
|
|
|
|
|
2001-12-18 18:06:17 +00:00
|
|
|
post-patch:
|
2003-02-23 17:44:37 +00: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
|
|
|
|
|
|
|
|
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 18:06:17 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|