Browse Source

Don't install carla-control stuff if liblo is not available

Closes #512
tags/1.9.8
falkTX 8 years ago
parent
commit
aa5f185440
1 changed files with 13 additions and 14 deletions
  1. +13
    -14
      Makefile

+ 13
- 14
Makefile View File

@@ -417,14 +417,11 @@ stoat:
install: install:
# Create directories # Create directories
install -d $(DESTDIR)$(BINDIR) install -d $(DESTDIR)$(BINDIR)
install -d $(DESTDIR)$(LIBDIR)
install -d $(DESTDIR)$(LIBDIR)/carla install -d $(DESTDIR)$(LIBDIR)/carla
install -d $(DESTDIR)$(LIBDIR)/pkgconfig install -d $(DESTDIR)$(LIBDIR)/pkgconfig
install -d $(DESTDIR)$(LIBDIR)/python3/dist-packages install -d $(DESTDIR)$(LIBDIR)/python3/dist-packages
install -d $(DESTDIR)$(DATADIR)
install -d $(DESTDIR)$(DATADIR)/carla install -d $(DESTDIR)$(DATADIR)/carla
install -d $(DESTDIR)$(DATADIR)/carla/resources install -d $(DESTDIR)$(DATADIR)/carla/resources
install -d $(DESTDIR)$(INCLUDEDIR)
install -d $(DESTDIR)$(INCLUDEDIR)/carla install -d $(DESTDIR)$(INCLUDEDIR)/carla
install -d $(DESTDIR)$(INCLUDEDIR)/carla/includes install -d $(DESTDIR)$(INCLUDEDIR)/carla/includes
install -d $(DESTDIR)$(INCLUDEDIR)/carla/utils install -d $(DESTDIR)$(INCLUDEDIR)/carla/utils
@@ -433,19 +430,11 @@ ifeq ($(HAVE_PYQT),true)
# Create directories (gui) # Create directories (gui)
install -d $(DESTDIR)$(LIBDIR)/carla/styles install -d $(DESTDIR)$(LIBDIR)/carla/styles
install -d $(DESTDIR)$(DATADIR)/applications install -d $(DESTDIR)$(DATADIR)/applications
install -d $(DESTDIR)$(DATADIR)/icons
install -d $(DESTDIR)$(DATADIR)/icons/hicolor
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/16x16
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/16x16/apps install -d $(DESTDIR)$(DATADIR)/icons/hicolor/16x16/apps
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/48x48
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps install -d $(DESTDIR)$(DATADIR)/icons/hicolor/48x48/apps
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/128x128
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/128x128/apps install -d $(DESTDIR)$(DATADIR)/icons/hicolor/128x128/apps
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/256x256
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/256x256/apps install -d $(DESTDIR)$(DATADIR)/icons/hicolor/256x256/apps
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/scalable
install -d $(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps install -d $(DESTDIR)$(DATADIR)/icons/hicolor/scalable/apps
install -d $(DESTDIR)$(DATADIR)/mime
install -d $(DESTDIR)$(DATADIR)/mime/packages install -d $(DESTDIR)$(DATADIR)/mime/packages
endif endif


@@ -541,7 +530,6 @@ ifeq ($(HAVE_PYQT),true)
# Install script files (gui) # Install script files (gui)
install -m 755 \ install -m 755 \
data/carla \ data/carla \
data/carla-control \
data/carla-database \ data/carla-database \
data/carla-jack-multi \ data/carla-jack-multi \
data/carla-jack-single \ data/carla-jack-single \
@@ -553,7 +541,6 @@ ifeq ($(HAVE_PYQT),true)
# Adjust PREFIX value in script files (gui) # Adjust PREFIX value in script files (gui)
sed -i 's?X-PREFIX-X?$(PREFIX)?' \ sed -i 's?X-PREFIX-X?$(PREFIX)?' \
$(DESTDIR)$(BINDIR)/carla \ $(DESTDIR)$(BINDIR)/carla \
$(DESTDIR)$(BINDIR)/carla-control \
$(DESTDIR)$(BINDIR)/carla-database \ $(DESTDIR)$(BINDIR)/carla-database \
$(DESTDIR)$(BINDIR)/carla-jack-multi \ $(DESTDIR)$(BINDIR)/carla-jack-multi \
$(DESTDIR)$(BINDIR)/carla-jack-single \ $(DESTDIR)$(BINDIR)/carla-jack-single \
@@ -561,6 +548,15 @@ ifeq ($(HAVE_PYQT),true)
$(DESTDIR)$(BINDIR)/carla-rack \ $(DESTDIR)$(BINDIR)/carla-rack \
$(DESTDIR)$(BINDIR)/carla-settings $(DESTDIR)$(BINDIR)/carla-settings


ifeq ($(HAVE_LIBLO),true)
install -m 755 \
data/carla-control \
$(DESTDIR)$(BINDIR)

sed -i 's?X-PREFIX-X?$(PREFIX)?' \
$(DESTDIR)$(BINDIR)/carla-control
endif

# Install the real modgui bridge # Install the real modgui bridge
install -m 755 \ install -m 755 \
data/carla-bridge-lv2-modgui \ data/carla-bridge-lv2-modgui \
@@ -603,7 +599,10 @@ ifeq ($(HAVE_THEME),true)
endif endif


# Install desktop files # Install desktop files
install -m 644 data/*.desktop $(DESTDIR)$(DATADIR)/applications
install -m 644 data/carla.desktop $(DESTDIR)$(DATADIR)/applications
ifeq ($(HAVE_LIBLO),true)
install -m 644 data/carla-control.desktop $(DESTDIR)$(DATADIR)/applications
endif


# Install mime package # Install mime package
install -m 644 data/carla.xml $(DESTDIR)$(DATADIR)/mime/packages install -m 644 data/carla.xml $(DESTDIR)$(DATADIR)/mime/packages


Loading…
Cancel
Save