blob: 0f862461e351af6f19f732d0875caadfa28bbd62 (
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
|
# $FreeBSD$
PORTNAME= qmake
DISTVERSION= ${QT5_VERSION}
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt Makefile generator
USE_QT5= # empty
USES= pkgconfig
QT_DIST= base
REINPLACE_ARGS= -i ""
HAS_CONFIGURE= yes
# Disable everything to install minimal qconfig.pri.
CONFIGURE_ARGS= -no-accessibility -no-openssl -no-gui -no-cups \
-no-iconv -no-icu -no-dbus -no-xcb -no-opengl \
-no-glib -no-audio-backend -no-fontconfig \
-no-gtkstyle -no-xinput2 -no-xrender \
-no-evdev -no-xkbcommon -no-alsa \
-no-freetype -no-gif -no-harfbuzz -no-libjpeg \
-no-libpng -no-pulseaudio -no-widgets
# Features yet to be removed from qconfig.pri.
TBR_CONFIG= concurrent|inotify|xlib
QMAKESPEC= ${WRKSRC}/mkspecs/freebsd-${QMAKE_COMPILER}
INSTALL_TARGET= install_qmake install_mkspecs
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
post-patch:
# Prevent qconfig.pri from being module dependent.
@${REINPLACE_CMD} -E -e '/"\$$QT_CONFIG +(${TBR_CONFIG})"/ d' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/mkspecs/common/freebsd.conf
@${REINPLACE_CMD} -e 's|unix.conf|freebsd.conf|' \
${WRKSRC}/mkspecs/freebsd-icc/qmake.conf
# Add mkspec for Clang. For now, this means adjusting the existing
# unsupported/freebsd-clang mkspec while we get it into shape upstream.
@${MV} ${WRKSRC}/mkspecs/unsupported/freebsd-clang \
${WRKSRC}/mkspecs/freebsd-clang
@${REINPLACE_CMD} -e 's|(../|(|g' \
${WRKSRC}/mkspecs/freebsd-clang/qmake.conf
@${REINPLACE_CMD} -e 's|"../|"|g' \
${WRKSRC}/mkspecs/freebsd-clang/qplatformdefs.h
@${RM} ${WRKSRC}/mkspecs/*/*.orig
@${RM} -Rf ${WRKSRC}/mkspecs/freebsd-g++46
post-build:
# Complete configure stage to generate *.pri files.
@cd ${WRKSRC} && \
${SETENV} CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
# Cleanup qmodule.pri to make it module agnostic.
@${REINPLACE_CMD} -En -e '/^(CONFIG|QT_BUILD_PARTS|.*_DIR) / p' \
${WRKSRC}/mkspecs/qmodule.pri
.include <bsd.port.mk>
|