aboutsummaryrefslogtreecommitdiff
path: root/graphics/libcaca
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2004-01-11 23:55:54 +0000
committerClement Laforet <clement@FreeBSD.org>2004-01-11 23:55:54 +0000
commit4bc87eccb48ab7668c66b6aa63f01ddbba2b117f (patch)
treef9ea931e02e485710bc6890684b7bc57e72adb2f /graphics/libcaca
parent3f38b08f94142fd3a5c7371ff1e7d47d7aaa2ccf (diff)
downloadports-4bc87eccb48ab7668c66b6aa63f01ddbba2b117f.tar.gz
ports-4bc87eccb48ab7668c66b6aa63f01ddbba2b117f.zip
Notes
Diffstat (limited to 'graphics/libcaca')
-rw-r--r--graphics/libcaca/Makefile44
-rw-r--r--graphics/libcaca/distinfo1
-rw-r--r--graphics/libcaca/files/patch-Makefile.in18
-rw-r--r--graphics/libcaca/files/patch-examples::Makefile.in11
-rw-r--r--graphics/libcaca/pkg-descr7
-rw-r--r--graphics/libcaca/pkg-plist18
6 files changed, 99 insertions, 0 deletions
diff --git a/graphics/libcaca/Makefile b/graphics/libcaca/Makefile
new file mode 100644
index 000000000000..7bbf333ee7b6
--- /dev/null
+++ b/graphics/libcaca/Makefile
@@ -0,0 +1,44 @@
+# New ports collection makefile for: libcaca
+# Date created: 11 January 2004
+# Whom: Vincent Tantardini <vinc@FreeBSD-fr.org>
+#
+# $FreeBSD$
+
+PORTNAME= libcaca
+PORTVERSION= 0.7
+CATEGORIES= graphics
+MASTER_SITES= http://sam.zoy.org/projects/libcaca/
+
+MAINTAINER= vinc@FreeBSD-fr.org
+COMMENT= Graphics library that outputs text instead of pixels
+
+GNU_CONFIGURE= yes
+USE_REINPLACE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS+= --program-prefix="" \
+ --enable-ncurses
+
+MAN1= caca-config.1 cacademo.1 cacaview.1
+
+.if defined(NOPORTDOCS)
+MAKE_ENV+= NOPORTDOCS=YES
+.endif
+
+.if defined(WITHOUT_IMLIB2)
+CONFIGURE_ARGS+= --disable-imlib2
+.else
+LIB_DEPENDS+= Imlib2.2:${PORTSDIR}/graphics/imlib2
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SLANG) || exists(${LOCALBASE}/lib/libslang.so)
+LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
+CONFIGURE_ARGS+= --enable-slang
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,libcaca-dev,libcaca,g' ${WRKSRC}/Makefile.in
+
+.include <bsd.port.post.mk>
diff --git a/graphics/libcaca/distinfo b/graphics/libcaca/distinfo
new file mode 100644
index 000000000000..16d90169698b
--- /dev/null
+++ b/graphics/libcaca/distinfo
@@ -0,0 +1 @@
+MD5 (libcaca-0.7.tar.gz) = 8ff2970ceef1a1e3194615584c9747f2
diff --git a/graphics/libcaca/files/patch-Makefile.in b/graphics/libcaca/files/patch-Makefile.in
new file mode 100644
index 000000000000..113a76254f40
--- /dev/null
+++ b/graphics/libcaca/files/patch-Makefile.in
@@ -0,0 +1,18 @@
+--- Makefile.in.orig Wed Jan 7 19:23:13 2004
++++ Makefile.in Sun Jan 11 23:51:28 2004
+@@ -229,6 +229,7 @@
+ uninstall-info-am:
+ docDATA_INSTALL = $(INSTALL_DATA)
+ install-docDATA: $(doc_DATA)
++. if !defined (NOPORTDOCS)
+ @$(NORMAL_INSTALL)
+ $(mkinstalldirs) $(DESTDIR)$(docdir)
+ @list='$(doc_DATA)'; for p in $$list; do \
+@@ -237,6 +238,7 @@
+ echo " $(docDATA_INSTALL) $$d$$p $(DESTDIR)$(docdir)/$$f"; \
+ $(docDATA_INSTALL) $$d$$p $(DESTDIR)$(docdir)/$$f; \
+ done
++. endif
+
+ uninstall-docDATA:
+ @$(NORMAL_UNINSTALL)
diff --git a/graphics/libcaca/files/patch-examples::Makefile.in b/graphics/libcaca/files/patch-examples::Makefile.in
new file mode 100644
index 000000000000..2f073b8bd14f
--- /dev/null
+++ b/graphics/libcaca/files/patch-examples::Makefile.in
@@ -0,0 +1,11 @@
+--- examples/Makefile.in.orig Sun Jan 11 19:15:41 2004
++++ examples/Makefile.in Sun Jan 11 19:16:20 2004
+@@ -76,7 +76,7 @@
+ LATEX = @LATEX@
+ LATEX_FALSE = @LATEX_FALSE@
+ LATEX_TRUE = @LATEX_TRUE@
+-LDFLAGS = @LDFLAGS@
++LDFLAGS = -lm @LDFLAGS@
+ LIBOBJS = @LIBOBJS@
+ LIBS = @LIBS@
+ LTLIBOBJS = @LTLIBOBJS@
diff --git a/graphics/libcaca/pkg-descr b/graphics/libcaca/pkg-descr
new file mode 100644
index 000000000000..a4aaf1837e04
--- /dev/null
+++ b/graphics/libcaca/pkg-descr
@@ -0,0 +1,7 @@
+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.
+
+WWW: http://sam.zoy.org/projects/libcaca/
diff --git a/graphics/libcaca/pkg-plist b/graphics/libcaca/pkg-plist
new file mode 100644
index 000000000000..406e6a82654e
--- /dev/null
+++ b/graphics/libcaca/pkg-plist
@@ -0,0 +1,18 @@
+bin/caca-config
+bin/cacaball
+bin/cacademo
+bin/cacafire
+bin/cacaview
+include/caca.h
+lib/libcaca.a
+lib/libcaca_pic.a
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/BUGS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/NOTES
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/THANKS
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%DATADIR%%/caca.txt
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%