svn commit: r340160 - head/graphics/sdl_ttf

Marcus von Appen mva at FreeBSD.org
Sat Jan 18 09:37:50 UTC 2014


Author: mva
Date: Sat Jan 18 09:37:49 2014
New Revision: 340160
URL: http://svnweb.freebsd.org/changeset/ports/340160
QAT: https://qat.redports.org/buildarchive/r340160/

Log:
  - Enable stagedir support
  - Convert to new LIB_DEPENDS
  - Add missing x11 dependency
  - Convert to new OPTIONS framework
  - Add LICENSE

Modified:
  head/graphics/sdl_ttf/Makefile   (contents, props changed)

Modified: head/graphics/sdl_ttf/Makefile
==============================================================================
--- head/graphics/sdl_ttf/Makefile	Sat Jan 18 09:35:15 2014	(r340159)
+++ head/graphics/sdl_ttf/Makefile	Sat Jan 18 09:37:49 2014	(r340160)
@@ -8,25 +8,29 @@ MASTER_SITES=	http://www.libsdl.org/proj
 DISTNAME=	SDL_ttf-${PORTVERSION}
 
 MAINTAINER=	mva at FreeBSD.org
-COMMENT=	A library to use TrueType fonts to render text in SDL applications
+COMMENT=	Library to use TrueType fonts to render text in SDL applications
 
-LIB_DEPENDS=	freetype.9:${PORTSDIR}/print/freetype2
+LICENSE=	ZLIB
+
+LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2
 
 USE_AUTOTOOLS=	libtool
 USE_SDL=	sdl
 USES=		gmake pathfix pkgconfig
+USE_XORG=	x11
 GNU_CONFIGURE=	yes
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 USE_LDCONFIG=	yes
 
-.if !defined(WITHOUT_X11) && !defined(WITHOUT_GL)
-USE_GL=		yes
-.endif
+OPTIONS_DEFINE=		OPENGL
+OPTIONS_DEFAULT=	OPENGL
+
+OPENGL_USE=	GL=yes
 
-NO_STAGE=	yes
 post-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/.libs/glfont ${PREFIX}/bin
-	${INSTALL_PROGRAM} ${WRKSRC}/.libs/showfont ${PREFIX}/bin/sdl-showfont
+	${INSTALL_PROGRAM} ${WRKSRC}/.libs/glfont ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/.libs/showfont \
+		${STAGEDIR}${PREFIX}/bin/sdl-showfont
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list