- Adjust cdrom access logic so all the BSDs go to the BSD cdrom code, not just FreeBSD and OpenBSD. - Update NOT_FOR_PLATFORM: the only BSD for which the cdrom code can actually work is DragonFly. The others are missing ioctls it uses. This could probably be fixed up readily by someone who knows how cdrom access is supposed to work, if any such person cares. - Allow clang until proven otherwise.diff -r1.2 -r1.3 pkgsrc/audio/xmms-cdread/Makefile
(dholland)
@@ -1,29 +1,35 @@ | @@ -1,29 +1,35 @@ | |||
1 | # $NetBSD: Makefile,v 1.2 2011/04/22 13:43:01 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.3 2011/09/04 23:10:30 dholland Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= xmms-cdread-0.14a | 4 | DISTNAME= xmms-cdread-0.14a | |
5 | PKGREVISION= 1 | 5 | PKGREVISION= 1 | |
6 | CATEGORIES= audio | 6 | CATEGORIES= audio | |
7 | MASTER_SITES= ftp://mud.stack.nl/pub/OuterSpace/willem/ | 7 | MASTER_SITES= ftp://mud.stack.nl/pub/OuterSpace/willem/ | |
8 | 8 | |||
9 | MAINTAINER= cheusov@tut.by | 9 | MAINTAINER= cheusov@tut.by | |
10 | HOMEPAGE= ftp://mud.stack.nl/pub/OuterSpace/willem/ | 10 | HOMEPAGE= ftp://mud.stack.nl/pub/OuterSpace/willem/ | |
11 | COMMENT= XMMS input plugin that reads audio data from CDs | 11 | COMMENT= XMMS input plugin that reads audio data from CDs | |
12 | 12 | |||
13 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
14 | 14 | |||
15 | NOT_FOR_PLATFORM= Interix-*-* NetBSD-*-* | 15 | # no cdrom access code | |
16 | ONLY_FOR_COMPILER= gcc | 16 | NOT_FOR_PLATFORM= Interix-*-* | |
17 | ||||
18 | # The BSD cdrom access code ostensibly for FreeBSD requires: | |||
19 | # - CDIOREADTOCENTRY ioctl, which NetBSD and OpenBSD don't have | |||
20 | # - CDIOCREADAUDIO ioctl, which only Dragonfly has | |||
21 | NOT_FOR_PLATFORM+= NetBSD-*-* FreeBSD-*-* OpenBSD-*-* | |||
22 | ONLY_FOR_COMPILER= gcc clang | |||
17 | 23 | |||
18 | GNU_CONFIGURE= yes | 24 | GNU_CONFIGURE= yes | |
19 | USE_LIBTOOL= yes | 25 | USE_LIBTOOL= yes | |
20 | 26 | |||
21 | DOC_FILES= AUTHORS ChangeLog COPYING NEWS README | 27 | DOC_FILES= AUTHORS ChangeLog COPYING NEWS README | |
22 | PKGDOCDIR= ${PREFIX}/share/doc/${PKGBASE} | 28 | PKGDOCDIR= ${PREFIX}/share/doc/${PKGBASE} | |
23 | 29 | |||
24 | INSTALLATION_DIRS= ${PKGDOCDIR} | 30 | INSTALLATION_DIRS= ${PKGDOCDIR} | |
25 | 31 | |||
26 | post-install: | 32 | post-install: | |
27 | .for i in ${DOC_FILES} | 33 | .for i in ${DOC_FILES} | |
28 | ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PKGDOCDIR} | 34 | ${INSTALL_DATA} ${WRKSRC}/${i} ${DESTDIR}${PKGDOCDIR} | |
29 | .endfor | 35 | .endfor |
@@ -1,7 +1,7 @@ | @@ -1,7 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.1.1.1 2011/03/06 16:46:04 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.2 2011/09/04 23:10:30 dholland Exp $ | |
2 | 2 | |||
3 | SHA1 (xmms-cdread-0.14a.tar.gz) = b0408433618f1f237cd2a42999a2a67642d4a778 | 3 | SHA1 (xmms-cdread-0.14a.tar.gz) = b0408433618f1f237cd2a42999a2a67642d4a778 | |
4 | RMD160 (xmms-cdread-0.14a.tar.gz) = bcea65cf1919071d8036d1219979376d6632ae09 | 4 | RMD160 (xmms-cdread-0.14a.tar.gz) = bcea65cf1919071d8036d1219979376d6632ae09 | |
5 | Size (xmms-cdread-0.14a.tar.gz) = 153811 bytes | 5 | Size (xmms-cdread-0.14a.tar.gz) = 153811 bytes | |
6 | SHA1 (patch-aa) = 623e9df7f7eb4aef6c5b2ef7445575081067a199 | 6 | SHA1 (patch-aa) = 623e9df7f7eb4aef6c5b2ef7445575081067a199 | |
7 | SHA1 (patch-ab) = 70a1c4f7565a55fdbc7154481cd6fb03cb68b864 | 7 | SHA1 (patch-ab) = a5b9b4e670f6d40f0ddd97dff74a033069584cb7 |
@@ -1,17 +1,29 @@ | @@ -1,17 +1,29 @@ | |||
1 | $NetBSD: patch-ab,v 1.1.1.1 2011/03/06 16:46:04 wiz Exp $ | 1 | $NetBSD: patch-ab,v 1.2 2011/09/04 23:10:30 dholland Exp $ | |
2 | 2 | |||
3 | --- cdread.c.orig 2001-08-18 14:29:43.000000000 +0300 | 3 | - support more OSes | |
4 | - avoid gross linker abuse | |||
5 | ||||
6 | --- cdread.c.orig 2001-08-18 11:29:43.000000000 +0000 | |||
4 | +++ cdread.c | 7 | +++ cdread.c | |
8 | @@ -57,7 +57,7 @@ struct cd_cfg cd_cfg; | |||
9 | #endif | |||
10 | ||||
11 | /*\ Neat.. Three OSes with three different ways of talking to CDROM drives.. \*/ | |||
12 | -#if defined(HAVE_SYS_CDIO_H) && (defined(__FreeBSD__) || defined(__OpenBSD__)) | |||
13 | +#if defined(HAVE_SYS_CDIO_H) && (defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)) | |||
14 | #include "cdrombsd.h" | |||
15 | #elif defined(__SOLARIS__) || defined(__Solaris__) || defined(__solaris__) || defined(__sun__) || defined(sun) | |||
16 | #include "cdromsolaris.h" | |||
5 | @@ -377,7 +377,7 @@ init_thread(gchar *device) | 17 | @@ -377,7 +377,7 @@ init_thread(gchar *device) | |
6 | } | 18 | } | |
7 | 19 | |||
8 | void | 20 | void | |
9 | -_fini(void) | 21 | -_fini(void) | |
10 | +cd_finish(void) | 22 | +cd_finish(void) | |
11 | { | 23 | { | |
12 | CD_LOCK(); | 24 | CD_LOCK(); | |
13 | while (cd_list) | 25 | while (cd_list) | |
14 | @@ -388,6 +388,9 @@ _fini(void) | 26 | @@ -388,6 +388,9 @@ _fini(void) | |
15 | xmms_usleep(10000); | 27 | xmms_usleep(10000); | |
16 | } | 28 | } | |
17 | 29 |