1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/graphics/libcaca/Makefile
Jeremy Messenger daf2eb6fad It looks like it supports both libslang and libslang2. Remove the autocheck.
Add a check on libslang.so.1 if it exists in system then depend on libslang
instead of libslang2. If libslang.so.1 doesn't exist then libslang2 is the
default in WITH_SLANG. Add '--disable-slang' flag to avoid the autocheck in
configure. Bump the PORTREVISION.

Reported by:	Andriy Gapon <avg@icyb.net.ua>
2007-12-18 18:57:35 +00:00

70 lines
1.6 KiB
Makefile

# New ports collection makefile for: libcaca
# Date created: 11 January 2004
# Whom: Vincent Tantardini <vinc@FreeBSD-fr.org>
#
# $FreeBSD$
#
PORTNAME= libcaca
DISTVERSION= 0.99.beta11
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://libcaca.zoy.org/files/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Graphics library that outputs text instead of pixels
USE_GNOME= gnomehack gnometarget ltverhack pkgconfig
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool:15
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lm -lncurses"
CONFIGURE_ARGS= --disable-doc \
--enable-ncurses
DOCS= AUTHORS COPYING COPYING.GPL COPYING.LGPL ChangeLog NEWS \
NOTES README THANKS TODO
MAN1= caca-config.1 cacafire.1 cacaplay.1 cacaserver.1 cacaview.1 \
img2irc.1
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--disable-x11
.else
USE_XLIB= yes
.endif
.if defined(WITHOUT_IMLIB2)
CONFIGURE_ARGS+=--disable-imlib2
.else
LIB_DEPENDS+= Imlib2.4:${PORTSDIR}/graphics/imlib2
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_SLANG)
. if exists(${LOCALBASE}/lib/libslang.so.1)
LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
. else
LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
. endif
CONFIGURE_ARGS+=--enable-slang
.else
CONFIGURE_ARGS+=--disable-slang
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-g -O2 ||g ; s| -fomit-frame-pointer||g ; \
s|arpa\/inet.h ||g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|: install-docDATA|:|g' \
${WRKSRC}/Makefile.in
.ifndef (NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
.for i in ${DOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>