15
20
#these get prefixes with '/usr/local' and /mingw or the $LOCALBASE
16
21
origincdirs = ['/include', '/include/SDL', '/include/SDL11',
22
'/include/smpeg', '/include/libpng12', ]
18
23
origlibdirs = ['/lib']
156
161
print_(self.name + ' '[len(self.name):] + ': not found')
160
def __init__(self, name, libs):
168
def configure(self, incdirs, libdirs):
171
163
class DependencyDLL:
172
164
needs_dll = False
173
165
def __init__(self, name, libs=None):
175
libs = [dll.name_to_root(name)]
176
self.name = 'COPYLIB_' + name
167
libs = dll.libraries(name)
168
self.name = 'COPYLIB_' + dll.name_to_root(name)
177
169
self.inc_dir = None
178
170
self.lib_dir = '_'
213
def __init__(self, name, cflags):
221
def configure(self, incdirs, libdirs):
221
226
m = msys.Msys(require_mingw=False)
222
227
print_('\nHunting dependencies...')
224
DependencyProg('SDL', 'SDL_CONFIG', 'sdl-config', '1.2', m),
229
DependencyProg('SDL', 'SDL_CONFIG', 'sdl-config', '1.2.13', m),
225
230
Dependency('FONT', 'SDL_ttf.h', 'libSDL_ttf.dll.a'),
226
231
Dependency('IMAGE', 'SDL_image.h', 'libSDL_image.dll.a'),
227
232
Dependency('MIXER', 'SDL_mixer.h', 'libSDL_mixer.dll.a'),
228
233
DependencyProg('SMPEG', 'SMPEG_CONFIG', 'smpeg-config', '0.4.3', m),
229
Dependency('PNG', 'png.h', 'libpng.dll.a'),
234
Dependency('PNG', 'png.h', 'libpng12.dll.a'),
230
235
Dependency('JPEG', 'jpeglib.h', 'libjpeg.dll.a'),
231
DependencyWin('SCRAP', ['user32', 'gdi32']),
236
Dependency('PORTMIDI', 'portmidi.h', 'libportmidi.dll.a'),
237
Dependency('PORTTIME', 'portmidi.h', 'libportmidi.dll.a'),
232
238
DependencyDLL('TIFF'),
233
239
DependencyDLL('VORBISFILE'),
234
240
DependencyDLL('VORBIS'),
235
241
DependencyDLL('OGG'),
242
DependencyDLL('FREETYPE'),
236
243
DependencyDLL('Z'),