Skip to content

Commit

Permalink
honor CFLAGS; ok sebastia@
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Weisgerber committed Aug 25, 2011
1 parent 5702fd2 commit 9f5f474
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
4 changes: 2 additions & 2 deletions audio/snack/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.2 2011/06/08 17:31:33 jasper Exp $
# $OpenBSD: Makefile,v 1.3 2011/08/25 12:50:28 naddy Exp $

COMMENT-main = Tcl/Tk snack sound toolkit
COMMENT-python = Python bindings for Tcl/Tk snack sound toolkit
Expand All @@ -9,7 +9,7 @@ PKGNAME-main = snack-${MODPY_EGG_VERSION}
PKGNAME-python = py-snack-${MODPY_EGG_VERSION}
CATEGORIES = audio

REVISION-main = 0
REVISION-main = 1
REVISION-python =0

HOMEPAGE = http://www.speech.kth.se/snack
Expand Down
12 changes: 8 additions & 4 deletions audio/snack/patches/patch-unix_Makefile_in
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
$OpenBSD: patch-unix_Makefile_in,v 1.1.1.1 2011/03/12 08:53:52 sebastia Exp $
$OpenBSD: patch-unix_Makefile_in,v 1.2 2011/08/25 12:50:28 naddy Exp $

don't override CFLAGS
sndio bits
install to OpenBSD tcl layout


--- unix/Makefile.in.orig Wed Dec 14 12:29:39 2005
+++ unix/Makefile.in Mon Jan 17 13:55:43 2011
@@ -29,7 +29,7 @@ TCL_VERSION = @TCLVER@
+++ unix/Makefile.in Wed Aug 24 18:00:55 2011
@@ -29,9 +29,9 @@ TCL_VERSION = @TCLVER@

CC = @CC@

-INCLUDES = ${XINCLUDES} @TCL_INCLUDE_SPEC@ -I${TCL_INCPATH} -I${TK_INCPATH} @AINC@ @NISTINC@
+INCLUDES = ${XINCLUDES} @TCL_INCLUDE_SPEC@ @TK_INCLUDE_SPEC@ -I${TCL_INCPATH} -I${TK_INCPATH} @AINC@ @NISTINC@

CFLAGS = -O @CFLAGS@ @AFLAG@ ${INCLUDES} @TCLAPI@ -I${GENERIC_DIR} @DEFS@
-CFLAGS = -O @CFLAGS@ @AFLAG@ ${INCLUDES} @TCLAPI@ -I${GENERIC_DIR} @DEFS@
+CFLAGS = @CFLAGS@ @AFLAG@ ${INCLUDES} @TCLAPI@ -I${GENERIC_DIR} @DEFS@

LIBSO = -lc @ALIB@ @TCL_LIB_SPEC@

@@ -124,6 +124,9 @@ jkAudIO_hp.o: $(UNIX_DIR)/jkAudIO_hp.c
jkAudIO_sun.o: $(UNIX_DIR)/jkAudIO_sun.c
Expand Down
14 changes: 12 additions & 2 deletions audio/snack/patches/patch-unix_configure
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
$OpenBSD: patch-unix_configure,v 1.1.1.1 2011/03/12 08:53:52 sebastia Exp $
$OpenBSD: patch-unix_configure,v 1.2 2011/08/25 12:50:28 naddy Exp $

mostly sndio bits
don't clobber CFLAGS

--- unix/configure.orig Wed Dec 14 12:29:39 2005
+++ unix/configure Mon Jan 17 13:55:12 2011
+++ unix/configure Wed Aug 24 18:00:33 2011
@@ -308,7 +308,7 @@ ac_includes_default="\
# include <unistd.h>
#endif"
Expand All @@ -13,6 +14,15 @@ mostly sndio bits
ac_subst_files=''

# Initialize some variables set by options.
@@ -1487,7 +1487,7 @@ if test "$TCL_SHARED_BUILD" = 0; then
echo "$as_me: error: Tcl and Tk must be configured with the --enable-shared flag" >&2;}
{ (exit 1); exit 1; }; }
fi
-CFLAGS=$TCL_SHLIB_CFLAGS
+CFLAGS="$CFLAGS $TCL_SHLIB_CFLAGS"
LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
SHLIB_LD=$TCL_SHLIB_LD
SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
@@ -1554,11 +1554,16 @@ case $system in
AFLAG="-DOSS"
AOBJ="jkAudIO_oss.o"
Expand Down

0 comments on commit 9f5f474

Please sign in to comment.