{$DEFINE MINIUPNPC_IMPL := cdecl; external 'miniupnpc.dll'}
{$ENDIF}
{$ELSE}
- {$DEFINE MINIUPNPC_IMPL := cdecl; external 'miniupnpc'}
+ {$LINKLIB libminiupnpc}
+ {$DEFINE MINIUPNPC_IMPL := cdecl; external 'libminiupnpc'}
{$ENDIF}
const MINIUPNPC_URL_MAXSIZE=128;
{$ENDIF}
{$ELSEIF DEFINED(UNIX)}
{$DEFINE MP_DYNAMIC}
- const modpluglib = 'libmodplug.so';
+ {$LINKLIB libmodplug}
+ const modpluglib = 'libmodplug';
{$ELSE}
- {$ERROR libmpg123 not supported on this platform. Fix it!}
+ {$ERROR libmodplug not supported on this platform. Fix it!}
{$ENDIF}
type
{$ENDIF}
{$ELSEIF DEFINED(UNIX)}
{$DEFINE MPG123_DYNAMIC}
- const LIB_MPG123 = 'libmpg123.so';
+ {$LINKLIB libmpg123}
+ const LIB_MPG123 = 'libmpg123';
{$ELSE}
{$ERROR libmpg123 not supported on this platform. Fix it!}
{$ENDIF}
const openallib = 'openal32.dll';
{$DEFINE AL_DYNAMIC}
{$ENDIF}
+{$ELSEIF DEFINED(DARWIN)}
+ {$LINKFRAMEWORK OpenAL}
{$ELSEIF DEFINED(UNIX)}
const openallib = 'libopenal.so';
{$DEFINE AL_DYNAMIC}
{$ENDIF}
{$ELSEIF DEFINED(UNIX)}
{$DEFINE OGG_DYNAMIC}
- const ogglib = 'libogg.so';
+ {$LINKLIB libogg}
+ const ogglib = 'libogg';
{$ELSE}
{$ERROR libogg not supported on this platform. Fix it!}
{$ENDIF}
{$ENDIF}
{$ELSEIF DEFINED(UNIX)}
{$DEFINE OGG_DYNAMIC}
- const vorbislib = 'libvorbis.so';
- const vorbisfilelib = 'libvorbisfile.so';
+ {$LINKLIB libvorbis}
+ {$LINKLIB libvorbisfile}
+ const vorbislib = 'libvorbis';
+ const vorbisfilelib = 'libvorbisfile';
{$ELSE}
{$ERROR libvorbis not supported on this platform. Fix it!}
{$ENDIF}