summaryrefslogtreecommitdiff
path: root/media-sound/fmdrv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/fmdrv
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/fmdrv')
-rw-r--r--media-sound/fmdrv/Manifest6
-rw-r--r--media-sound/fmdrv/files/fmdrv-1.0.7-ioperm.patch20
-rw-r--r--media-sound/fmdrv/fmdrv-1.0.7.ebuild37
-rw-r--r--media-sound/fmdrv/metadata.xml8
4 files changed, 71 insertions, 0 deletions
diff --git a/media-sound/fmdrv/Manifest b/media-sound/fmdrv/Manifest
new file mode 100644
index 000000000000..95cf3b778ab6
--- /dev/null
+++ b/media-sound/fmdrv/Manifest
@@ -0,0 +1,6 @@
+AUX fmdrv-1.0.7-ioperm.patch 434 SHA256 e0b94d1e5ad3ec6b4686e779bc5ee5dbd2c32e85604cb3d6ac560438ace188e7 SHA512 c092de86d3d2ec1dd403304b918b96196d4ceeb1856a1e2c21c1af5a5b71ab3cfa2a9e461de007296a74206cebc25c0f9633425b921f58d645a024bbbc2755b4 WHIRLPOOL ded13f1869c47478ec4bc775ae829a65e2eef8204229a06dd418c5e3f9b652783b685095aa6276007dbcdc30945323ad6293198c22c474078d239a6ea32b7d2c
+DIST fmdrv-1.0.7.tar.bz2 61373 SHA256 85bbb651a531e86b7aa07fa9efcb2c62344484cb3999b36539af6002188cbaa1 SHA512 d5533aee5c4c4e6a08dd2ede07c2f657edf93cf89bdb43d3453badd8dde68ec39a94820f91098192202490d59e2abda49af03737db39d2bfdd6b009a65824f1d WHIRLPOOL 8486f8ba5f61c441cae76531bb3e16962b934e0db495db3e6afc8228d38336201f1f2f5ce712a0d29363a4e77373c619b49c9f3bf26104a97d8350e5f27e9477
+EBUILD fmdrv-1.0.7.ebuild 830 SHA256 9c5ad3d6cfb0ed4b0f3f2da9dd73ba9440eddc4ac42c358fdef84ea69bd83fce SHA512 816af165e3b80fd6211ba3198f9d4284f64b6f384d49f846c8e38552403bdb551378e73c37d3b3e3526acb66be4ebc2331e4005cdc4b47dddeb1a347622cba22 WHIRLPOOL 9b73a31a15349f5d5bd09eddb45be39e9bf86aa19534158d9e1596f8ea28152e8525aa2bb75a3956d98d7e6cac6b7f345fc8ae21d308096b88c886ab158ea241
+MISC ChangeLog 2457 SHA256 9033479ef008241795687fb07e94167fe7c373f63d6354e169093f457a9c856c SHA512 2ec33acee6b628b6f6d03048e8fb4b5381c83b2c7d479c707d02f63955a7b02991f86def03b7fcf91af26376284016577c11c6f0a9c5fca10bc5d54615d9f868 WHIRLPOOL 8d9e9e4a9d4cb0c22b526e8d9983f689983c88ac2065273770a8e73af8ceb047c9bb7d8f2113c38acace106e0a9035e06cf49384e9695d0cfee38010d28d7390
+MISC ChangeLog-2015 1455 SHA256 6c4b46a148734e07ce184770cdb93c50d342dcbba725affe0ce3a74cb9ee0076 SHA512 610681c3178150c7c0b529141c493af03553844ca8b94712d81545cbb098b24f6d1d24b4b95e39d4184c0f97d6b3718d3ad346b2271723a470ff92a0863037b3 WHIRLPOOL c58bcb9a573e3c32e629446b7889819a75b31dadceff32be9ca7dc1612d5e6c337c29ebd415f2552df81101f70be96ccea3b33c713cdfac0b07f63be078e7713
+MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723
diff --git a/media-sound/fmdrv/files/fmdrv-1.0.7-ioperm.patch b/media-sound/fmdrv/files/fmdrv-1.0.7-ioperm.patch
new file mode 100644
index 000000000000..ef719a4ac546
--- /dev/null
+++ b/media-sound/fmdrv/files/fmdrv-1.0.7-ioperm.patch
@@ -0,0 +1,20 @@
+--- a/sysdeps.c
++++ b/sysdeps.c
+@@ -1,17 +1,7 @@
+ #include "sysdeps.h"
+
+ #ifdef linux
+-/* A real real big bad hack. *
+- * Never try this at home! */
+-# define extern static
+-# if 0 /* This is required on older Linux versions, not anymore */
+-# include <asm/io.h>
+-# undef extern
+ # include <sys/io.h>
+-# else
+-# include <sys/io.h>
+-# undef extern
+-# endif
+ # define inportb(x) inb(x)
+ # define outportb(p,x) outb(x,p)
+ #endif
diff --git a/media-sound/fmdrv/fmdrv-1.0.7.ebuild b/media-sound/fmdrv/fmdrv-1.0.7.ebuild
new file mode 100644
index 000000000000..afdccff9b4c9
--- /dev/null
+++ b/media-sound/fmdrv/fmdrv-1.0.7.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Console mode MIDI player with builtin userland OPL2 driver"
+HOMEPAGE="http://bisqwit.iki.fi/source/fmdrv.html"
+SRC_URI="http://bisqwit.iki.fi/src/arch/${P}.tar.bz2"
+
+LICENSE="fmdrv GPL-2" # GPL-2 only
+SLOT="0"
+KEYWORDS="x86 amd64"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ioperm.patch
+}
+
+src_configure() { :; } # it is a fake
+
+src_compile() {
+ emake fmdrv \
+ CC="$(tc-getCC)" CXX="$(tc-getCXX)" \
+ CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin fmdrv
+ dodoc README
+ dohtml README.html
+}
+
+pkg_postinst() {
+ elog "If you want to use AdLib (FM OPL2), you need to setuid /usr/bin/fmdv."
+ elog "chmod 4711 /usr/bin/fmdrv"
+}
diff --git a/media-sound/fmdrv/metadata.xml b/media-sound/fmdrv/metadata.xml
new file mode 100644
index 000000000000..c870d0eef0ab
--- /dev/null
+++ b/media-sound/fmdrv/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+</maintainer>
+</pkgmetadata>