Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Mar 2013 14:06:30 +0000 (UTC)
From:      Max Brazhnikov <makc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r315227 - head/graphics/libcaca
Message-ID:  <201303251406.r2PE6Usj038909@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: makc
Date: Mon Mar 25 14:06:30 2013
New Revision: 315227
URL: http://svnweb.freebsd.org/changeset/ports/315227

Log:
  - Add dependence on libglut [1]
  - Convert to new option framework
  - Convert to USES/PKG_CONFIG
  - Pass more switches to configure script in order to avoid auto-detection
  - Trim Makefile header
  - Update and reformat description
  
  PR:		ports/175963 [1]
  Submitted by:	pawel

Modified:
  head/graphics/libcaca/Makefile   (contents, props changed)
  head/graphics/libcaca/pkg-descr   (contents, props changed)

Modified: head/graphics/libcaca/Makefile
==============================================================================
--- head/graphics/libcaca/Makefile	Mon Mar 25 14:05:23 2013	(r315226)
+++ head/graphics/libcaca/Makefile	Mon Mar 25 14:06:30 2013	(r315227)
@@ -1,20 +1,18 @@
-# New ports collection makefile for:   libcaca
-# Date created:			11 January 2004
-# Whom:				Vincent Tantardini <vinc@FreeBSD-fr.org>
-#
+# Created by: Vincent Tantardini <vinc@FreeBSD-fr.org>
 # $FreeBSD$
-#
 
 PORTNAME=	libcaca
 DISTVERSION=	0.99.beta18
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	http://caca.zoy.org/raw-attachment/wiki/libcaca/
 
 MAINTAINER=	multimedia@FreeBSD.org
 COMMENT=	Graphics library that outputs text instead of pixels
 
-USE_GNOME=	gnomehack ltverhack pkgconfig
+USES=		pathfix
+USE_GNOME=	ltverhack
+USE_PKGCONFIG=	build
 USE_LDCONFIG=	yes
 USE_AUTOTOOLS=	libtool
 CONFIGURE_ARGS=	--disable-doc \
@@ -22,28 +20,35 @@ CONFIGURE_ARGS=	--disable-doc \
 		--disable-java \
 		--disable-csharp \
 		--disable-ruby \
-		--disable-python
+		--disable-python \
+		--disable-cppunit \
+		--disable-zzuf
 
 DOCS=		AUTHORS COPYING COPYING.GPL COPYING.LGPL ChangeLog NEWS \
 		NOTES README THANKS
 MAN1=		caca-config.1 cacademo.1 cacafire.1 cacaplay.1 cacaserver.1 \
 		cacaview.1 img2txt.1
 
-.if defined(WITHOUT_X11)
-CONFIGURE_ARGS+=--disable-x11
-.else
+OPTIONS_DEFINE=	X11 IMLIB2 SLANG DOCS
+OPTIONS_DEFAULT=	X11 IMLIB2
+X11_DESC=	X11 and OpenGL support
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MX11}
 USE_XORG=	x11
+USE_GL=		glut
+.else
+CONFIGURE_ARGS+=--disable-x11 --disable-gl
 .endif
 
-.if defined(WITHOUT_IMLIB2)
-CONFIGURE_ARGS+=--disable-imlib2
-.else
+.if ${PORT_OPTIONS:MIMLIB2}
 USE_EFL+=	imlib2
+.else
+CONFIGURE_ARGS+=--disable-imlib2
 .endif
 
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_SLANG)
+.if ${PORT_OPTIONS:MSLANG}
 LIB_DEPENDS+=	slang.2:${PORTSDIR}/devel/libslang2
 CONFIGURE_ARGS+=--enable-slang
 .else
@@ -56,12 +61,10 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|: install-docDATA|:|g ; s| csharp||g' \
 			${WRKSRC}/Makefile.in
 
-.ifndef (NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 post-install:
 	@${MKDIR} ${DOCSDIR}
-.for i in ${DOCS}
-	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
+	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>

Modified: head/graphics/libcaca/pkg-descr
==============================================================================
--- head/graphics/libcaca/pkg-descr	Mon Mar 25 14:05:23 2013	(r315226)
+++ head/graphics/libcaca/pkg-descr	Mon Mar 25 14:06:30 2013	(r315227)
@@ -1,7 +1,9 @@
-The libcaca library is a graphics library that outputs text instead of 
-pixels, so that it can work on older video cards or text terminals. It 
-is not unlike the famous AAlib library. It also have 6 available colours 
-for character output, dithering of colour images and basic sprite 
-primitives.
+libcaca is a graphics library that outputs text instead of pixels,
+so that it can work on older video cards or text terminals.  It is
+not unlike the famous AAlib library, with the following improvements:
+ * Unicode support
+ * 2048 available colours (some devices can only handle 16)
+ * dithering of colour images
+ * advanced text canvas operations (blitting, rotations)
 
 WWW: http://caca.zoy.org/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303251406.r2PE6Usj038909>