Skip to content

Commit

Permalink
build: fix symlinks in lv2dir
Browse files Browse the repository at this point in the history
Fixes loading of lv2 plugin and its gui.
  • Loading branch information
puleglot authored and JohannesLorenz committed Jan 13, 2024
1 parent c41d8c0 commit 0f567ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ pkglib_LTLIBRARIES += libcalflv2gui.la
libcalflv2gui_la_SOURCES = gui.cpp gui_config.cpp gui_controls.cpp ctl_curve.cpp ctl_keyboard.cpp ctl_knob.cpp ctl_led.cpp ctl_tube.cpp ctl_vumeter.cpp ctl_frame.cpp ctl_fader.cpp ctl_buttons.cpp ctl_notebook.cpp ctl_meterscale.cpp ctl_combobox.cpp ctl_tuner.cpp ctl_phasegraph.cpp ctl_pattern.cpp metadata.cpp giface.cpp plugin_gui_window.cpp preset.cpp preset_gui.cpp lv2gui.cpp osctl.cpp utils.cpp ctl_linegraph.cpp drawingutils.cpp

if USE_DEBUG
libcalflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat $(GUI_DEPS_LIBS) -disable-static -Wl,-z,nodelete
libcalflv2gui_la_LDFLAGS = -rpath $(pkglibdir) -avoid-version -module -lexpat $(GUI_DEPS_LIBS) -disable-static -Wl,-z,nodelete
else
libcalflv2gui_la_LDFLAGS = -rpath $(lv2dir) -avoid-version -module -lexpat -export-symbols-regex "lv2ui_descriptor" $(GUI_DEPS_LIBS) -disable-static -Wl,-z,nodelete
libcalflv2gui_la_LDFLAGS = -rpath $(pkglibdir) -avoid-version -module -lexpat -export-symbols-regex "lv2ui_descriptor" $(GUI_DEPS_LIBS) -disable-static -Wl,-z,nodelete
endif
endif

Expand All @@ -75,7 +75,10 @@ if USE_GUI
endif
if USE_LV2
install -d -m 755 $(DESTDIR)$(lv2dir)
ln -sf $(pkglibdir)/calf.so $(DESTDIR)$(lv2dir)/calf.so
ln -sf $(pkglibdir)/libcalf.so $(DESTDIR)$(lv2dir)/calf.so
if USE_LV2_GUI
ln -sf $(pkglibdir)/libcalflv2gui.so $(DESTDIR)$(lv2dir)/calflv2gui.so
endif
rm -f $(DESTDIR)$(lv2dir)/*.ttl
$(top_builddir)/src/calfmakerdf -m ttl -p $(DESTDIR)$(lv2dir)/ -d $(DESTDIR)$(pkgdatadir)/
if USE_SORDI
Expand Down

0 comments on commit 0f567ee

Please sign in to comment.