diff options
author | wiz <wiz@pkgsrc.org> | 2005-07-28 19:21:02 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-07-28 19:21:02 +0000 |
commit | 4dc6356f77db88c6cc5d500a87ade53bc556d433 (patch) | |
tree | 398b65fe1eccb5bb2506845c5e55fabfde96fb31 /graphics | |
parent | 31ae1bd48352e6efbaec14469aedcb99990541c1 (diff) | |
download | pkgsrc-4dc6356f77db88c6cc5d500a87ade53bc556d433.tar.gz |
Convert to options framework, patch provided by Leonard Schmidt
in follow-up to PR 30318.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libcaca/Makefile | 21 | ||||
-rw-r--r-- | graphics/libcaca/options.mk | 37 |
2 files changed, 48 insertions, 10 deletions
diff --git a/graphics/libcaca/Makefile b/graphics/libcaca/Makefile index 3e140859d61..dc7010ec514 100644 --- a/graphics/libcaca/Makefile +++ b/graphics/libcaca/Makefile @@ -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 -HOMEPAGE= http://sam.zoy.org/projects/libcaca/ -COMMENT= Graphics library that outputs text instead of pixels, in colour +MAINTAINER= wiz@NetBSD.org +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 @@ CONFIGURE_ARGS+= --disable-slang --enable-ncurses --disable-imlib2 --disable-doc LDFLAGS= -ldl .endif -.include "../../devel/ncurses/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/graphics/libcaca/options.mk b/graphics/libcaca/options.mk new file mode 100644 index 00000000000..d431634030f --- /dev/null +++ b/graphics/libcaca/options.mk @@ -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 |