mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
5271da855f
For a while now bsdtar is able to autotermine compression and archive format. Let's then use tar directly instead of piping to tar. Now USE_BZIP2 and USE_XZ only set EXTRACT_SUFX to the right format
81 lines
2.4 KiB
Makefile
81 lines
2.4 KiB
Makefile
# Created by: 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
|
|
|
|
USE_QT4= #empty
|
|
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= \
|
|
'${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|uic|uic-qt4|' \
|
|
-e 's|moc|moc-qt4|' \
|
|
${WRKSRC}/../mkspecs/freebsd-*/qmake.conf
|
|
@${REINPLACE_CMD} -e 's|@QMAKE_QTOBJS@||g' ${WRKSRC}/Makefile.unix
|
|
|
|
# FIXME: This is ugly
|
|
@${RM} ${WRKSRC}/../mkspecs/freebsd-g++/*.orig
|
|
@${RM} ${WRKSRC}/../mkspecs/freebsd-g++46/*.orig
|
|
|
|
# Add mkspec for clang
|
|
@${CP} -PpR ${WRKSRC}/../mkspecs/freebsd-g++46 ${WRKSRC}/../mkspecs/freebsd-clang
|
|
@${REINPLACE_CMD} -e 's|g++-unix.conf|clang.conf|g' \
|
|
-e 's|freebsd-g++46|freebsd-clang|g' \
|
|
-e 's|gcc46|clang|g' \
|
|
-e 's|g++46|clang++|g' \
|
|
${WRKSRC}/../mkspecs/freebsd-clang/qmake.conf
|
|
|
|
# Add mkspecs for the different GCC versions in the ports tree
|
|
.for v in 42 44 47 48
|
|
@${CP} -PpR ${WRKSRC}/../mkspecs/freebsd-g++46 ${WRKSRC}/../mkspecs/freebsd-g++${v}
|
|
@${REINPLACE_CMD} -e 's|46|${v}|g' \
|
|
${WRKSRC}/../mkspecs/freebsd-g++${v}/qmake.conf
|
|
.endfor
|
|
|
|
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}/../src/corelib/global/qconfig.h
|
|
|
|
post-install:
|
|
${LN} -sf ${PREFIX}/share/qt4/mkspecs/freebsd-${QMAKE_BASE_COMPILER} ${PREFIX}/share/qt4/mkspecs/default
|
|
|
|
.include <bsd.port.mk>
|