summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-05-31 21:42:04 +0000
committerwiz <wiz@pkgsrc.org>2005-05-31 21:42:04 +0000
commit4e65176c05988bd6e4c6857706032997c7e4bdb4 (patch)
treed18b5d0da5039895914050c49dd4a7669b723fa1 /emulators
parent931f84c0ee8f232b0de1b662f8df750cec7ff39e (diff)
downloadpkgsrc-4e65176c05988bd6e4c6857706032997c7e4bdb4.tar.gz
Convert to options framework.
Diffstat (limited to 'emulators')
-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