aboutsummaryrefslogtreecommitdiffstats
path: root/devel/qt-designer/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/qt-designer/Makefile')
-rw-r--r--devel/qt-designer/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/devel/qt-designer/Makefile b/devel/qt-designer/Makefile
index 0ca0b97b5d70..d862aa6c16ae 100644
--- a/devel/qt-designer/Makefile
+++ b/devel/qt-designer/Makefile
@@ -16,12 +16,22 @@ post-patch:
do-build:
(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
+qt-pre-configure:
+ ${PERL} -pi -e 's@DESTDIR = \$$\(QTDIR\)/bin@DESTDIR = ../../../bin@g' \
+ ${WRKSRC}/tools/designer/designer/Makefile.in
+ ${PERL} -pi -e 's@sub-tools: sub-src @sub-tools: @g' ${WRKSRC}/Makefile
+ ${PERL} -pi -e "s@\$$(MAKE) util@@g; s@\$$(MAKE) uic@@g; \
+ s@util \\\@designer@g; s@uic \\\@@g; \
+ s@\t\tdesigner@@g" ${WRKSRC}/tools/designer/Makefile.in
+ ${PERL} -pi -e "s@getenv\( \"QTDIR\" \)@QT_PREFIX@g; \
+ s@/tools/designer/templates@/share/qt2/designer/templates@g" \
+ ${WRKSRC}/tools/designer/designer/newformimpl.cpp
+
.include "${MASTERDIR}/Makefile"
LIB_DEPENDS+= qt2.4:${PORTSDIR}/x11-toolkits/qt23
WRKSRC= ${WRKDIR}/qt-${PORTVERSION}
-PATCHDIR= ${.CURDIR}/files
PATCH_WRKSRC= ${WRKSRC}
PKGDIR= ${.CURDIR}
MAKE_ENV= QTDIR=${PREFIX} LD_LIBRARY_PATH=${PREFIX}/lib PREFIX=${PREFIX}