Skip to content

Commit

Permalink
fix ttl for optional gtk-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
x42 committed Jul 2, 2015
1 parent b47a527 commit ca8b45e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -51,12 +51,14 @@ ifneq ($(shell pkg-config --exists sndfile samplerate\
$(error "libsndfile and libsamplerate are required")
endif

CLV2UI=
ifneq ($(BUILDGTK), no)
ifeq ($(shell pkg-config --exists glib-2.0 gtk+-2.0 || echo no), no)
$(warning "The optional plugin GUI requires glib-2.0 and gtk+-2.0")
$(warning "call make BUILDGTK=no to disable the GUI.")
$(error "Aborting build.")
endif
CLV2UI=ui:ui clv2:ui;
endif

ifeq ($(LIBZITACONVOLVER),)
Expand Down Expand Up @@ -98,12 +100,13 @@ $(BUILDDIR)manifest.ttl: lv2ttl/manifest.ttl.in lv2ttl/manifest.gui.ttl.in
lv2ttl/manifest.ttl.in > $(BUILDDIR)manifest.ttl
ifneq ($(BUILDGTK), no)
sed "s/@LV2NAME@/$(LV2NAME)/;s/@LV2GUI@/$(LV2GUI)/;s/@LIB_EXT@/$(LIB_EXT)/" \
lv2ttl/manifest.gui.ttl.in >> manifest.ttl
lv2ttl/manifest.gui.ttl.in >> $(BUILDDIR)manifest.ttl
endif

$(BUILDDIR)$(LV2NAME).ttl: lv2ttl/$(LV2NAME).ttl.in lv2ttl/$(LV2NAME).gui.ttl.in
@mkdir -p $(BUILDDIR)
cat lv2ttl/$(LV2NAME).ttl.in > $(BUILDDIR)$(LV2NAME).ttl
sed "s/@CLV2UI@/$(CLV2UI)/" \
lv2ttl/$(LV2NAME).ttl.in > $(BUILDDIR)$(LV2NAME).ttl
ifneq ($(BUILDGTK), no)
cat lv2ttl/$(LV2NAME).gui.ttl.in >> $(BUILDDIR)$(LV2NAME).ttl
endif
Expand Down
6 changes: 3 additions & 3 deletions lv2ttl/convoLV2.ttl.in
Expand Up @@ -43,7 +43,7 @@ clv2:Mono
lv2:extensionData work:interface ,
state:interface ;
lv2:optionalFeature lv2:hardRTCapable ;
ui:ui clv2:ui ;
@CLV2UI@
patch:writable clv2:impulse ;
lv2:port [
a atom:AtomPort ,
Expand Down Expand Up @@ -92,7 +92,7 @@ clv2:Stereo
lv2:extensionData work:interface ,
state:interface ;
lv2:optionalFeature lv2:hardRTCapable ;
ui:ui clv2:ui ;
@CLV2UI@
patch:writable clv2:impulse ;
lv2:port [
a atom:AtomPort ,
Expand Down Expand Up @@ -157,7 +157,7 @@ clv2:MonoToStereo
lv2:extensionData work:interface ,
state:interface ;
lv2:optionalFeature lv2:hardRTCapable ;
ui:ui clv2:ui ;
@CLV2UI@
patch:writable clv2:impulse ;
lv2:port [
a atom:AtomPort ,
Expand Down

0 comments on commit ca8b45e

Please sign in to comment.