Bug 175963 - graphics/libcaca
Summary: graphics/libcaca
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Max Brazhnikov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-08 20:10 UTC by Pawel Pekala
Modified: 2013-03-25 14:10 UTC (History)
0 users

See Also:


Attachments
file.diff (603 bytes, patch)
2013-02-08 20:10 UTC, Pawel Pekala
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Pekala freebsd_committer freebsd_triage 2013-02-08 20:10:00 UTC
This packages links to freeglut when available:

[corn:~]> ldd /usr/local/lib/libcaca.so.0 | grep glut
        libglut.so.12 => /usr/local/lib/libglut.so.12 (0x801ba9000)

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-02-08 20:10:07 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Max Brazhnikov freebsd_committer freebsd_triage 2013-03-25 12:07:09 UTC
Responsible Changed
From-To: freebsd-multimedia->makc

I'm working on this.
Comment 3 Max Brazhnikov freebsd_committer freebsd_triage 2013-03-25 14:06:04 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-03-25 14:06:38 UTC
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/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"