pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/wine Convert to options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1179cd5c2576
branches:  trunk
changeset: 494916:1179cd5c2576
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue May 31 21:42:04 2005 +0000

description:
Convert to options framework.

diffstat:

 emulators/wine/Makefile   |   9 ++-------
 emulators/wine/options.mk |  10 ++++++++++
 2 files changed, 12 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r a91585495b84 -r 1179cd5c2576 emulators/wine/Makefile
--- a/emulators/wine/Makefile   Tue May 31 21:40:37 2005 +0000
+++ b/emulators/wine/Makefile   Tue May 31 21:42:04 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.85 2005/05/25 08:23:43 adam Exp $
+# $NetBSD: Makefile,v 1.86 2005/05/31 21:42:04 wiz Exp $
 
 DISTNAME=      Wine-20050524
 PKGNAME=       ${DISTNAME:S/W/w/}
@@ -38,12 +38,7 @@
 CONFIGURE_ENV+=                CFLAGS="${CFLAGS} -DDEVOSSAUDIO=\"${DEVOSSAUDIO}\""
 LIBS+=                 ${LDFLAGS}
 
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(USE_CUPS) && (${USE_CUPS} == YES)
-.  include "../../print/cups/buildlink3.mk"
-BUILD_DEFS+=           USE_CUPS
-.endif
+.include "options.mk"
 
 EGDIR=                 ${PREFIX}/share/wine
 
diff -r a91585495b84 -r 1179cd5c2576 emulators/wine/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/wine/options.mk Tue May 31 21:42:04 2005 +0000
@@ -0,0 +1,10 @@
+# $NetBSD: options.mk,v 1.1 2005/05/31 21:42:04 wiz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.wine
+PKG_SUPPORTED_OPTIONS= cups
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcups)
+.include "../../print/cups/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index