1996-12-17 07:11:54 +00:00
|
|
|
# New ports collection makefile for: qt
|
1996-07-31 00:20:49 +00:00
|
|
|
# Date created: 30 Jul 1996
|
|
|
|
# Whom: searle@longacre.demon.co.uk
|
|
|
|
#
|
1999-08-31 03:04:38 +00:00
|
|
|
# $FreeBSD$
|
1996-07-31 00:20:49 +00:00
|
|
|
#
|
|
|
|
|
2000-04-10 01:11:24 +00:00
|
|
|
PORTNAME= qt
|
|
|
|
PORTVERSION= 1.45
|
1998-08-07 22:56:48 +00:00
|
|
|
CATEGORIES= x11-toolkits
|
2000-04-14 16:10:27 +00:00
|
|
|
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/
|
1996-07-31 00:20:49 +00:00
|
|
|
|
2000-03-22 01:59:41 +00:00
|
|
|
MAINTAINER= will@FreeBSD.org
|
1998-04-28 02:07:56 +00:00
|
|
|
|
1996-07-31 00:20:49 +00:00
|
|
|
USE_GMAKE= yes
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
1998-08-05 09:31:52 +00:00
|
|
|
USE_X_PREFIX= yes
|
2000-02-21 06:45:29 +00:00
|
|
|
USE_NEWGCC= yes
|
|
|
|
MAKE_ENV+= QTDIR=${WRKSRC} CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" CC="${CC}"
|
1996-07-31 00:20:49 +00:00
|
|
|
|
2000-02-21 06:45:29 +00:00
|
|
|
VER_MAJ= 3
|
|
|
|
VER_MIN= 0
|
|
|
|
VERSION= ${VER_MAJ}
|
1999-01-07 10:58:33 +00:00
|
|
|
|
2000-02-21 06:45:29 +00:00
|
|
|
MAKE_ENV+= VERSION="${VERSION}" VER_MIN=${VER_MIN} VER_MAJ=${VER_MAJ}
|
2000-05-30 04:16:00 +00:00
|
|
|
PLIST_SUB+= VERSION="${VER_MAJ}"
|
2000-02-21 06:45:29 +00:00
|
|
|
|
1998-04-28 20:14:22 +00:00
|
|
|
MAN1= moc.1
|
2000-06-03 00:44:30 +00:00
|
|
|
.include "${.CURDIR}/files/man3"
|
1996-12-11 10:18:45 +00:00
|
|
|
|
1997-04-11 04:35:35 +00:00
|
|
|
post-configure:
|
2000-02-21 06:45:29 +00:00
|
|
|
@${PERL} -pi -e "s:g\+\+:${CXX}:g" ${WRKSRC}/configs/freebsd-g++-shared
|
|
|
|
@${PERL} -pi -e "s:/usr/X11R6:${PREFIX}:g" ${WRKSRC}/configs/freebsd-g++-shared
|
|
|
|
@${PERL} -pi -e "s:%%CXXFLAGS%%:${CXXFLAGS}:g" ${WRKSRC}/configs/freebsd-g++-shared
|
|
|
|
@${PERL} -pi -e "s:%%VERSION%%:${VERSION}:g" ${WRKSRC}/configs/freebsd-g++-shared
|
|
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} freebsd-g++-shared)
|
1996-11-13 12:41:39 +00:00
|
|
|
|
1996-07-31 00:20:49 +00:00
|
|
|
do-install:
|
2000-02-21 06:45:29 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/moc $(PREFIX)/bin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lib/libqt.so.${VERSION} $(PREFIX)/lib
|
|
|
|
@${LN} -sf $(PREFIX)/lib/libqt.so.$(VERSION) $(PREFIX)/lib/libqt.so
|
|
|
|
@${MKDIR} $(PREFIX)/include/X11/qt
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/include/* $(PREFIX)/include/X11/qt
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man1/* $(PREFIX)/man/man1
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man3/* $(PREFIX)/man/man3
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/qt/html
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/qt
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README.QT ${PREFIX}/share/doc/qt
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/html/* ${PREFIX}/share/doc/qt/html
|
1996-07-31 00:20:49 +00:00
|
|
|
|
2000-05-30 04:16:00 +00:00
|
|
|
.include <bsd.port.mk>
|