From kunia@enigma.ukma.kiev.ua  Tue Apr 23 14:58:40 2002
Return-Path: <kunia@enigma.ukma.kiev.ua>
Received: from enigma.ukma.kiev.ua (enigma.ukma.kiev.ua [194.44.142.24])
	by hub.freebsd.org (Postfix) with ESMTP id 5256037B404
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 23 Apr 2002 14:58:32 -0700 (PDT)
Received: (from kunia@localhost)
	by enigma.ukma.kiev.ua (8.11.6/8.11.6) id g3NLwEO06870;
	Wed, 24 Apr 2002 00:58:14 +0300 (EEST)
	(envelope-from kunia)
Message-Id: <200204232158.g3NLwEO06870@enigma.ukma.kiev.ua>
Date: Wed, 24 Apr 2002 00:58:14 +0300 (EEST)
From: Olexander Kunytsa <kunia@kunia.com.ua>
Reply-To: Olexander Kunytsa <kunia@istc.kiev.ua>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: audio/fmio version update
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         37401
>Category:       ports
>Synopsis:       audio/fmio version update
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 23 15:00:03 PDT 2002
>Closed-Date:    Wed Apr 24 04:41:12 PDT 2002
>Last-Modified:  Wed Apr 24 04:41:12 PDT 2002
>Originator:     Olexander Kunytsa
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
ISTC
>Environment:
System: FreeBSD enigma.ukma.kiev.ua 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Feb 20 15:37:56 EET 2002 root@enigma.ukma.kiev.ua:/usr/src/sys/compile/ENIGMA i386


>Description:
	Update port to the lastest version

>How-To-Repeat:
>Fix:

Apply the patch and add file given below

diff -ur fmio.old/Makefile fmio/Makefile
--- fmio.old/Makefile	Mon Mar 18 20:56:28 2002
+++ fmio/Makefile	Wed Apr 24 00:15:23 2002
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	fmio
-PORTVERSION=	1.2.18
+PORTVERSION=	1.2.25
 CATEGORIES=	audio
 MASTER_SITES=	http://www.jumbo.narod.ru/src/fmio/
 
@@ -16,10 +16,33 @@
 MANCOMPRESSED=	no
 
 pre-build:
-	${PERL} -pi.orig -e "s@lib fmio man@lib fmio@g; \
-			     s@install -c -o root@#install@g" ${WRKSRC}/Makefile
+.if !defined(WITH_XTREME)
+	@${ECHO_MSG}
+	@${ECHO_MSG} "If you want to compile with Highway Xtreme support,"
+	@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_XTREME=yes\""
+	@${ECHO_MSG}
+.endif
 
-post-install:
+post-build:
+.if defined(WITH_XTREME)
+	@${MAKE} ${WRKSRC}/utils/bktrctl
+.endif
+
+do-install:
+.if defined(WITH_XTREME)
+	${INSTALL} ${WRKSRC}/utils/bktrctl ${PREFIX}/bin
+	${INSTALL} files/bktrctl.sh ${PREFIX}/etc/rc.d
+.endif
+	${INSTALL} -m 4555 ${WRKSRC}/fmio ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/fmio.1 ${MANPREFIX}/man/man1
+
+
+
+post-install:
+.if !defined(WITH_XTREME)
+	${GREP} -v "bktrctl.sh" ${TMPPLIST} > ${TMPPLIST}.tmp
+	${MV} -f ${TMPPLIST}.tmp ${TMPPLIST}
+.endif
+
 
 .include <bsd.port.mk>
diff -ur fmio.old/distinfo fmio/distinfo
--- fmio.old/distinfo	Mon Mar 18 20:56:28 2002
+++ fmio/distinfo	Tue Apr 23 14:55:43 2002
@@ -1 +1 @@
-MD5 (fmio-1.2.18.tar.gz) = 3260dfb3e9ae3a7baa9912bf26ec1d43
+MD5 (fmio-1.2.25.tar.gz) = 4dacdd09098e83866b9309d4d9abf289
diff -ur fmio.old/pkg-plist fmio/pkg-plist
--- fmio.old/pkg-plist	Sat Apr  7 04:33:50 2001
+++ fmio/pkg-plist	Tue Apr 23 23:25:01 2002
@@ -1 +1,2 @@
 bin/fmio
+etc/rc.d/bktrctl.sh


-------------- files/bktrctl.sh ---------------------------

#!/bin/sh


if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
    echo "$0: Cannot determine the PREFIX" >&2
    exit 1
fi


case "$1" in
start)
	bktrctl 2>/dev/null >/dev/null && echo -n " bktrctl"
	;;
stop)
	killall bktrctl && echo -n " bktrctl"
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac

exit 0
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sobomax 
State-Changed-When: Wed Apr 24 04:40:34 PDT 2002 
State-Changed-Why:  
COmmitted, with some modifications. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37401 
>Unformatted:
