diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/mpio-driver/Makefile | 16 | ||||
-rw-r--r-- | audio/mpio-driver/distinfo | 4 | ||||
-rw-r--r-- | audio/mpio-driver/files/Makefile | 4 | ||||
-rw-r--r-- | audio/mpio-driver/pkg-plist | 2 |
4 files changed, 16 insertions, 10 deletions
diff --git a/audio/mpio-driver/Makefile b/audio/mpio-driver/Makefile index 63127465ab26..2c72c634d0e5 100644 --- a/audio/mpio-driver/Makefile +++ b/audio/mpio-driver/Makefile @@ -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> diff --git a/audio/mpio-driver/distinfo b/audio/mpio-driver/distinfo index ac8e6bc8efaf..515c333e3a58 100644 --- a/audio/mpio-driver/distinfo +++ b/audio/mpio-driver/distinfo @@ -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 diff --git a/audio/mpio-driver/files/Makefile b/audio/mpio-driver/files/Makefile index bcd37caacfc2..d50397bbe9b1 100644 --- a/audio/mpio-driver/files/Makefile +++ b/audio/mpio-driver/files/Makefile @@ -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> diff --git a/audio/mpio-driver/pkg-plist b/audio/mpio-driver/pkg-plist index 755c1328b92a..9db18fb6b6c5 100644 --- a/audio/mpio-driver/pkg-plist +++ b/audio/mpio-driver/pkg-plist @@ -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 |