mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
4597903ce9
The one-liner gcc buildPhase doesn't work anymore, so I'm using upstream Makefile instead. The Makefile needs a tiny patch to work (not nixpkgs specific). Also fixup path to 'sox' and espeak-data/ (runtime deps) by providing full paths. TODO: Uhm, seems like espeakedit still wants espeak-data/ in $HOME, even thought I've told it to use $espeak/share/espeak-data. Have to contact upstream to get this fixed. Workaround: cp -r $(nix-build -A espeak)/share/espeak-data ~ chmod +w ~/espeak-data
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
Fix broken Makefile:
|
|
|
|
* fix syntax error (missing '\' to continue line):
|
|
Makefile:19: *** recipe commences before first target. Stop.
|
|
* Get portaudio library flags from pkg-config (to get -Lpath/to/portaudio/lib etc.)
|
|
|
|
Author: Bjørn Forsman
|
|
diff -uNr espeakedit-1.48.03.orig/src/Makefile espeakedit-1.48.03/src/Makefile
|
|
--- espeakedit-1.48.03.orig/src/Makefile 2013-03-13 15:52:02.000000000 +0100
|
|
+++ espeakedit-1.48.03/src/Makefile 2014-07-22 15:34:17.524114822 +0200
|
|
@@ -12,12 +12,11 @@
|
|
|
|
WX_LIBS = -pthread `wx-config --libs`
|
|
|
|
-LIBS=-lstdc++ -lportaudio
|
|
+LIBS=-lstdc++ `pkg-config --libs portaudio-2.0`
|
|
#LIBS=-lstdc++ /usr/lib/x86_64-linux-gnu/libportaudio.so.2
|
|
|
|
-CPPFLAGS = -Wall -g -fexceptions `wx-config --cflags`
|
|
- -I/usr/include/wx-2.8 \
|
|
- -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
|
|
+CPPFLAGS = -Wall -g -fexceptions `wx-config --cflags` \
|
|
+ -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES \
|
|
-D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -D_ESPEAKEDIT
|
|
|
|
CXXFLAGS = -O2 -Wall -fexceptions `wx-config --cflags` \
|