Lines 5-26
Link Here
|
5 |
# $FreeBSD: ports/graphics/libcaca/Makefile,v 1.16 2007/03/11 08:51:04 stas Exp $ |
5 |
# $FreeBSD: ports/graphics/libcaca/Makefile,v 1.16 2007/03/11 08:51:04 stas Exp $ |
6 |
|
6 |
|
7 |
PORTNAME= libcaca |
7 |
PORTNAME= libcaca |
8 |
PORTVERSION= 0.9 |
8 |
PORTVERSION= 0.99.b11 |
9 |
PORTREVISION= 6 |
9 |
PORTREVISION= 0 |
10 |
CATEGORIES= graphics |
10 |
CATEGORIES= graphics |
11 |
MASTER_SITES= http://libcaca.zoy.org/files/ |
11 |
MASTER_SITES= http://libcaca.zoy.org/files/ |
|
|
12 |
DISTNAME= ${PORTNAME}-0.99.beta11 |
12 |
|
13 |
|
13 |
MAINTAINER= multimedia@FreeBSD.org |
14 |
MAINTAINER= multimedia@FreeBSD.org |
14 |
COMMENT= Graphics library that outputs text instead of pixels |
15 |
COMMENT= Graphics library that outputs text instead of pixels |
15 |
|
16 |
|
|
|
17 |
USE_GNOME= gnomehack pkgconfig gnometarget |
16 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
17 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
19 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
18 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
20 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
19 |
LDFLAGS="-L${LOCALBASE}/lib -lm -lncurses" |
21 |
LDFLAGS="-L${LOCALBASE}/lib -lm -lncurses" |
20 |
CONFIGURE_ARGS= --enable-ncurses --disable-doc |
22 |
CONFIGURE_ARGS= --enable-ncurses --disable-doc |
21 |
|
23 |
|
22 |
MAN1= caca-config.1 cacademo.1 cacaview.1 |
|
|
23 |
|
24 |
.if defined(WITHOUT_X11) |
24 |
.if defined(WITHOUT_X11) |
25 |
CONFIGURE_ARGS+= --disable-x11 |
25 |
CONFIGURE_ARGS+= --disable-x11 |
26 |
.else |
26 |
.else |
Lines 35-53
Link Here
|
35 |
.include <bsd.port.pre.mk> |
35 |
.include <bsd.port.pre.mk> |
36 |
|
36 |
|
37 |
.if defined(WITH_SLANG) || exists(${LOCALBASE}/lib/libslang.so) |
37 |
.if defined(WITH_SLANG) || exists(${LOCALBASE}/lib/libslang.so) |
38 |
LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang |
38 |
LIB_DEPENDS+= slang:${PORTSDIR}/devel/libslang2 |
39 |
CONFIGURE_ARGS+= --enable-slang |
39 |
CONFIGURE_ARGS+= --enable-slang |
40 |
.endif |
40 |
.endif |
41 |
|
41 |
|
42 |
post-patch: |
42 |
post-patch: |
43 |
@${REINPLACE_CMD} -e 's,-g -O2 ,,g' ${WRKSRC}/configure |
43 |
@${REINPLACE_CMD} -e 's,-g -O2 ,,g' ${WRKSRC}/configure |
|
|
44 |
@${REINPLACE_CMD} -e 's,arpa\/inet.h ,,g' ${WRKSRC}/configure |
44 |
@${REINPLACE_CMD} -e 's,: install-docDATA,:,g' ${WRKSRC}/Makefile.in |
45 |
@${REINPLACE_CMD} -e 's,: install-docDATA,:,g' ${WRKSRC}/Makefile.in |
45 |
@${REINPLACE_CMD} -e 's,resize_term,resizeterm,g' ${WRKSRC}/src/graphics.c |
|
|
46 |
|
46 |
|
47 |
post-install: |
47 |
post-install: |
48 |
.if !defined(NOPORTDOCS) |
48 |
.if !defined(NOPORTDOCS) |
49 |
@${MKDIR} ${DOCSDIR} |
49 |
@${MKDIR} ${DOCSDIR} |
50 |
.for file in README BUGS TODO AUTHORS NEWS NOTES THANKS |
50 |
.for file in README TODO AUTHORS NEWS NOTES THANKS |
51 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
51 |
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} |
52 |
.endfor |
52 |
.endfor |
53 |
.endif |
53 |
.endif |