1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/devel/qmake4/Makefile
Max Brazhnikov 43a46c6993 KDE FreeBSD team is glad to present Qt 4.7.1 in ports.
Along with Qt4 the following ports are updated:

PyQt4 ports to 4.8.1
devel/py-sip to 4.11.2
devel/qscintilla2 to 2.4.5
PyKDE3 to 3.16.7
PyQt3 tp 3.18.2-snapshot-20091119

New ports added:
devel/qt4-declarative
devel/py-qt4-declarative
x11/qt4-graphicssystems-opengl

This release has been contributed by:
Thomas Abthorpe (tabthorpe)
Max Brazhnikov (makc)
Dima Panov (fluffy)
Alberto Villa (avilla)

We'd like to thank Martin Wilke (miwi) for exp-run.
2010-12-02 19:47:17 +00:00

94 lines
2.8 KiB
Makefile

# New ports collection makefile for: qmake-4
# Date created: Tue Jul 12 16:04:29 UTC 2005
# Whom: lofi@freebsd.org,
# mi@aldan.algebra.com
#
# $FreeBSD$
PORTNAME= qmake
DISTVERSION= ${QT4_VERSION}
CATEGORIES= devel
PKGNAMEPREFIX= qt4-
MAINTAINER= kde@FreeBSD.org
COMMENT= The build utility of the Qt project
QT_NONSTANDARD= yes
QT_DIST= yes
REINPLACE_ARGS= -i ""
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
MAKEFILE= ${FILESDIR}/Makefile.bsd
MAKE_ENV+= FILESDIR="${FILESDIR}"
MAKE_JOBS_SAFE= yes
TODAY_CMD= /bin/date +%Y-%m-%d
EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
'${DISTNAME}/mkspecs' \
'${DISTNAME}/include/*/*' \
'${DISTNAME}/src/*/*.h' \
'${DISTNAME}/qmake' \
'${DISTNAME}/src/corelib/tools' \
'${DISTNAME}/src/corelib/io' \
'${DISTNAME}/src/corelib/global' \
'${DISTNAME}/src/corelib/plugin' \
'${DISTNAME}/src/corelib/kernel' \
'${DISTNAME}/src/corelib/codecs' \
'${DISTNAME}/src/corelib/xml' \
'${DISTNAME}/src/3rdparty/md4' \
'${DISTNAME}/src/3rdparty/md5' \
'${DISTNAME}/src/3rdparty/sha1' \
'${DISTNAME}/tools/shared/symbian' \
'${DISTNAME}/tools/shared/windows'
post-patch:
@${REINPLACE_CMD} -e 's|-O2|${CXXFLAGS}|' \
-e 's|/usr/local|${LOCALBASE}|' \
-e 's|/usr/X11R6|${LOCALBASE}|' \
-e 's|release|release thread|' \
-e 's|-pthread -D_THREAD_SAFE|${PTHREAD_CFLAGS}|' \
-e 's|-pthread|${PTHREAD_LIBS}|' \
-e 's|uic|uic-qt4|' \
-e 's|moc|moc-qt4|' \
${WRKSRC}/../mkspecs/freebsd-*/qmake.conf
@${REINPLACE_CMD} -e 's|@QMAKE_QTOBJS@||g' ${WRKSRC}/Makefile.unix
# Add mkspecs for all the available compilers.
@${CP} ${WRKSRC}/../mkspecs/common/g++.conf ${WRKSRC}/../mkspecs/common/clang.conf
@${REINPLACE_CMD} -e 's|gcc|clang|g' -e 's|g++|clang++|g' \
${WRKSRC}/../mkspecs/common/clang.conf
.for c in clang llvm
@${CP} -PpR ${WRKSRC}/../mkspecs/freebsd-g++ ${WRKSRC}/../mkspecs/freebsd-${c}
@${REINPLACE_CMD} -e 's|g++|${c}|g' \
${WRKSRC}/../mkspecs/freebsd-${c}/qmake.conf
.endfor
.for v in 42 43 44 45 46
@${CP} -PpR ${WRKSRC}/../mkspecs/freebsd-g++40 ${WRKSRC}/../mkspecs/freebsd-g++${v}
@${REINPLACE_CMD} -e 's|40|${v}|g' \
${WRKSRC}/../mkspecs/freebsd-g++${v}/qmake.conf
.endfor
@${RM} -r ${WRKSRC}/../mkspecs/freebsd-g++40
do-configure:
${SED} -e 's|/usr/local|${PREFIX}|g' \
-e "s|TODAY|$$(${TODAY_CMD})|g" \
< ${FILESDIR}/qconfig.cpp \
> ${WRKSRC:H}/src/corelib/global/qconfig.cpp
${ECHO} '/* empty */' > ${WRKSRC}/qconfig.h
# ${LN} ${WRKSRC}/qconfig.h ${WRKSRC}/../include/QtCore/qconfig.h
${LN} ${WRKSRC}/qconfig.h ${WRKSRC}/../src/corelib/global/qconfig.h
.include <bsd.port.pre.mk>
.include "${.CURDIR}/../../Mk/bsd.qt.mk"
.if ${ARCH} == "alpha"
CXXFLAGS+= -mieee
.endif
.if ${OSVERSION} < 700042 && ${ARCH} == "amd64"
CXXFLAGS+= -fno-gcse
.endif
post-install:
${LN} -sf ${PREFIX}/share/qt4/mkspecs/freebsd-${QMAKE_BASE_COMPILER} ${PREFIX}/share/qt4/mkspecs/default
.include <bsd.port.post.mk>