blob: f3cc43552f586e7a13147eb0fe725aff3d2e5036 (
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
45
46
47
48
49
50
51
52
53
54
55
56
|
# New ports collection makefile for: libcaca
# Date created: 11 January 2004
# Whom: Vincent Tantardini <vinc@FreeBSD-fr.org>
#
# $FreeBSD$
PORTNAME= libcaca
PORTVERSION= 0.9
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://sam.zoy.org/projects/libcaca/
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphics library that outputs text instead of pixels
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lm -lncurses"
CONFIGURE_ARGS= --enable-ncurses --disable-doc
MAN1= caca-config.1 cacademo.1 cacaview.1
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --disable-imlib2 --disable-x11
.else
USE_XLIB= yes
.if defined(WITHOUT_IMLIB2)
CONFIGURE_ARGS+= --disable-imlib2
.else
LIB_DEPENDS+= Imlib2.3:${PORTSDIR}/graphics/imlib2
.endif
.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,-g -O2 ,,g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's,: install-docDATA,:,g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's,resize_term,resizeterm,g' ${WRKSRC}/src/graphics.c
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in README BUGS TODO AUTHORS NEWS NOTES THANKS
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|