summaryrefslogtreecommitdiff
path: root/x11/qt
diff options
context:
space:
mode:
authordrochner <drochner>1999-10-01 15:12:23 +0000
committerdrochner <drochner>1999-10-01 15:12:23 +0000
commitab2288e82d3b580860ce8119c9ead53a67efd50e (patch)
tree4f3ceaec0a9982612c38cdf517fdfc177cb97c60 /x11/qt
parente0542a835dc82f5e852e2d60ea9235f18f6c68b5 (diff)
downloadpkgsrc-ab2288e82d3b580860ce8119c9ead53a67efd50e.tar.gz
allow to enable GIF support (which is disabled per default due to
licensing problems) with a make variable (USE_GIF)
Diffstat (limited to 'x11/qt')
-rw-r--r--x11/qt/Makefile7
-rw-r--r--x11/qt/files/enablegif.patch11
2 files changed, 17 insertions, 1 deletions
diff --git a/x11/qt/Makefile b/x11/qt/Makefile
index eac54246806..a8a30709558 100644
--- a/x11/qt/Makefile
+++ b/x11/qt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 1999/07/08 08:06:59 agc Exp $
+# $NetBSD: Makefile,v 1.28 1999/10/01 15:12:23 drochner Exp $
#
DISTNAME= qt-1.44
@@ -28,6 +28,11 @@ CXX= ${LOCALBASE}/egcs/bin/g++
do-configure:
@cd ${WRKSRC} && ${MAKE} QTDIR=${WRKSRC} ${LOWER_OPSYS}-g++-static
+.if defined(USE_GIF)
+pre-build:
+ cd ${WRKSRC} && ${PATCH} <${FILESDIR}/enablegif.patch
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/moc ${PREFIX}/bin/
@${LIBTOOL} ${INSTALL_DATA} ${WRKSRC}/src/libqt.la ${PREFIX}/lib/
diff --git a/x11/qt/files/enablegif.patch b/x11/qt/files/enablegif.patch
new file mode 100644
index 00000000000..d3b7924e0c4
--- /dev/null
+++ b/x11/qt/files/enablegif.patch
@@ -0,0 +1,11 @@
+$NetBSD: enablegif.patch,v 1.1 1999/10/01 15:12:23 drochner Exp $
+--- src/kernel/qt_gif.h.orig Fri Feb 26 17:58:47 1999
++++ src/kernel/qt_gif.h Sun Sep 26 00:09:22 1999
+@@ -14,6 +14,6 @@
+ **
+ *****************************************************************************/
+
+-#define QT_BUILTIN_GIF_READER 0
++#define QT_BUILTIN_GIF_READER 1
+
+ bool qt_builtin_gif_reader();