summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt33/Makefile
blob: 154f467a84750bf56678795890390d088303c9f4 (plain)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:   qt201
# Version required:	2.0.1
# Date created:		17 Jul 1999
# Whom:			imura@cs.titech.ac.jp
#
# $FreeBSD$
#

DISTNAME=	qt-2.0.1
CATEGORIES=	x11-toolkits
MASTER_SITES=	ftp://ftp.troll.no/qt/source/

MAINTAINER=	imura@cs.titech.ac.jp

LIB_DEPENDS=	png.3:${PORTSDIR}/graphics/png

NO_LATEST_LINK=	yes
USE_GMAKE=	yes
USE_X_PREFIX=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	-system-zlib -system-libpng
CONFIGURE_ENV=	QTDIR=${WRKSRC}
MAKE_ENV+=	QTDIR=${WRKSRC} SYS_CXX=${CXX} SYS_CC=${CC} SYS_CXXFLAGS="${CXXFLAGS}"

.include <bsd.port.pre.mk>

.if defined(QT_GIF_AVAILABLE)
CONFIGURE_ARGS+=-gif
RESTRICTED=	'Requires a license from UNISYS'
.endif

USE_NEWGCC=	YES

.if ${PORTOBJFORMAT} == "elf"
VERSION=	2
.else
VERSION=	2.01
.endif
PLIST_SUB=	VERSION=${VERSION}

.include "files/manpages"

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/mergetr ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${PREFIX}/bin/moc2
	${INSTALL_PROGRAM} ${WRKSRC}/bin/msg2qm ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/findtr ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/qt20fix ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/qtrename140 ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/lib/libqt2.so.${VERSION} ${PREFIX}/lib/libqt2.so.${VERSION}
	${LN} -sf ${PREFIX}/lib/libqt2.so.${VERSION} ${PREFIX}/lib/libqt2.so
	${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
	${MKDIR} ${PREFIX}/include/X11/qt2
	${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/X11/qt2
	${INSTALL_MAN} ${WRKSRC}/man/man1/moc.1 ${PREFIX}/man/man1/moc2.1
	${INSTALL_MAN} ${WRKSRC}/man/man3/q* ${PREFIX}/man/man3
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/qt2/html
	${INSTALL_DATA} ${WRKSRC}/FAQ ${PREFIX}/share/doc/qt2
	${INSTALL_DATA} ${WRKSRC}/LICENSE.QPL ${PREFIX}/share/doc/qt2
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qt2
	${INSTALL_DATA} ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt2
	${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/qt2/html
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud