Skip to content
Browse files

add GL/GLUT to build dependencies

  • Loading branch information...
1 parent cff02cf commit 21dc0992159d8e5337da7c30a4d8fa8f2e7c7dfc @x42 x42 committed Mar 25, 2013
Showing with 14 additions and 4 deletions.
  1. +12 −4 b_synth/Makefile
  2. +2 −0 debian/control
View
16 b_synth/Makefile
@@ -4,10 +4,15 @@ LOADLIBES = -lm
CFLAGS+= -I../src -I../b_overdrive -I../b_reverb -I../b_whirl -std=c99
CFLAGS+=`pkg-config --cflags lv2 lv2core`
-HAVE_UI=yes
-
targets=
+ifeq ($(IS_OSX), yes)
+ HAVE_UI=yes
+else
+ HAVE_UI=$(shell pkg-config --exists glu && echo yes)
+endif
+
+
ifeq ($(LV2AVAIL), yes)
LV2NAME=b_synth
targets+=lv2
@@ -25,15 +30,18 @@ ifeq ($(LV2AVAIL), yes)
UIDEPS+=help_screen_image.c
LV2GUI=b_synthUI
ifeq ($(IS_OSX), yes)
- UILIBS=../pugl/pugl_osx.m -framework Cocoa -framework OpenGL
UIDEPS+=../pugl/pugl_osx.m
+ UILIBS=../pugl/pugl_osx.m -framework Cocoa -framework OpenGL
UI_TYPE=CocoaUI
else
- UILIBS=../pugl/pugl_x11.c -lX11 -lGL -lGLU
UIDEPS+=../pugl/pugl_x11.c
+ CFLAGS+=`pkg-config --cflags pkg-config --libs glu`
+ UILIBS=../pugl/pugl_x11.c -lX11 `pkg-config --libs pkg-config --libs glu`
UI_TYPE=X11UI
endif
targets+=$(LV2GUI)$(LIB_EXT)
+ else
+ $(warning "openGL/GLU is not available - install glu-dev to include LV2 GUI")
endif
endif
View
2 debian/control
@@ -3,11 +3,13 @@ Section: sound
Priority: optional
Maintainer: Robin Gareus <robin@gareus.org>
Build-Depends: debhelper (>= 8),
+ glu-dev,
libasound2-dev,
libjack-dev | libjack-jackd2-dev,
liblo-dev,
libsndfile1-dev,
libzita-convolver-dev (>=3.1.0),
+ libx11-dev,
lv2-dev (>=1.0.0~dfsg2-2),
tcl-dev,
tk-dev

0 comments on commit 21dc099

Please sign in to comment.
Something went wrong with that request. Please try again.