2013-06-21 21:56:27 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sdl2_ttf
|
2013-08-14 19:23:35 +02:00
|
|
|
PORTVERSION= 2.0.12
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 5
|
2013-06-21 21:56:27 +02:00
|
|
|
CATEGORIES= graphics
|
2013-08-14 19:23:35 +02:00
|
|
|
MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/
|
|
|
|
DISTNAME= SDL2_ttf-${PORTVERSION}
|
2013-06-21 21:56:27 +02:00
|
|
|
|
|
|
|
MAINTAINER= mva@FreeBSD.org
|
2014-06-13 09:36:27 +02:00
|
|
|
COMMENT= Library to use TrueType fonts to render text in SDL applications
|
2013-06-21 21:56:27 +02:00
|
|
|
|
2013-10-25 18:15:36 +02:00
|
|
|
LICENSE= ZLIB
|
2013-06-21 21:56:27 +02:00
|
|
|
|
2013-10-25 18:15:36 +02:00
|
|
|
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
|
|
|
|
|
2014-07-03 19:25:30 +02:00
|
|
|
USES= pkgconfig:build pathfix gmake libtool
|
2013-06-21 21:56:27 +02:00
|
|
|
USE_SDL= sdl2
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= OPENGL
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MOPENGL}
|
|
|
|
USE_GL= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2013-10-25 18:15:36 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/.libs/glfont ${STAGEDIR}${PREFIX}/bin/sdl2-glfont
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/.libs/showfont ${STAGEDIR}${PREFIX}/bin/sdl2-showfont
|
2013-06-21 21:56:27 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|