aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libcaca/Makefile
blob: 7bbf333ee7b62a124f5fe9baeee8e1195398a2d7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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>