ec4c2d75fa
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
--- a/Makefile.inc.in
|
|
+++ b/Makefile.inc.in
|
|
@@ -8,6 +8,7 @@ HAVE_OSS = @with_oss@
|
|
HAVE_PORTAUDIO = @with_portaudio@
|
|
HAVE_FFMS2 = @with_ffms2@
|
|
HAVE_LIBPULSE = @with_libpulse@
|
|
+HAVE_LIBATOMIC = @with_libatomic@
|
|
|
|
##############
|
|
# BUILD OUTPUT
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -376,6 +376,9 @@ AGI_OPT_PKG(ffms2, [build without ffms2 A/V provider [auto]], [Enable FFMS2 supp
|
|
AGI_OPT_PKG(fftw3, [build without fftw support [auto]], [Enable fftw support])
|
|
AGI_OPT_PKG(hunspell, [build without hunspell spell-checking [auto]], [Enable Hunspell support])
|
|
|
|
+AC_ARG_WITH([libatomic], AS_HELP_STRING([--with-libatomic],[Use libatomic. [no]]))
|
|
+AC_SUBST(with_libatomic)
|
|
+
|
|
######################################################
|
|
# Debugging support
|
|
######################################################
|
|
--- a/src/Makefile
|
|
+++ b/src/Makefile
|
|
@@ -179,6 +179,10 @@ src_LIBS += $(LIBS_HUNSPELL)
|
|
src_OBJ += $(d)spellchecker_hunspell.o
|
|
endif
|
|
|
|
+ifeq (yes, $(HAVE_LIBATOMIC))
|
|
+src_LIBS += -latomic
|
|
+endif
|
|
+
|
|
#####################
|
|
# SOURCE-LEVEL CFLAGS
|
|
#####################
|