diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-01 04:30:04 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-01 04:30:04 +0000 |
commit | 46b14da6d109d82135a4830be8cd17ef81dc38f0 (patch) | |
tree | cb649994d450c4818fe0e1035da9936bce09c74a /audio/mpio-driver | |
parent | 01dd93ca39a9a85a57004c7aa69a5938cad381f9 (diff) | |
download | ports-46b14da6d109d82135a4830be8cd17ef81dc38f0.tar.gz ports-46b14da6d109d82135a4830be8cd17ef81dc38f0.zip |
Notes
Diffstat (limited to 'audio/mpio-driver')
-rw-r--r-- | audio/mpio-driver/Makefile | 38 | ||||
-rw-r--r-- | audio/mpio-driver/distinfo | 1 | ||||
-rw-r--r-- | audio/mpio-driver/files/Makefile | 10 | ||||
-rw-r--r-- | audio/mpio-driver/files/mpio-driver.sh.sample | 18 | ||||
-rw-r--r-- | audio/mpio-driver/pkg-descr | 9 | ||||
-rw-r--r-- | audio/mpio-driver/pkg-plist | 2 |
6 files changed, 78 insertions, 0 deletions
diff --git a/audio/mpio-driver/Makefile b/audio/mpio-driver/Makefile new file mode 100644 index 000000000000..df2dfc07d601 --- /dev/null +++ b/audio/mpio-driver/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: mpio-driver +# Date created: 19 Jun 2003 +# Whom: Sergey Akifyev <asa@gascom.ru> +# +# $FreeBSD$ +# + +PORTNAME= mpio-driver +PORTVERSION= 0.2 +CATEGORIES= audio +MASTER_SITES= ftp://ftp.gascom.ru/pub/patches/ +DISTFILES= urio.c.diff_1 +EXTRACT_ONLY= + +MAINTAINER= asa@gascom.ru +COMMENT= Digit@lway MPIO MP3 player device driver KMOD + +NO_PACKAGE= should be recompiled for a particular FreeBSD kernel + +.include <bsd.port.pre.mk> + +.if ${OSVERSION} > 500000 +IGNORE= This port only works for FreeBSD 4.x +.endif + +post-extract: + @${MKDIR} ${WRKSRC} + @${CP} /usr/src/sys/dev/usb/urio.c ${WRKSRC} + +pre-patch: + @${CP} ${MASTERDIR}/files/Makefile ${WRKSRC} + @cd ${WRKSRC} && ${PATCH} < ${DISTDIR}/urio.c.diff_1 + +post-install: + ${INSTALL_SCRIPT} ${MASTERDIR}/files/mpio-driver.sh.sample ${PREFIX}/etc/rc.d + @cd /dev && sh MAKEDEV urio0 + +.include <bsd.port.post.mk> diff --git a/audio/mpio-driver/distinfo b/audio/mpio-driver/distinfo new file mode 100644 index 000000000000..46f38793ca1a --- /dev/null +++ b/audio/mpio-driver/distinfo @@ -0,0 +1 @@ +MD5 (urio.c.diff_1) = df344d5bde81ba5b813ba98649ab0c8f diff --git a/audio/mpio-driver/files/Makefile b/audio/mpio-driver/files/Makefile new file mode 100644 index 000000000000..bcd37caacfc2 --- /dev/null +++ b/audio/mpio-driver/files/Makefile @@ -0,0 +1,10 @@ +# Makefile for MPIO device driver +# Created by Sergey Akifyev <asa@gascom.ru> +# $FreeBSD$ +# +# $Id: Makefile,v 1.1 2003/06/19 15:36:18 asa Exp $ +KMOD= mpio +SRCS= urio.c usb_if.h device_if.h bus_if.h opt_usb.h vnode_if.h +CFLAGS= -DUSB_VENDOR_DIGITALWAY=0x2735 -DUSB_PRODUCT_DIGITALWAY_MPIO=0x0001 + +.include <bsd.kmod.mk> diff --git a/audio/mpio-driver/files/mpio-driver.sh.sample b/audio/mpio-driver/files/mpio-driver.sh.sample new file mode 100644 index 000000000000..c3d8913f89eb --- /dev/null +++ b/audio/mpio-driver/files/mpio-driver.sh.sample @@ -0,0 +1,18 @@ +#!/bin/sh +# MPIO-kmod sample startup script +# Created by Sergey Akifyev <asa@gascom.ru> +# +# $Id: mpio-driver.sh.sample,v 1.1 2003/06/19 15:36:18 asa Exp $ + +case "${1}" in + start) + echo -n "mpio-driver " + kldload mpio + ;; + stop) + kldunload mpio + ;; + *) + echo Usage: `basename ${0}` "{start|stop}" + ;; +esac diff --git a/audio/mpio-driver/pkg-descr b/audio/mpio-driver/pkg-descr new file mode 100644 index 000000000000..c976b8b5ace1 --- /dev/null +++ b/audio/mpio-driver/pkg-descr @@ -0,0 +1,9 @@ +Digit@lway MPIO MP3 player device driver KMOD + +It is actually a patch to FreeBSD standard urio +driver, which adds MPIO support to it, and +fixes some issues + +This driver is designed to be used with MPIO +for Linux software, ported to FreeBSD as +audio/mpiosh diff --git a/audio/mpio-driver/pkg-plist b/audio/mpio-driver/pkg-plist new file mode 100644 index 000000000000..755c1328b92a --- /dev/null +++ b/audio/mpio-driver/pkg-plist @@ -0,0 +1,2 @@ +etc/rc.d/mpio-driver.sh.sample +@unexec rm -f /modules/mpio.ko 2> /dev/null || true |