mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
785011bfec
download.qt-project.org is a CDN and should redirect to the closest mirror anyway, but a few more mirrors have been added just in case.
65 lines
1.6 KiB
Makefile
65 lines
1.6 KiB
Makefile
# Created by: mi@aldan.algebra.com
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qmake
|
|
PORTVERSION= 3.3.8
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_QT}
|
|
MASTER_SITE_SUBDIR= archive/qt/${PORTVERSION:R:R}
|
|
DISTNAME= qt-x11-free-${PORTVERSION}
|
|
DIST_SUBDIR= KDE
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
COMMENT= The build utility of the Qt project
|
|
|
|
REINPLACE_ARGS= -i ""
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/qmake
|
|
MAKEFILE= ${FILESDIR}/Makefile.bsd
|
|
MAKE_JOBS_SAFE= yes
|
|
PLIST_SUB+= _PREFIX="${PREFIX}"
|
|
MAKE_ENV+= FILESDIR="${FILESDIR}"
|
|
|
|
USE_BZIP2= yes
|
|
|
|
EXTRACT_AFTER_ARGS= \
|
|
'${DISTNAME}/mkspecs' \
|
|
'${DISTNAME}/src/*/*.h' '${DISTNAME}/qmake' \
|
|
'${DISTNAME}/src/tools'
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
EXTRACT_AFTER_ARGS+='${DISTNAME}/doc/html/qmake*'
|
|
DOCSDIR=${PREFIX}/share/doc/qt
|
|
PLIST_SUB+= DOCSDIR='${DOCSDIR}'
|
|
post-install:
|
|
${MKDIR} '${DOCSDIR}'
|
|
${CP} -Rp '${WRKSRC:H}/doc/html' '${DOCSDIR}'
|
|
.endif
|
|
|
|
post-patch:
|
|
@${RM} -fr ${WRKSRC}/examples ${WRKSRC}/tutorial
|
|
@${REINPLACE_CMD} -e 's|-O2|${CXXFLAGS}|' \
|
|
-e 's|gcc|${CC}|' \
|
|
-e 's|g++|${CXX}|' \
|
|
-e 's|/usr/local|${LOCALBASE}|' \
|
|
-e 's|/usr/X11R6|${LOCALBASE}|' \
|
|
-e 's|release|release thread|' \
|
|
${WRKSRC}/../mkspecs/freebsd-g++/qmake.conf
|
|
@${REINPLACE_CMD} -e 's|@QMAKE_QTOBJS@||g' ${WRKSRC}/Makefile.unix
|
|
|
|
do-configure:
|
|
${SED} -e 's|/usr/local|${PREFIX}|g' \
|
|
< ${FILESDIR}/qconfig.cpp \
|
|
> ${WRKSRC:H}/src/tools/qconfig.cpp
|
|
${ECHO} '/* empty */' > ${WRKSRC}/qconfig.h
|
|
${LN} ${WRKSRC}/qconfig.h ${WRKSRC}/qmodules.h
|
|
${LN} -s . ${WRKDIR}/${DISTNAME}/src/tools/private
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "alpha"
|
|
CXXFLAGS+= -mieee
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|