2004-01-12 00:55:54 +01:00
|
|
|
# New ports collection makefile for: libcaca
|
|
|
|
# Date created: 11 January 2004
|
|
|
|
# Whom: Vincent Tantardini <vinc@FreeBSD-fr.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2007-04-29 21:36:38 +02:00
|
|
|
#
|
2004-01-12 00:55:54 +01:00
|
|
|
|
|
|
|
PORTNAME= libcaca
|
2010-03-24 11:27:27 +01:00
|
|
|
DISTVERSION= 0.99.beta17
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 2
|
2004-01-12 00:55:54 +01:00
|
|
|
CATEGORIES= graphics
|
2009-01-30 21:49:09 +01:00
|
|
|
MASTER_SITES= http://caca.zoy.org/raw-attachment/wiki/libcaca/
|
2004-01-12 00:55:54 +01:00
|
|
|
|
2006-06-09 20:59:20 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-01-12 00:55:54 +01:00
|
|
|
COMMENT= Graphics library that outputs text instead of pixels
|
|
|
|
|
2007-04-29 21:36:38 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget ltverhack pkgconfig
|
|
|
|
USE_LDCONFIG= yes
|
2009-08-02 21:36:34 +02:00
|
|
|
USE_AUTOTOOLS= libtool:22
|
2007-04-29 21:36:38 +02:00
|
|
|
CONFIGURE_ARGS= --disable-doc \
|
2008-02-27 23:51:18 +01:00
|
|
|
--enable-ncurses \
|
2010-03-24 11:56:51 +01:00
|
|
|
--disable-java \
|
2008-02-27 23:51:18 +01:00
|
|
|
--disable-csharp \
|
|
|
|
--disable-ruby
|
2004-01-12 00:55:54 +01:00
|
|
|
|
2007-04-29 21:36:38 +02:00
|
|
|
DOCS= AUTHORS COPYING COPYING.GPL COPYING.LGPL ChangeLog NEWS \
|
2010-03-24 11:27:27 +01:00
|
|
|
NOTES README THANKS
|
|
|
|
MAN1= caca-config.1 cacademo.1 cacafire.1 cacaplay.1 cacaserver.1 \
|
|
|
|
cacaview.1 img2txt.1
|
2004-01-12 00:55:54 +01:00
|
|
|
|
2004-07-15 18:41:50 +02:00
|
|
|
.if defined(WITHOUT_X11)
|
2007-04-29 21:36:38 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-x11
|
2004-07-15 18:41:50 +02:00
|
|
|
.else
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
2006-02-11 13:14:01 +01:00
|
|
|
.endif
|
2007-04-29 21:36:38 +02:00
|
|
|
|
2004-01-12 00:55:54 +01:00
|
|
|
.if defined(WITHOUT_IMLIB2)
|
2007-04-29 21:36:38 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-imlib2
|
2004-01-12 00:55:54 +01:00
|
|
|
.else
|
2008-03-11 22:13:53 +01:00
|
|
|
USE_EFL+= imlib2
|
2004-01-12 00:55:54 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-12-18 19:57:35 +01:00
|
|
|
.if defined(WITH_SLANG)
|
2007-04-29 21:36:38 +02:00
|
|
|
LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
|
|
|
|
CONFIGURE_ARGS+=--enable-slang
|
2007-12-18 19:57:35 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-slang
|
2004-01-12 00:55:54 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2007-04-29 21:36:38 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-g -O2 ||g ; s| -fomit-frame-pointer||g ; \
|
|
|
|
s|arpa\/inet.h ||g' ${WRKSRC}/configure
|
2008-02-27 23:51:18 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|: install-docDATA|:|g ; s| csharp||g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2004-07-15 18:41:50 +02:00
|
|
|
|
2007-04-29 21:36:38 +02:00
|
|
|
.ifndef (NOPORTDOCS)
|
2004-07-15 18:41:50 +02:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2007-04-29 21:36:38 +02:00
|
|
|
.for i in ${DOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2004-07-15 18:41:50 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2004-01-12 00:55:54 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|