blob: abe10f701f86e2f58c92990b62b4f7a6003ee0ca (
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
|
# ex:ts=8
# New ports collection makefile for: qglviewer
# Date created: Dec 18, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= qglviewer
PORTVERSION= 1.4
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://www.qglviewer.de/
MAINTAINER= ports@FreeBSD.org
COMMENT= Use OpenGL to play around with three dimensional scenes
USE_QT_VER= 3
USE_REINPLACE= yes
USE_GMAKE= yes
USE_LIBTOOL_VER=13
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= QTDIR="${X11BASE}"
INSTALLS_SHLIB= yes
QTCPPFLAGS+= ${PTHREAD_CFLAGS}
QTCFGLIBS+= ${PTHREAD_LIBS}
post-patch:
@${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
pre-build:
-@${RM} ${WRKSRC}/src/QCameraKeyPathEditor.h
-@${RM} ${WRKSRC}/src/QLightSourceEditor.h
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
.include <bsd.port.mk>
|