Browse Source

Adjust LIBDIR and INCLUDEDIR in pkg-config files

Really fixes #284
tags/1.9.7
falkTX 9 years ago
parent
commit
4fb33f8c37
3 changed files with 13 additions and 6 deletions
  1. +9
    -0
      Makefile
  2. +2
    -3
      data/carla-standalone.pc
  3. +2
    -3
      data/carla-utils.pc

+ 9
- 0
Makefile View File

@@ -644,6 +644,15 @@ endif
$(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc \ $(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc \
$(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc $(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc


# Adjust LIBDIR and INCLUDEDIR in pkg-config files
sed -i 's?X-LIBDIR-X?$(LIBDIR)?' \
$(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc \
$(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc

sed -i 's?X-INCLUDEDIR-X?$(INCLUDEDIR)?' \
$(DESTDIR)$(LIBDIR)/pkgconfig/carla-standalone.pc \
$(DESTDIR)$(LIBDIR)/pkgconfig/carla-utils.pc

# Adjust LIBDIR and DATADIR value in code # Adjust LIBDIR and DATADIR value in code
sed -i 's?X_LIBDIR_X = None?X_LIBDIR_X = "$(LIBDIR)"?' \ sed -i 's?X_LIBDIR_X = None?X_LIBDIR_X = "$(LIBDIR)"?' \
$(DESTDIR)$(DATADIR)/carla/carla_shared.py $(DESTDIR)$(DATADIR)/carla/carla_shared.py


+ 2
- 3
data/carla-standalone.pc View File

@@ -1,7 +1,6 @@
prefix=X-PREFIX-X prefix=X-PREFIX-X
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/carla
includedir=${prefix}/include/carla
libdir=X-LIBDIR-X/carla
includedir=X-INCLUDEDIR-X/carla


Name: carla-standalone Name: carla-standalone
Version: 1.9.5 Version: 1.9.5


+ 2
- 3
data/carla-utils.pc View File

@@ -1,7 +1,6 @@
prefix=X-PREFIX-X prefix=X-PREFIX-X
exec_prefix=${prefix}
libdir=${exec_prefix}/lib/carla
includedir=${prefix}/include/carla
libdir=X-LIBDIR-X/carla
includedir=X-INCLUDEDIR-X/carla


Name: carla-utils Name: carla-utils
Version: 1.9.5 Version: 1.9.5


Loading…
Cancel
Save