Anonymous avatar Anonymous committed 06cef13

Rebuild espeak to use pulseaudio for 64bit only

Signed-off-by: Lee Pak Hong <hata.ph@gmail.com>;

Comments (0)

Files changed (1)

var/vabs/espeak/src/espeak.SlackBuild

 LDFLAG_OPTIONS=${LDFLAG_OPTIONS:-""}
 ADDRB=${ADDRB:-""} #Add deps that need to be added to the slack-required file here
 EXRB=${EXRB:-""} #Add deps that need to be excluded from the slack-required file here
-MAKEDEPENDS=${MAKEDEPENDS:-"portaudio"} #Add deps needed TO BUILD this package here.
+if [[ "$ARCH" = i?86 ]]; then
+  MAKEDEPENDS=${MAKEDEPENDS:-"portaudio"} #Add deps needed TO BUILD this package here.
+elif [ "$ARCH" = "x86_64" ]; then
+  MAKEDEPENDS=${MAKEDEPENDS:-"pulseaudio jack portaudio"} #Add deps needed TO BUILD this package here.
+fi
 #----------------------------------------------------------------------------
 
 # DO NOT EXECUTE if NORUN is set to 1
 #-----------------------------------------------------------------------
 
 echo "Configuring source..."
-#./configure --prefix=/usr \
-#  --libdir=/usr/lib${LIBDIRSUFFIX} \
-#  --infodir=/usr/info \
-#  --sysconfdir=/etc \
-#  --localstatedir=/var \
-#  --mandir=/usr/man \
-#  --with-included-gettext \
-#  --disable-debug \
-#  --program-prefix="" \
-#  --program-suffix="" \
-#  --build=$CONFIGURE_TRIPLET \
-#  $CONFIG_OPTIONS || exit 1
 cd src
 cp portaudio19.h portaudio.h
 # set AUDIO=runtime to use both portaudio and pulseaudio
 # refer to src/Makefile for detail
-make AUDIO=portaudio || exit 1
+if [[ "$ARCH" = i?86 ]]; then
+  # 32bit not runing pulseaudio as default
+  make AUDIO=portaudio || exit 1
+elif [ "$ARCH" = "x86_64" ]; then
+  make AUDIO=runtime || exit 1
+fi
 
 make install DESTDIR=$PKG || exit
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.