1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/devel/qmake4/Makefile
Max Brazhnikov 7d5e6b666c In preparation for Qt 5 ports:
Mk/Uses/qmake.mk:
- Add support for out-of-source builds
- Add support for Qt 5 ports
- Respect WITH_DEBUG

Mk/bsd.qt.mk:
- Massive rework for Qt 5 ports
- Remove '-phonon' from global configure args, thus allow qt4-designer and
  qt4-qtconfig to be built without Phonon support [1]

devel/qmake4:
- Improve mkspecs for gcc (mainly sync with linux version) and clang

devel/qt4-corelib:
- Convert to USES=iconv
- Remove ancient patch

devel/qt4-designer:
- Remove reference to WRKSRC from installed pkgconfig files [2]
- Don't build Qt Designer plugin for Phonon from outdated Qt sources.
  Separate port for plugin will be committed later

devel/qt4-assistant-adp, devel/qt4-libqtassistantclient:
- Convert to USES=qmake

Clean up Qt4 ports:
- Update comments
- Update description; use common description
- Consistently use QT_INCDIR, QT_LIBDIR, etc.
- Use options helpers
- Convert to new LIB_DEPENDS syntax
- Update DESKTOP_ENTRIES to avoid conflicts with Qt 5 ports
- Rename/move several ports for unification with Qt 5 ports

PR:		ports/184620 [1]
Reported by:	Kevin Zheng <kevinz5000@gmail.com>

PR:		ports/181141 [2]
Reported by:	thierry

PR:		ports/185101
Exp-run by:	bdrewery

This is mostly solely avilla's work in area51, kudos to him! And a couple
commits from myself, so you know who's collecting pointyhats :)
2014-01-06 16:16:52 +00:00

83 lines
2.4 KiB
Makefile

# Created by: lofi@FreeBSD.org, mi@aldan.algebra.com
# $FreeBSD$
PORTNAME= qmake
DISTVERSION= ${QT4_VERSION}
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= qt4-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt Makefile generator
USE_QT4= # empty
QT_DIST= yes
REINPLACE_ARGS= -i ""
WRKSRC_SUBDIR= ${PORTNAME}
MAKEFILE= ${FILESDIR}/Makefile.bsd
MAKE_ENV+= FILESDIR="${FILESDIR}" \
QMAKE_COMPILER="${QMAKE_COMPILER}" \
QMAKE="${QMAKE}" \
QT_BINDIR_REL="${QT_BINDIR_REL}" \
QT_MKSPECDIR_REL="${QT_MKSPECDIR_REL}"
TODAY_CMD= /bin/date +%Y-%m-%d
SUB_FILES= qconfig.cpp
SUB_LIST= TODAY="$$(${TODAY_CMD})" \
${PLIST_SUB:NPREFIX=*}
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'
EXTRA_PATCHES= # empty
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
-e 's|release|release thread|' \
-e 's|uic|${UIC:T}|' \
-e 's|moc|${MOC:T}|' \
${WRKSRC:H}/mkspecs/common/freebsd.conf
@${REINPLACE_CMD} -e 's|@QMAKE_QTOBJS@||g' ${WRKSRC}/Makefile.unix
@${REINPLACE_CMD} -e 's|unix.conf|freebsd.conf|' \
${WRKSRC:H}/mkspecs/freebsd-icc/qmake.conf
@${RM} -Rf ${WRKSRC:H}/mkspecs/freebsd-g++46
# Add mkspec for clang
@${CP} -a ${WRKSRC:H}/mkspecs/freebsd-g++ \
${WRKSRC:H}/mkspecs/freebsd-clang
@${REINPLACE_CMD} -e 's|g++|clang|g' \
-e '/gcc-base-unix.conf/d' \
${WRKSRC:H}/mkspecs/freebsd-clang/qmake.conf
@${RM} ${WRKSRC:H}/mkspecs/features/unix/*.orig
@${RM} ${WRKSRC:H}/mkspecs/*/*.orig
do-configure: apply-slist
${MV} ${WRKDIR}/qconfig.cpp \
${WRKSRC:H}/src/corelib/global/qconfig.cpp
${ECHO} '/* empty */' > ${WRKSRC}/qconfig.h
${LN} ${WRKSRC}/qconfig.h ${WRKSRC:H}/src/corelib/global/qconfig.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${QMAKE:T} ${STAGEDIR}${PREFIX}/${QT_BINDIR_REL}
${MKDIR} ${STAGEDIR}${PREFIX}/${QT_MKSPECDIR_REL:H} && \
cd ${WRKSRC}/.. && ${COPYTREE_SHARE} mkspecs ${STAGEDIR}${PREFIX}/${QT_MKSPECDIR_REL:H}
${LN} -sf freebsd-${QMAKE_COMPILER} ${STAGEDIR}${PREFIX}/share/qt4/mkspecs/default
.include <bsd.port.mk>