USE_SDL
is used to
autoconfigure the dependencies for ports which use an SDL
based library like devel/sdl12
and graphics/sdl_image.
These SDL libraries for version 1.2 are recognized:
sdl: devel/sdl12
console: devel/sdl_console
gfx: graphics/sdl_gfx
image: graphics/sdl_image
mixer: audio/sdl_mixer
mm: devel/sdlmm
net: net/sdl_net
pango: x11-toolkits/sdl_pango
sound: audio/sdl_sound
ttf: graphics/sdl_ttf
These SDL libraries for version 2.0 are recognized:
sdl: devel/sdl20
gfx: graphics/sdl2_gfx
image: graphics/sdl2_image
mixer: audio/sdl2_mixer
net: net/sdl2_net
ttf: graphics/sdl2_ttf
Therefore, if a port has a dependency on net/sdl_net and audio/sdl_mixer, the syntax will be:
USE_SDL= net mixer
The dependency devel/sdl12, which is required by net/sdl_net and audio/sdl_mixer, is automatically added as well.
Using USE_SDL
with entries for
SDL 1.2, it will automatically:
Add a dependency on
sdl12-config to
BUILD_DEPENDS
Add the variable SDL_CONFIG
to
CONFIGURE_ENV
Add the dependencies of the selected libraries to
LIB_DEPENDS
Using USE_SDL
with entries for
SDL 2.0, it will automatically:
Add a dependency on
sdl2-config to
BUILD_DEPENDS
Add the variable SDL2_CONFIG
to
CONFIGURE_ENV
Add the dependencies of the selected libraries to
LIB_DEPENDS
本文及其他文件,可由此下載: ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/。
若有 FreeBSD 方面疑問,請先閱讀
FreeBSD 相關文件,如不能解決的話,再洽詢
<questions@FreeBSD.org>。
關於本文件的問題,請洽詢
<doc@FreeBSD.org>。