summaryrefslogtreecommitdiff
path: root/emulators/wine
diff options
context:
space:
mode:
authorwiz <wiz>2005-05-31 21:42:04 +0000
committerwiz <wiz>2005-05-31 21:42:04 +0000
commitf673d05c14c365341ac8edbf697c284613423259 (patch)
treed18b5d0da5039895914050c49dd4a7669b723fa1 /emulators/wine
parentf3b6f2f2b2787319b886876572e18ea788fef0bf (diff)
downloadpkgsrc-f673d05c14c365341ac8edbf697c284613423259.tar.gz
Convert to options framework.
Diffstat (limited to 'emulators/wine')
-rw-r--r--emulators/wine/Makefile9
-rw-r--r--emulators/wine/options.mk10
2 files changed, 12 insertions, 7 deletions
diff --git a/emulators/wine/Makefile b/emulators/wine/Makefile
index 8bc86e2d14c..e09f7a2a15b 100644
--- a/emulators/wine/Makefile
+++ b/emulators/wine/Makefile
@@ -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+= X_LIBS="${LDFLAGS}"
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 --git a/emulators/wine/options.mk b/emulators/wine/options.mk
new file mode 100644
index 00000000000..6f5a34fc7db
--- /dev/null
+++ b/emulators/wine/options.mk
@@ -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