summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2006-09-20 18:20:39 +0000
committerxtraeme <xtraeme@pkgsrc.org>2006-09-20 18:20:39 +0000
commitf47fa70574a6f81fa8f4ec852b695565967ff51f (patch)
tree1a57d91526a9ff7bb3513a37dbd0eb37e379e12b /x11
parent34a14fd754cc73c4a3bedfa774e1f9b9cc823022 (diff)
downloadpkgsrc-f47fa70574a6f81fa8f4ec852b695565967ff51f.tar.gz
Make X11 dependency an option... and enabled by default as before.
Requested by gdamore@.
Diffstat (limited to 'x11')
-rw-r--r--x11/xplanet/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/x11/xplanet/Makefile b/x11/xplanet/Makefile
index 89dd128bf97..a703666cee3 100644
--- a/x11/xplanet/Makefile
+++ b/x11/xplanet/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2006/05/15 23:09:05 joerg Exp $
+# $NetBSD: Makefile,v 1.32 2006/09/20 18:20:39 xtraeme Exp $
DISTNAME= xplanet-1.2.0
PKGREVISION= 3
@@ -21,7 +21,20 @@ pre-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/xplanet/${dir}
.endfor
+PKG_OPTIONS_VAR= PKG_OPTIONS.planet
+PKG_SUPPORTED_OPTIONS= x11
+PKG_SUGGESTED_OPTIONS= x11
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mx11)
.include "../../devel/pango/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-pango
+CONFIGURE_ARGS+= --without-x
+CONFIGURE_ARGS+= --without-xscreensaver
+.endif
+
.include "../../graphics/jpeg/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/libungif/buildlink3.mk"