blob: e2685b9bd13377c5ae4c89506905a8384712acd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Created by: lofi@FreeBSD.org, mi@aldan.algebra.com
# $FreeBSD$
PORTNAME= qmake
DISTVERSION= ${QT4_VERSION}
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} -R ${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/*/*.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>
|