aboutsummaryrefslogtreecommitdiffstats
path: root/devel/qt4-makeqpf
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2007-07-16 18:12:15 +0800
committerlofi <lofi@FreeBSD.org>2007-07-16 18:12:15 +0800
commitd6fbb55c8d08bce8c098cf446709cb19c7a99e7a (patch)
tree5f5e822ab4d9145d6928fa3ad65d393697b8b1d6 /devel/qt4-makeqpf
parent91f7eacf6952fa98d2d8a4b08aa0a185fae8315a (diff)
downloadfreebsd-ports-gnome-d6fbb55c8d08bce8c098cf446709cb19c7a99e7a.tar.gz
freebsd-ports-gnome-d6fbb55c8d08bce8c098cf446709cb19c7a99e7a.tar.zst
freebsd-ports-gnome-d6fbb55c8d08bce8c098cf446709cb19c7a99e7a.zip
Update to Qt 4.3.0, introduce bsd.qt.mk.
Approved by: portmgr (bsd.port.mk changes)
Diffstat (limited to 'devel/qt4-makeqpf')
-rw-r--r--devel/qt4-makeqpf/Makefile55
-rw-r--r--devel/qt4-makeqpf/distinfo3
-rw-r--r--devel/qt4-makeqpf/files/patch-tools-makeqpf-qpf2.cpp11
-rw-r--r--devel/qt4-makeqpf/pkg-descr12
-rw-r--r--devel/qt4-makeqpf/pkg-plist2
5 files changed, 83 insertions, 0 deletions
diff --git a/devel/qt4-makeqpf/Makefile b/devel/qt4-makeqpf/Makefile
new file mode 100644
index 000000000000..85274db8ef62
--- /dev/null
+++ b/devel/qt4-makeqpf/Makefile
@@ -0,0 +1,55 @@
+# -*-mode: makefile-*-
+# New ports collection makefile for: qt40
+# Date created: Wed Jun 29 11:49:42 CEST 2005
+# Whom: lofi@freebsd.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= makeqpf
+PORTVERSION= ${QT4_VERSION}
+PORTREVISION=0
+CATEGORIES?= devel
+MASTER_SITES= ${MASTER_SITE_QT}
+PKGNAMEPREFIX= qt4-
+DISTNAME= qt-x11-opensource-src-${PORTVERSION}
+DIST_SUBDIR= KDE
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= Qt qtopia font creator
+
+USE_QT_VER= 4
+QT_COMPONENTS= qmake moc rcc uic corelib gui
+QT_NONSTANDARD= yes
+QT_DIST= yes
+
+HAS_CONFIGURE= yes
+
+ALL_TARGET= first
+CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
+MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib \
+ PATH=${WRKSRC}/bin:$$PATH
+EXTRACT_AFTER_ARGS=| ${TAR} -xf - \
+ --exclude '${DISTNAME}/mkspecs' --exclude '${DISTNAME}/qmake' \
+ --exclude '${DISTNAME}/demos' --exclude '${DISTNAME}/examples' \
+ --exclude '${DISTNAME}/src/opengl' --exclude '${DISTNAME}/src/qt3support' \
+ --exclude '${DISTNAME}/src/sql' --exclude '${DISTNAME}/src/plugins' \
+ --exclude '${DISTNAME}/src/3rdparty' --exclude '${DISTNAME}/src/tools/moc' \
+ --exclude '${DISTNAME}/src/tools/rcc' --exclude '${DISTNAME}/src/tools/uic' \
+ --exclude '${DISTNAME}/src/tools/uic3' --exclude '${DISTNAME}/tools/porting' \
+ --exclude '${DISTNAME}/tools/qtconfig' --exclude '${DISTNAME}/tools/qvfb'
+WRKSRC= ${WRKDIR}/${DISTNAME}/tools/${PORTNAME}
+CONFIGURE_WRKSRC=${WRKSRC}/../../
+
+pre-configure:
+ ${CP} ${.CURDIR}/../../devel/qt4/files/configure ${CONFIGURE_WRKSRC}
+ ${REINPLACE_CMD} -e 's|target.path.*|target.path=${PREFIX}/bin|g' \
+ -E -e 's|^TARGET[[:blank:]]*=[[:blank:]]*|TARGET=${PORTNAME}-qt4|g' \
+ ${WRKSRC}/${PORTNAME}.pro
+ ${MKDIR} ${WRKSRC}/../../mkspecs
+ ${LN} -sf ${LOCALBASE}/bin/qmake-qt4 ${WRKSRC}/../../bin/qmake
+ ${LN} -sf ${LOCALBASE}/bin/moc-qt4 ${WRKSRC}/../../bin/moc
+ ${LN} -sf ${LOCALBASE}/bin/uic-qt4 ${WRKSRC}/../../bin/uic
+ ${LN} -sf ${LOCALBASE}/bin/rcc ${WRKSRC}/../../bin/rcc
+
+.include <bsd.port.mk>
diff --git a/devel/qt4-makeqpf/distinfo b/devel/qt4-makeqpf/distinfo
new file mode 100644
index 000000000000..8fb631a2787d
--- /dev/null
+++ b/devel/qt4-makeqpf/distinfo
@@ -0,0 +1,3 @@
+MD5 (KDE/qt-x11-opensource-src-4.3.0.tar.gz) = 8012acea71b35c18247bd92c4721589d
+SHA256 (KDE/qt-x11-opensource-src-4.3.0.tar.gz) = abc37774d327a9b1d1d35e223f014c7e92168cd6c7baf66156badca68f8f1440
+SIZE (KDE/qt-x11-opensource-src-4.3.0.tar.gz) = 41955515
diff --git a/devel/qt4-makeqpf/files/patch-tools-makeqpf-qpf2.cpp b/devel/qt4-makeqpf/files/patch-tools-makeqpf-qpf2.cpp
new file mode 100644
index 000000000000..e91adeeccea1
--- /dev/null
+++ b/devel/qt4-makeqpf/files/patch-tools-makeqpf-qpf2.cpp
@@ -0,0 +1,11 @@
+--- qpf2.cpp Sun Jul 8 08:08:09 2007
++++ qpf2.cpp Sun Jul 8 08:08:33 2007
+@@ -342,6 +342,8 @@
+ int startGlyphIndex;
+ };
+
++#define log2(x) log(x)/log(2)
++
+ static QByteArray generateTrueTypeCMap(QFontEngine *fe)
+ {
+ QByteArray cmap;
diff --git a/devel/qt4-makeqpf/pkg-descr b/devel/qt4-makeqpf/pkg-descr
new file mode 100644
index 000000000000..efc79b9aaf24
--- /dev/null
+++ b/devel/qt4-makeqpf/pkg-descr
@@ -0,0 +1,12 @@
+Qt is a C++ toolkit for application development. It lets application
+developers target all major operating systems with a single application
+source code.
+
+Qt provides a platform-independent API to all central platform functionality:
+GUI, database access, networking, file handling, etc. The Qt library
+encapsulates the different APIs of different operating systems, providing
+the application programmer with a single, common API for all operating systems.
+The native C APIs are encapsulated in a set of well-designed, fully
+object-oriented C++ classes.
+
+WWW: http://www.trolltech.com/products/qt/index.html
diff --git a/devel/qt4-makeqpf/pkg-plist b/devel/qt4-makeqpf/pkg-plist
new file mode 100644
index 000000000000..e559beaa3c72
--- /dev/null
+++ b/devel/qt4-makeqpf/pkg-plist
@@ -0,0 +1,2 @@
+bin/makeqpf-qt4
+bin/makeqpf-qt4.debug