Commit 8b4eec26 authored by bgermann's avatar bgermann

Find 5 components' dependencies via pkg-config

[GB.COMPRESS.ZLIB]
* NEW: Find dependency via pkg-config

[GB.DB.SQLITE2]
* NEW: Find dependency via pkg-config

[GB.NCURSES]
* NEW: Find dependency via pkg-config

[GB.PCRE]
* NEW: Find dependency via pkg-config

[GB.SDL.SOUND]
* NEW: Find dependency via pkg-config
parent 60058fd9
......@@ -9,11 +9,9 @@ AC_PROG_LIBTOOL
dnl ---- zlib compression driver
GB_COMPONENT(
GB_COMPONENT_PKG_CONFIG(
zlib, ZLIB, gb.compress.zlib, [src],
[GB_FIND(zlib.h, /usr/local/lib /usr/local /opt /usr/lib /usr, include)],
[GB_FIND(libz.$SHLIBEXT, /usr/local /opt /usr, lib)],
[$C_LIB -lz])
zlib)
dnl ---- Create makefiles
......
......@@ -11,11 +11,9 @@ AC_PROG_LIBTOOL
dnl ---- SQLite driver
GB_COMPONENT(
GB_COMPONENT_PKG_CONFIG(
sqlite2, SQLITE2, gb.db.sqlite2, [src],
[GB_FIND(sqlite.h, /usr/local/lib /usr/local /opt /usr/lib /usr /opt/local, include sqlite*/include)],
[GB_FIND(libsqlite.$SHLIBEXT, /usr/local /opt /usr /opt/local, lib sqlite*/lib)],
[$C_LIB $CXX_LIB -lsqlite])
sqlite)
dnl ---- Create makefiles
......
......@@ -7,12 +7,10 @@ AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.ncurses)
AC_PROG_LIBTOOL
GB_COMPONENT(
GB_COMPONENT_PKG_CONFIG(
ncurses, NCURSES, gb.ncurses, [src],
[GB_FIND(ncurses.h panel.h, /usr/lib /usr, include)],
[GB_FIND(libncurses.$SHLIBEXT libpanel.$SHLIBEXT, /usr/local /usr, lib)],
[-lpanel -lncurses])
ncurses)
AC_OUTPUT( \
Makefile \
src/Makefile \
......
......@@ -7,12 +7,10 @@ AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.pcre)
AC_PROG_LIBTOOL
GB_COMPONENT(
GB_COMPONENT_PKG_CONFIG(
pcre, PCRE, gb.pcre, [src],
[GB_FIND(pcre.h, /usr/local/lib /usr/local /usr/lib /usr /opt/local, include)],
[GB_FIND(libpcre.$SHLIBEXT, /usr/local /usr /, lib)],
[-lpcre])
libpcre)
AC_OUTPUT( \
Makefile \
src/Makefile \
......
......@@ -11,12 +11,9 @@ dnl TODO: add a version test in GB_COMPONENT!
GB_PATH_SDL(1.2.8, [] , [touch DISABLED])
dnl check for SDL libs
GB_COMPONENT(
GB_COMPONENT_PKG_CONFIG(
sdlsound, SDLSOUND, gb.sdl.sound, [src],
[GB_FIND(SDL_mixer.h SDL_cdrom.h, `sdl-config --prefix`, include/SDL)],
[GB_FIND(libSDL_mixer.$SHLIBEXT, /usr /usr/local `sdl-config --prefix`, lib)],
[-lSDL_mixer -lSDL],
[$SDL_CFLAGS])
SDL_mixer)
AC_OUTPUT( \
Makefile \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment