1PORTNAME= libcaca 2DISTVERSION= 0.99.beta19 3PORTREVISION= 3 4CATEGORIES= graphics 5MASTER_SITES= http://caca.zoy.org/raw-attachment/wiki/libcaca/ 6 7MAINTAINER= ports@MidnightBSD.org 8COMMENT= Graphics library that outputs text instead of pixels 9 10LICENSE= unknown 11# this guy has his own license, gpl and lgpl stuff... ? 12 13USES= libtool ncurses pathfix pkgconfig cpe 14CPE_VENDOR= libcaca_project 15GNU_CONFIGURE= yes 16USE_LDCONFIG= yes 17CONFIGURE_ARGS= --disable-doc \ 18 --enable-ncurses \ 19 --disable-java \ 20 --disable-csharp \ 21 --disable-ruby \ 22 --disable-python \ 23 --disable-cppunit \ 24 --disable-zzuf \ 25 --disable-slang 26MAKE_ENV= V=1 27INSTALL_TARGET= install-strip 28 29DOCS= AUTHORS COPYING COPYING.GPL COPYING.LGPL ChangeLog NEWS \ 30 NOTES README THANKS 31 32OPTIONS_DEFINE= X11 IMLIB2 FTGL DOCS 33OPTIONS_DEFAULT= X11 IMLIB2 34X11_DESC= X11 and OpenGL support 35FTGL_DESC= Freetype font rendering in OpenGL 36 37X11_USES= gl xorg 38X11_USE= XORG=x11 GL=glut 39X11_CONFIGURE_OFF= --disable-x11 --disable-gl 40IMLIB2_LIB_DEPENDS= libImlib2.so:graphics/imlib2 41IMLIB2_CONFIGURE_ENABLE= imlib2 42 43.include <bsd.mport.options.mk> 44 45.if ${PORT_OPTIONS:MFTGL} && ${PORT_OPTIONS:MX11} 46LIB_DEPENDS+= libftgl.so:graphics/ftgl 47.endif 48 49post-patch: 50.if ! ${PORT_OPTIONS:MFTGL} 51 @${REINPLACE_CMD} -e '/PKG_CONFIG.*ftgl/ s|ftgl|no-&|' ${WRKSRC}/configure 52.endif 53 @${REINPLACE_CMD} -e 's|-g -O2 ||g ; s| -fomit-frame-pointer||g ; \ 54 s|arpa\/inet.h ||g' ${WRKSRC}/configure 55 @${REINPLACE_CMD} -e 's|: install-docDATA|:|g ; s| csharp||g' \ 56 ${WRKSRC}/Makefile.in 57 58post-install: 59 @${MKDIR} ${DOCSDIR} 60 cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} 61 62.include <bsd.port.mk> 63