freebsd-ports/devel/qt5-qmake/Makefile
Tobias C. Berner d19d17bd64 qt5: Fix build on GCC based architectures.
PR:		231584
PR:		231677
PR:		231685
PR:		231830
PR:		231955
PR:		231905
PR:		231892
PR:		231684
PR:		231958
PR:		231960
PR:		231818
PR:		231542
PR:		231860
PR:		231681
PR:		231963
PR:		231891
PR:		231966
PR:		231904
PR:		231676
PR:		231819
PR:		231956
PR:		231680
PR:		231957
PR:		231903
PR:		231901
PR:		231667
PR:		231861
Submitted by:	 Piotr Kubaj <pkubaj@anongoth.pl>
2018-10-14 08:01:13 +00:00

46 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= qmake
DISTVERSION= ${QT5_VERSION}
CATEGORIES= devel
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt Makefile generator
USES= compiler:c++11-lib gmake pkgconfig \
python:build qmake:no_env qt-dist:5,base shebangfix
SHEBANG_FILES= util/harfbuzz/update-harfbuzz \
util/unicode/x11/makeencodings \
src/3rdparty/freetype/src/tools/afblue.pl \
mkspecs/features/data/mac/objc_namespace.sh \
mkspecs/features/uikit/devices.py \
mkspecs/features/uikit/device_destinations.sh
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-fontconfig \
-no-gtk -no-xinput2 \
-no-evdev -no-xkbcommon \
-no-freetype -no-gif -no-harfbuzz -no-libjpeg \
-no-libpng -no-widgets
QMAKESPEC= freebsd-${QMAKE_COMPILER}
INSTALL_TARGET= sub-qmake-qmake-aux-pro-install_subtargets install_mkspecs
BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
post-patch:
# Clean up files created by patching
@${RM} ${WRKSRC}/mkspecs/*/*.orig
post-build:
# Complete configure stage to generate *.pri files.
cd ${WRKSRC} && \
${SETENV} CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" BUILD_QMAKE=1 \
${CONFIGURE_ENV} ${CONFIGURE_CMD} ${CONFIGURE_ARGS}
.include <bsd.port.mk>