From 457a95e1012e0f0eb71382fdd13266a799741fed Mon Sep 17 00:00:00 2001 From: FUJISHIMA Satsuki Date: Mon, 22 Oct 2001 18:44:30 +0000 Subject: o unbreak Alpha and prepare for other 64-bit platforms. o add WITH_VORBIS and fix WITH_GSM. PR: 31413 Submitted by: Christian Weisgerber , Dan Nelson (maintainer) --- audio/sox/Makefile | 26 +++++++++++++++++++------- audio/sox/files/patch-ad | 15 +++++++++++++++ audio/sox/files/patch-ae | 20 ++++++++++++++++++++ 3 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 audio/sox/files/patch-ad create mode 100644 audio/sox/files/patch-ae (limited to 'audio/sox') diff --git a/audio/sox/Makefile b/audio/sox/Makefile index 934df14e8d08..7e34200d620a 100644 --- a/audio/sox/Makefile +++ b/audio/sox/Makefile @@ -7,20 +7,32 @@ PORTNAME= sox PORTVERSION= 12.17.2 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= sox -MAINTAINER= dnelson@emsphone.com +MAINTAINER= dnelson@emsphone.com -MAN1= sox.1 play.1 soxexam.1 -MLINKS= play.1 rec.1 -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --enable-fast-ulaw --enable-fast-alaw +MAN1= sox.1 play.1 soxexam.1 +MLINKS= play.1 rec.1 +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-fast-ulaw --enable-fast-alaw .if defined(WITH_GSM) -CONFIGURE_ARGS+= --with-gsmlib=${PREFIX}/lib --with-gsminc=${PREFIX}/include -LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm +CONFIGURE_ARGS+= --with-gsmlib=${LOCALBASE}/lib \ + --with-gsminc=${LOCALBASE}/include +LIB_DEPENDS+= gsm.1:${PORTSDIR}/audio/gsm +.else +CONFIGURE_ARGS+= --with-gsminc=no +.endif + +.if defined(WITH_VORBIS) +CONFIGURE_ARGS+= --with-ogg-vorbisinc=${LOCALBASE}/include \ + --with-ogg-vorbislib=${LOCALBASE}/lib +LIB_DEPENDS+= vorbis.0:${PORTSDIR}/audio/libvorbis +.else +CONFIGURE_ARGS+= --with-ogg-vorbisinc=no .endif .include diff --git a/audio/sox/files/patch-ad b/audio/sox/files/patch-ad new file mode 100644 index 000000000000..812abc4c4e56 --- /dev/null +++ b/audio/sox/files/patch-ad @@ -0,0 +1,15 @@ + +$FreeBSD$ + +--- ima_rw.c.orig Sun Oct 21 00:11:17 2001 ++++ ima_rw.c Sun Oct 21 00:11:25 2001 +@@ -23,8 +23,8 @@ + #include + #include + #include +-#include "ima_rw.h" + #include "st.h" ++#include "ima_rw.h" + + /* + * diff --git a/audio/sox/files/patch-ae b/audio/sox/files/patch-ae new file mode 100644 index 000000000000..c4e0930b579b --- /dev/null +++ b/audio/sox/files/patch-ae @@ -0,0 +1,20 @@ + +$FreeBSD$ + +--- st.h.orig Sun Oct 21 00:13:45 2001 ++++ st.h Sun Oct 21 00:13:56 2001 +@@ -33,14 +33,9 @@ + #define st_free free + + /* FIXME: Move to separate header */ +-#ifdef __alpha__ + #include /* To get defines for 32-bit integers */ + #define LONG int32_t + #define ULONG u_int32_t +-#else +-#define LONG long +-#define ULONG unsigned long +-#endif + + #define MAXLONG 0x7fffffffL + #define MAXULONG 0xffffffffL -- cgit v1.2.3