- Drop dependency on GL libraries if WITHOUT_X11 or WITHOUT_GL is
defined. PR: ports/102873 Submitted by: Stefan Sperling <freebsd-gnats@stsp.in-berlin.de>
This commit is contained in:
parent
758b8372d0
commit
ca0e0f2015
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=173467
1 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,6 @@
|
|||
|
||||
PORTNAME= sdl_ttf
|
||||
PORTVERSION= 2.0.8
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.libsdl.org/projects/SDL_ttf/release/
|
||||
DISTNAME= SDL_ttf-${PORTVERSION}
|
||||
|
@ -18,7 +17,6 @@ COMMENT= A library to use TrueType fonts to render text in SDL applications
|
|||
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2
|
||||
|
||||
USE_SDL= sdl
|
||||
USE_GL= yes
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
|
@ -26,6 +24,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.if !defined(WITHOUT_X11) && !defined(WITHOUT_GL)
|
||||
USE_GL= yes
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/.libs/glfont ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/.libs/showfont ${PREFIX}/bin
|
||||
|
|
Loading…
Reference in a new issue