aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11-toolkits/qt4-gui/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/x11-toolkits/qt4-gui/Makefile b/x11-toolkits/qt4-gui/Makefile
index c459f931cd30..78f92a9091c3 100644
--- a/x11-toolkits/qt4-gui/Makefile
+++ b/x11-toolkits/qt4-gui/Makefile
@@ -8,7 +8,7 @@
PORTNAME= gui
PORTVERSION= ${QT4_VERSION}
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES?= x11-toolkits
MASTER_SITES= ${MASTER_SITE_QT}
PKGNAMEPREFIX= qt4-
@@ -18,8 +18,9 @@ DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt graphical user interface library
-LIB_DEPENDS?= png:${PORTSDIR}/graphics/png \
+LIB_DEPENDS= png:${PORTSDIR}/graphics/png \
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
+RUN_DEPENDS= xdg-open:${PORTSDIR}/devel/xdg-utils
MAKE_JOBS_SAFE= yes
@@ -34,7 +35,7 @@ USE_XORG= xrender xrandr xinerama inputproto xfixes \
sm xcursor xext x11 ice xi xt
ALL_TARGET= first
-CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
+CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib \
PATH=${WRKSRC}/bin:$$PATH
@@ -54,6 +55,9 @@ PATCH_WRKSRC=${CONFIGURE_WRKSRC}
CONFIGURE_ARGS+= -I../../include/Qt -I../../include
+FONTSCALE= ${LOCALBASE}/lib/X11/fonts/TTF/luximb.ttf
+FONTENCOD= ${LOCALBASE}/lib/X11/fonts/encodings/encodings.dir
+
.include "${.CURDIR}/../../devel/qt4/files/Makefile.options"
.if ${QT4_OPTIONS:MCUPS}
@@ -75,6 +79,11 @@ CONFIGURE_ARGS+=-system-nas-sound
CONFIGURE_ARGS+=-no-nas-sound
.endif
+.if defined(PACKAGE_BUILDING)
+RUN_DEPENDS+= ${FONTSCALE}:${X_FONTS_TTF_PORT} \
+ ${FONTENCOD}:${X_FONTS_ENCODINGS_PORT}
+.endif
+
pre-configure:
${CP} ${.CURDIR}/../../devel/qt4/files/configure ${CONFIGURE_WRKSRC}
${MKDIR} ${WRKSRC}/../../mkspecs