Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2004 22:00:08 +0900
From:      KATO Tsuguru <tkato@prontomail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/63003: Update port: audio/snack to 2.2.4
Message-ID:  <20040218220008.11a79430.tkato@prontomail.com>
Resent-Message-ID: <200402181310.i1IDAHsG067793@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63003
>Category:       ports
>Synopsis:       Update port: audio/snack to 2.2.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 18 05:10:16 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE-p2 i386
>Organization:
>Environment:
>Description:
- Update to version 2.2.4

New file:
files/patch-configure

Remove file:
files/patch-Makefile.in

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/audio/snack/Makefile audio/snack/Makefile
--- /usr/ports/audio/snack/Makefile	Wed Dec 31 13:57:37 2003
+++ audio/snack/Makefile	Mon Feb 16 22:52:15 2004
@@ -7,24 +7,33 @@
 #
 
 PORTNAME=	snack
-PORTVERSION=	2.2.3
+PORTVERSION=	2.2.4
 CATEGORIES=	audio tcl84 tk84
 MASTER_SITES=	http://www.speech.kth.se/~kare/
 DISTNAME=	${PORTNAME}${PORTVERSION}
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	The Snack Sound Toolkit
+COMMENT=	A sound toolkit for scripting languages
 
 LIB_DEPENDS=	tk84.1:${PORTSDIR}/x11-toolkits/tk84
 
 WRKSRC=		${WRKDIR}/${DISTNAME}/unix
+
 USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ARGS=	--with-tcl=${LOCALBASE}/lib/tcl8.4 \
-		--with-tk=${LOCALBASE}/lib/tk8.4 \
-		--prefix=${PREFIX}
+		--with-tk=${LOCALBASE}/lib/tk8.4
+MAKE_ENV=	prefix=${PREFIX} exec_prefix=${PREFIX}
+
+PLIST_SUB=	SNACK_VER=${PORTVERSION:R}
+
+CFLAGS+=	-I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4 \
+		-I${LOCALBASE}/include
 
-PLIST_SUB=	SNACK_VER=2.2
+OPTIONS=	VORBIS "Support for OGG/Vorbis Audio" off
+
+.include <bsd.port.pre.mk>
 
 .if defined(WITH_VORBIS)
 LIB_DEPENDS+=	vorbis.3:${PORTSDIR}/audio/libvorbis
@@ -36,21 +45,10 @@
 PLIST_SUB+=	VORBIS="@comment "
 .endif
 
-pre-everything::
-.if !defined(WITH_VORBIS)
-	@${ECHO_MSG}
-	@${ECHO_MSG} 'Use "make WITH_VORBIS=yes" to build support for OGG Vorbis.'
-	@${ECHO_MSG}
-.endif
-
-post-patch:
-	@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
-		-e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile.in
-
-.if !defined(NOPORTDOCS)
 post-install:
+.if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	${CP} ${WRKSRC}/../doc/* ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/../doc/* ${DOCSDIR}
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/audio/snack/distinfo audio/snack/distinfo
--- /usr/ports/audio/snack/distinfo	Wed Jan 28 18:45:12 2004
+++ audio/snack/distinfo	Sun Feb 15 13:13:43 2004
@@ -1,2 +1,2 @@
-MD5 (snack2.2.3.tar.gz) = 91973ffd802d456e61b6a15adbbcb014
-SIZE (snack2.2.3.tar.gz) = 1686789
+MD5 (snack2.2.4.tar.gz) = 740140cad6a911cfa2a3583f829d033d
+SIZE (snack2.2.4.tar.gz) = 1702397
diff -urN /usr/ports/audio/snack/files/patch-Makefile.in audio/snack/files/patch-Makefile.in
--- /usr/ports/audio/snack/files/patch-Makefile.in	Sun Aug 17 10:47:43 2003
+++ audio/snack/files/patch-Makefile.in	Thu Jan  1 09:00:00 1970
@@ -1,24 +0,0 @@
---- Makefile.in.orig	Sat Nov 24 13:05:13 2001
-+++ Makefile.in	Sat Nov 24 13:07:42 2001
-@@ -1,10 +1,10 @@
- # The path to the tcl.h header file
- 
--TCL_INCPATH = @TCL_SRC_DIR@/generic
-+TCL_INCPATH = %%LOCALBASE%%/include/tcl8.4/generic
- 
- # The path to the tk.h header file
- 
--TK_INCPATH  = @TK_SRC_DIR@/generic
-+TK_INCPATH  = %%LOCALBASE%%/include/tk8.4/generic
- 
- # The path to the X11 include files
-
-@@ -12,7 +12,7 @@
- 
- # Install SNACK package here
- 
--SNACK_INSTALL_PATH = @SNACK_INSTALL_PATH@
-+SNACK_INSTALL_PATH = %%PREFIX%%/lib
- SNACK_HINSTALL_PATH = @SNACK_HINSTALL_PATH@
- 
- # 
diff -urN /usr/ports/audio/snack/files/patch-configure audio/snack/files/patch-configure
--- /usr/ports/audio/snack/files/patch-configure	Thu Jan  1 09:00:00 1970
+++ audio/snack/files/patch-configure	Sun Feb 15 13:56:36 2004
@@ -0,0 +1,11 @@
+--- configure.orig	Tue Feb 10 20:10:42 2004
++++ configure	Sun Feb 15 13:56:28 2004
+@@ -1418,7 +1418,7 @@
+ 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
diff -urN /usr/ports/audio/snack/pkg-plist audio/snack/pkg-plist
--- /usr/ports/audio/snack/pkg-plist	Mon Jun 16 18:59:57 2003
+++ audio/snack/pkg-plist	Mon Feb 16 22:44:12 2004
@@ -4,7 +4,6 @@
 %%VORBIS%%lib/snack%%SNACK_VER%%/libsnackogg.so
 lib/snack%%SNACK_VER%%/pkgIndex.tcl
 lib/snack%%SNACK_VER%%/snack.tcl
-@dirrm lib/snack%%SNACK_VER%%
 %%PORTDOCS%%%%DOCSDIR%%/AddSubCmd.html
 %%PORTDOCS%%%%DOCSDIR%%/Callback.html
 %%PORTDOCS%%%%DOCSDIR%%/CreateFilter.html
@@ -19,3 +18,4 @@
 %%PORTDOCS%%%%DOCSDIR%%/python-man.html
 %%PORTDOCS%%%%DOCSDIR%%/tcl-man.html
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm lib/snack%%SNACK_VER%%
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040218220008.11a79430.tkato>