diff options
author | jkim <jkim@FreeBSD.org> | 2009-02-17 04:42:54 +0800 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-02-17 04:42:54 +0800 |
commit | 0ef35c9401b7586e552a35883445a3dad24095dc (patch) | |
tree | db049c5f84aef2d3da8e6770b1835951f0b69529 /audio | |
parent | 2b0beb0b0d43ab5f3ad17ac1e71193b1ad2b6793 (diff) | |
download | freebsd-ports-gnome-0ef35c9401b7586e552a35883445a3dad24095dc.tar.gz freebsd-ports-gnome-0ef35c9401b7586e552a35883445a3dad24095dc.tar.zst freebsd-ports-gnome-0ef35c9401b7586e552a35883445a3dad24095dc.zip |
- Fix build on -CURRENT.
- Fix a typo in soundoff and remove a redundant patch[1].
- Install pre-compressed manual pages properly[2].
Reported by: Jeroen Ruigrok van der Werven (asmodai at in-nomine dot org)[1]
PR: ports/131420[2]
Diffstat (limited to 'audio')
-rw-r--r-- | audio/oss/Makefile | 31 | ||||
-rw-r--r-- | audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c | 86 | ||||
-rw-r--r-- | audio/oss/files/patch-setup-FreeBSD-sbin-soundoff | 2 |
3 files changed, 100 insertions, 19 deletions
diff --git a/audio/oss/Makefile b/audio/oss/Makefile index 65d959437044..d9abd1e41f9f 100644 --- a/audio/oss/Makefile +++ b/audio/oss/Makefile @@ -7,6 +7,7 @@ PORTNAME= oss DISTVERSION= 4.1-build1051 +PORTREVISION= 1 CATEGORIES= audio kld MASTER_SITES= http://www.opensound.com/developer/sources/stable/bsd/ DISTNAME= ${PORTNAME}-v${DISTVERSION}-src-bsd @@ -24,21 +25,19 @@ WRKSRC= ${WRKDIR}/build PATCH_WRKSRC= ${WRKDIR}/${DISTNAME} SUB_FILES= pkg-install pkg-deinstall ONLY_FOR_ARCHS= amd64 i386 +MANCOMPRESSED= yes -MAN1= ossinfo.1.gz ossmix.1.gz osspartysh.1.gz ossplay.1.gz \ - ossrecord.1.gz osstest.1.gz ossxmix.1.gz soundoff.1.gz \ - soundon.1.gz -MAN7= oss_ali5455.7.gz oss_atiaudio.7.gz oss_audigyls.7.gz \ - oss_audioloop.7.gz oss_audiopci.7.gz oss_cmi878x.7.gz \ - oss_cmpci.7.gz oss_cs4281.7.gz oss_cs461x.7.gz \ - oss_digi96.7.gz oss_emu10k1x.7.gz oss_envy24.7.gz \ - oss_envy24ht.7.gz oss_fmedia.7.gz oss_geode.7.gz \ - oss_hdaudio.7.gz oss_ich.7.gz oss_imux.7.gz \ - oss_midiloop.7.gz oss_midimix.7.gz oss_sblive.7.gz \ - oss_sbpci.7.gz oss_sbxfi.7.gz oss_solo.7.gz \ - oss_trident.7.gz oss_via823x.7.gz oss_via97.7.gz \ - oss_ymf7xx.7.gz osscore.7.gz -MAN8= ossdetect.8.gz ossdevlinks.8.gz savemixer.8.gz vmixctl.8.gz +MAN1= ossinfo.1 ossmix.1 osspartysh.1 ossplay.1 ossrecord.1 \ + osstest.1 ossxmix.1 soundoff.1 soundon.1 +MAN7= oss_ali5455.7 oss_atiaudio.7 oss_audigyls.7 oss_audioloop.7 \ + oss_audiopci.7 oss_cmi878x.7 oss_cmpci.7 oss_cs4281.7 \ + oss_cs461x.7 oss_digi96.7 oss_emu10k1x.7 oss_envy24.7 \ + oss_envy24ht.7 oss_fmedia.7 oss_geode.7 oss_hdaudio.7 \ + oss_ich.7 oss_imux.7 oss_midiloop.7 oss_midimix.7 \ + oss_sblive.7 oss_sbpci.7 oss_sbxfi.7 oss_solo.7 \ + oss_trident.7 oss_via823x.7 oss_via97.7 oss_ymf7xx.7 \ + osscore.7 +MAN8= ossdetect.8 ossdevlinks.8 savemixer.8 vmixctl.8 CONF_FILES= oss_audigyls oss_audioloop oss_cs461x oss_emu10k1x \ oss_envy24 oss_envy24ht oss_fmedia oss_hdaudio oss_ich \ @@ -59,10 +58,6 @@ IGNORE= requires kernel source to be installed .include <bsd.port.pre.mk> pre-patch: - ${REINPLACE_CMD} -e 's|"/usr/include/stdarg.h"|<machine/stdarg.h>|g' \ - -e "s|<i386/include/intr_machdep.h>|<machine/intr_machdep.h>|g" \ - ${WRKDIR}/${DISTNAME}/setup/FreeBSD/oss/build/module.inc \ - ${WRKDIR}/${DISTNAME}/setup/FreeBSD/oss/build/osscore.c ${FIND} ${WRKDIR}/${DISTNAME} -type f \ -name configure -or -name '*.[ch]' -or -name '*.man' | \ ${XARGS} ${REINPLACE_CMD} -e 's|/usr/|${PREFIX}/|g' \ diff --git a/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c new file mode 100644 index 000000000000..9eced854b58b --- /dev/null +++ b/audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c @@ -0,0 +1,86 @@ +--- kernel/OS/FreeBSD/os_freebsd.c.orig 2009-01-04 00:05:36.000000000 -0500 ++++ kernel/OS/FreeBSD/os_freebsd.c 2009-02-16 15:07:32.000000000 -0500 +@@ -652,7 +652,11 @@ + oss_cdev_t *cdev; + #ifndef VDEV_SUPPORT + struct fileinfo _fi, * fi = &_fi; ++#if __FreeBSD_version >= 800062 ++ dev = minor (dev2unit (bsd_dev)); ++#else + dev = minor (bsd_dev); ++#endif + init_fileinfo (fi, flags); + #else + struct fileinfo * fi; +@@ -686,7 +690,11 @@ + oss_cdev_t *cdev; + #ifndef VDEV_SUPPORT + struct fileinfo _fi, * fi = &_fi; ++#if __FreeBSD_version >= 800062 ++ dev = minor (dev2unit (bsd_dev)); ++#else + dev = minor (bsd_dev); ++#endif + init_fileinfo (fi, flags); + #else + struct fileinfo * fi; +@@ -714,7 +722,11 @@ + static int + oss_open (struct cdev *bsd_dev, int flags, int mode, struct thread *p) + { ++#if __FreeBSD_version >= 800062 ++ int dev = minor (dev2unit (bsd_dev)); ++#else + int dev = minor (bsd_dev); ++#endif + oss_cdev_t *cdev; + struct fileinfo fi; + int tmpdev, retval; +@@ -759,7 +771,11 @@ + oss_cdev_t *cdev; + #ifndef VDEV_SUPPORT + struct fileinfo _fi, * fi = &_fi; ++#if __FreeBSD_version >= 800062 ++ dev = minor (dev2unit (bsd_dev)); ++#else + dev = minor (bsd_dev); ++#endif + init_fileinfo (fi, flags); + #else + struct fileinfo * fi; +@@ -792,7 +808,11 @@ + oss_cdev_t *cdev; + #ifndef VDEV_SUPPORT + struct fileinfo _fi, * fi = &_fi; ++#if __FreeBSD_version >= 800062 ++ dev = minor (dev2unit (bsd_dev)); ++#else + dev = minor (bsd_dev); ++#endif + init_fileinfo (fi, mode); + #else + struct fileinfo * fi; +@@ -827,7 +847,11 @@ + int err; + #ifndef VDEV_SUPPORT + struct fileinfo _fi, * fi = &_fi; ++#if __FreeBSD_version >= 800062 ++ dev = minor (dev2unit (bsd_dev)); ++#else + dev = minor (bsd_dev); ++#endif + init_fileinfo (fi, 0); + #else + struct fileinfo * fi; +@@ -870,7 +894,11 @@ + dmap_p dmap = NULL; + int err; + #ifndef VDEV_SUPPORT ++#if __FreeBSD_version >= 800062 ++ dev = minor (dev2unit (bsd_dev)); ++#else + dev = minor (bsd_dev); ++#endif + #else + struct fileinfo * fi; + if (oss_file_get_private ((void **)&fi)) return ENXIO; diff --git a/audio/oss/files/patch-setup-FreeBSD-sbin-soundoff b/audio/oss/files/patch-setup-FreeBSD-sbin-soundoff index 14369cd647f3..b796d451d149 100644 --- a/audio/oss/files/patch-setup-FreeBSD-sbin-soundoff +++ b/audio/oss/files/patch-setup-FreeBSD-sbin-soundoff @@ -10,7 +10,7 @@ + . %%PREFIX%%/etc/oss.conf else - OSSLIBDIR=/usr/lib/oss -+ OSSLIBDIR=%%PREFIX%%/usr/lib/oss ++ OSSLIBDIR=%%PREFIX%%/lib/oss fi if ! /sbin/kldstat | grep -q osscore.ko |