pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/libcaca Convert to options framework, patch p...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/414e9938af6c
branches:  trunk
changeset: 497481:414e9938af6c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Jul 28 19:21:02 2005 +0000

description:
Convert to options framework, patch provided by Leonard Schmidt
in follow-up to PR 30318.

diffstat:

 graphics/libcaca/Makefile   |  21 +++++++++++----------
 graphics/libcaca/options.mk |  37 +++++++++++++++++++++++++++++++++++++
 2 files changed, 48 insertions(+), 10 deletions(-)

diffs (84 lines):

diff -r e36459ae3ca6 -r 414e9938af6c graphics/libcaca/Makefile
--- a/graphics/libcaca/Makefile Thu Jul 28 19:20:29 2005 +0000
+++ b/graphics/libcaca/Makefile Thu Jul 28 19:21:02 2005 +0000
@@ -1,22 +1,24 @@
-# $NetBSD: Makefile,v 1.9 2005/04/11 21:46:05 tv Exp $
+# $NetBSD: Makefile,v 1.10 2005/07/28 19:21:02 wiz Exp $
 #
 
-DISTNAME=              libcaca-0.9
+DISTNAME=      libcaca-0.9
 PKGREVISION=   1
-CATEGORIES=            graphics
-MASTER_SITES=          http://sam.zoy.org/projects/libcaca/
-EXTRACT_SUFX=          .tar.bz2
+CATEGORIES=    graphics
+MASTER_SITES=  http://sam.zoy.org/projects/libcaca/
+EXTRACT_SUFX=  .tar.bz2
 
-MAINTAINER=            wiz%NetBSD.org@localhost
-HOMEPAGE=              http://sam.zoy.org/projects/libcaca/
-COMMENT=               Graphics library that outputs text instead of pixels, in colour
+MAINTAINER=    wiz%NetBSD.org@localhost
+HOMEPAGE=      http://sam.zoy.org/projects/libcaca/
+COMMENT=       Graphics library that outputs text instead of pixels, in colour
 
 USE_LIBTOOL=           yes
 USE_PKGLOCALEDIR=      yes
 GNU_CONFIGURE=         yes
 INCOMPAT_CURSES=       NetBSD-1.5* NetBSD-1.6[-_.]* NetBSD-1.6[A-Q]-*
 
-CONFIGURE_ARGS+=       --disable-slang --enable-ncurses --disable-imlib2 --disable-doc
+.include "options.mk"
+
+CONFIGURE_ARGS+=       --disable-doc
 
 .include "../../mk/bsd.prefs.mk"
 
@@ -24,5 +26,4 @@
 LDFLAGS=       -ldl
 .endif
 
-.include "../../devel/ncurses/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e36459ae3ca6 -r 414e9938af6c graphics/libcaca/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/libcaca/options.mk       Thu Jul 28 19:21:02 2005 +0000
@@ -0,0 +1,37 @@
+# $NetBSD: options.mk,v 1.1 2005/07/28 19:21:02 wiz Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.libcaca
+PKG_SUPPORTED_OPTIONS=         imlib2
+PKG_OPTIONS_NONEMPTY_SETS=     driver
+PKG_OPTIONS_SET.driver=                ncurses slang x11
+PKG_SUGGESTED_OPTIONS=         ncurses
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mimlib2)
+.  include "../../graphics/imlib2/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-imlib2
+.else
+CONFIGURE_ARGS+=       --disable-imlib2
+.endif
+
+.if !empty(PKG_OPTIONS:Mncurses)
+.  include "../../devel/ncurses/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-ncurses
+.else
+CONFIGURE_ARGS+=       --disable-ncurses
+.endif
+
+.if !empty(PKG_OPTIONS:Mslang)
+.  include "../../devel/libslang/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-slang
+.else
+CONFIGURE_ARGS+=       --disable-slang
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+.  include "../../mk/x11.buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-x11
+.else
+CONFIGURE_ARGS+=       --disable-x11
+.endif



Home | Main Index | Thread Index | Old Index