pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/qt1 Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a053e90735a5
branches:  trunk
changeset: 495025:a053e90735a5
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Jun 01 19:21:57 2005 +0000

description:
Convert to options framework.

diffstat:

 x11/qt1/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 75a3679aadb9 -r a053e90735a5 x11/qt1/Makefile
--- a/x11/qt1/Makefile  Wed Jun 01 19:13:24 2005 +0000
+++ b/x11/qt1/Makefile  Wed Jun 01 19:21:57 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2005/06/01 18:03:30 jlam Exp $
+# $NetBSD: Makefile,v 1.22 2005/06/01 19:21:57 wiz Exp $
 #
 
 DISTNAME=      qt-1.44
@@ -23,14 +23,16 @@
 MAKE_ENV+=     CXXOPTS="${CFLAGS}"
 BUILD_TARGET=  src
 
-.include "../../mk/bsd.prefs.mk"
+PKG_OPTIONS_VAR=       PKG_OPTIONS.qt1
+PKG_SUPPORTED_OPTIONS= gif
 
+.include "../../mk/bsd.options.mk"
 .include "../../mk/x11.buildlink3.mk"
 
 do-configure:
        @cd ${WRKSRC} && ${MAKE} QTDIR=${WRKSRC} ${LOWER_OPSYS}-g++-static
 
-.if defined(USE_GIF)
+.if !empty(PKG_OPTIONS:Mgif)
 post-patch:
        cd ${WRKSRC} && ${PATCH} <${FILESDIR}/enablegif.patch
 .endif



Home | Main Index | Thread Index | Old Index