mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
- update to 0.3
- unbreak: we patch successfully now - add support for 5.x PR: 65312 Submitted by: maintainer
This commit is contained in:
parent
5a5e873d18
commit
fbac46ab2f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108179
@ -6,10 +6,10 @@
|
||||
#
|
||||
|
||||
PORTNAME= mpio-driver
|
||||
PORTVERSION= 0.2
|
||||
PORTVERSION= 0.3
|
||||
CATEGORIES= audio
|
||||
MASTER_SITES= ftp://ftp.gascom.ru/pub/patches/
|
||||
DISTFILES= urio.c.diff_1
|
||||
DISTFILES= urio.c.diff_2
|
||||
EXTRACT_ONLY=
|
||||
|
||||
MAINTAINER= asa@gascom.ru
|
||||
@ -17,12 +17,12 @@ COMMENT= Digit@lway MPIO MP3 player device driver KMOD
|
||||
|
||||
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
|
||||
|
||||
BROKEN= Does not patch
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} > 500000
|
||||
IGNORE= This port only works for FreeBSD 4.x
|
||||
.if ${OSVERSION} >= 500000
|
||||
PLIST_SUB= MODDEST=/boot
|
||||
.else
|
||||
PLIST_SUB= MODDEST=
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@ -31,10 +31,12 @@ post-extract:
|
||||
|
||||
pre-patch:
|
||||
@${CP} ${MASTERDIR}/files/Makefile ${WRKSRC}
|
||||
@cd ${WRKSRC} && ${PATCH} < ${DISTDIR}/urio.c.diff_1
|
||||
@${PATCH} -d ${WRKSRC} < ${DISTDIR}/urio.c.diff_2
|
||||
|
||||
post-install:
|
||||
${INSTALL_SCRIPT} ${MASTERDIR}/files/mpio-driver.sh.sample ${PREFIX}/etc/rc.d
|
||||
.if exists(/dev/MAKEDEV)
|
||||
@cd /dev && sh MAKEDEV urio0
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (urio.c.diff_1) = df344d5bde81ba5b813ba98649ab0c8f
|
||||
SIZE (urio.c.diff_1) = 4717
|
||||
MD5 (urio.c.diff_2) = c28643eb5ae5ec40e66b24fdbe35a6d2
|
||||
SIZE (urio.c.diff_2) = 5537
|
||||
|
@ -7,4 +7,8 @@ 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
|
||||
|
||||
.if ${OSVERSION} >= 500000
|
||||
KMODDIR= /boot/modules
|
||||
.endif
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
etc/rc.d/mpio-driver.sh.sample
|
||||
@unexec rm -f /modules/mpio.ko 2> /dev/null || true
|
||||
@unexec rm -f %%MODDEST%%/modules/mpio.ko 2> /dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user