Lines 16-29
Link Here
|
16 |
# the standard SDL and SDL_sound, use "USE_SDL=sdl sound" and the |
16 |
# the standard SDL and SDL_sound, use "USE_SDL=sdl sound" and the |
17 |
# required libraries are included in your LIB_DEPENDS. |
17 |
# required libraries are included in your LIB_DEPENDS. |
18 |
# |
18 |
# |
|
|
19 |
# If you want to check for the availability for certain SDL ports, you |
20 |
# can set WANT_SDL and run it through bsd.port.pre.mk: |
21 |
# WANT_SDL= yes |
22 |
# USE_SDL= sdl |
23 |
# .include <bsd.port.pre.mk> |
24 |
# .if ${HAVE_SDL:Mgraphics} |
25 |
# USE_SDL+= graphics |
26 |
# .endif |
27 |
# .include <bsd.port.post.mk> |
28 |
# Run "make -v USE_SDL" to see which libs are asked for at the end. |
29 |
# |
19 |
|
30 |
|
20 |
# |
31 |
# |
21 |
# $FreeBSD: ports/Mk/bsd.sdl.mk,v 1.2 2004/01/21 10:01:54 krion Exp $ |
32 |
# $FreeBSD: ports/Mk/bsd.sdl.mk,v 1.2 2004/01/21 10:01:54 krion Exp $ |
22 |
# |
33 |
# |
23 |
|
34 |
|
24 |
.if !defined(SDL_Include) |
|
|
25 |
|
26 |
SDL_Include= bsd.sdl.mk |
27 |
SDL_Include_MAINTAINER= edwin@FreeBSD.org |
35 |
SDL_Include_MAINTAINER= edwin@FreeBSD.org |
28 |
|
36 |
|
29 |
# |
37 |
# |
Lines 32-44
Link Here
|
32 |
_USE_SDL_ALL= gfx gui image mixer ldbad mm net sdl sound ttf |
40 |
_USE_SDL_ALL= gfx gui image mixer ldbad mm net sdl sound ttf |
33 |
|
41 |
|
34 |
# |
42 |
# |
35 |
# Keep some backward compatibility |
|
|
36 |
# |
37 |
.if ${USE_SDL}=="yes" |
38 |
USE_SDL=sdl |
39 |
.endif |
40 |
|
41 |
# |
42 |
# Variables used to determine what is needed: |
43 |
# Variables used to determine what is needed: |
43 |
# _VERSION_xxx version of the shared library (required) |
44 |
# _VERSION_xxx version of the shared library (required) |
44 |
# _SUBDIR_xxx subdirectory below ${PORTSDIR} (required) |
45 |
# _SUBDIR_xxx subdirectory below ${PORTSDIR} (required) |
Lines 107-112
Link Here
|
107 |
.endfor |
108 |
.endfor |
108 |
|
109 |
|
109 |
# |
110 |
# |
|
|
111 |
# If WANT_SDL is defined, check for the available libraries |
112 |
# |
113 |
.if !defined(AFTERPORTMK) |
114 |
.if !defined(SDL_Include_pre) |
115 |
|
116 |
SDL_Include_pre= bsd.sdl.mk |
117 |
|
118 |
.if defined(WANT_SDL) |
119 |
.for component in ${_USE_SDL_ALL} |
120 |
.if exists(${LOCALBASE}/lib/lib${_LIB_${component}}.so.${_VERSION_${component}}) |
121 |
HAVE_SDL+= ${component} |
122 |
.endif |
123 |
.endfor |
124 |
.endif |
125 |
|
126 |
.endif |
127 |
.endif |
128 |
|
129 |
# |
130 |
# If USE_SDL is defined, make dependencies for the libraries |
131 |
# |
132 |
.if !defined(BEFOREPORTMK) |
133 |
.if !defined(SDL_Include_post) |
134 |
.if defined(USE_SDL) |
135 |
|
136 |
SDL_Include_post= bsd.sdl.mk |
137 |
|
138 |
# |
139 |
# Keep some backward compatibility |
140 |
# |
141 |
.if ${USE_SDL}=="yes" |
142 |
USE_SDL= sdl |
143 |
.endif |
144 |
|
145 |
# |
110 |
# Check if all the values given in USE_SDL are valid. |
146 |
# Check if all the values given in USE_SDL are valid. |
111 |
# |
147 |
# |
112 |
_USE_SDL= |
148 |
_USE_SDL= |
Lines 142-145
Link Here
|
142 |
CONFIGURE_ENV+= SDL_CONFIG=${SDL_CONFIG} |
178 |
CONFIGURE_ENV+= SDL_CONFIG=${SDL_CONFIG} |
143 |
MAKE_ENV+= SDL_CONFIG=${SDL_CONFIG} |
179 |
MAKE_ENV+= SDL_CONFIG=${SDL_CONFIG} |
144 |
|
180 |
|
|
|
181 |
.endif |
182 |
.endif |
145 |
.endif |
183 |
.endif |