diff options
author | pav <pav@FreeBSD.org> | 2005-07-15 16:39:33 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-07-15 16:39:33 +0000 |
commit | 8fe93a88ba644b566a66955577ce904b66b552ec (patch) | |
tree | 0df38706c473f885a8ddbe9f9da33beb812c45b3 /audio/xmms-sapplug | |
parent | 6c64a01fb52e99a9c3c6e3833fc02f8a1f8eb96a (diff) | |
download | FreeBSD-ports-8fe93a88ba644b566a66955577ce904b66b552ec.zip FreeBSD-ports-8fe93a88ba644b566a66955577ce904b66b552ec.tar.gz |
Sapplug is a XMMS input plugin for playing 8bit Atari(TM) .sap (Slight Atari
Player) audio files.
PR: ports/83466
Submitted by: Emanuel Haupt <ehaupt@critical.ch>
Diffstat (limited to 'audio/xmms-sapplug')
-rw-r--r-- | audio/xmms-sapplug/Makefile | 57 | ||||
-rw-r--r-- | audio/xmms-sapplug/distinfo | 2 | ||||
-rw-r--r-- | audio/xmms-sapplug/files/patch-Makefile | 47 | ||||
-rw-r--r-- | audio/xmms-sapplug/pkg-descr | 7 | ||||
-rw-r--r-- | audio/xmms-sapplug/pkg-message | 3 |
5 files changed, 116 insertions, 0 deletions
diff --git a/audio/xmms-sapplug/Makefile b/audio/xmms-sapplug/Makefile new file mode 100644 index 0000000..4c84a49 --- /dev/null +++ b/audio/xmms-sapplug/Makefile @@ -0,0 +1,57 @@ +# New ports collection makefile for: xmms-sapplug +# Date created: 14 Jul 2005 +# Whom: Emanuel Haupt <ehaupt@critical.ch> +# +# $FreeBSD$ +# + +PORTNAME= xmms-sapplug +DISTVERSION= 0.3f +CATEGORIES= audio +MASTER_SITES= http://critical.ch/distfiles/ \ + ftp://ftp.atari.art.pl/stuff/audio/8bit-music-archive/sap/plugins/xmms/ +DISTNAME= sapplug-xmms-${DISTVERSION} + +MAINTAINER= ehaupt@critical.ch +COMMENT= XMMS input plugin for playing 8bit Atari(TM) .sap audio files + +BUILD_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_X_PREFIX= yes +USE_REINPLACE= yes +USE_GMAKE= yes +USE_GNOME= glib12 + +CXXFLAGS+= --no-exceptions +WRKSRC= ${WRKDIR}/sapplug-${DISTVERSION} + +PLIST_FILES= lib/xmms/Input/libsap.so + +OPTIONS= OPTIMIZED_CXXLAGS "use optimized C++ flags" on \ + OPTIMIZED_CFLAGS "use optimized C flags" on + +.include <bsd.port.pre.mk> + +.if defined(WITH_OPTIMIZED_CXXLAGS) +CXXFLAGS+= -fPIC -fpic -funroll-all-loops -fno-strength-reduce \ + -finline-functions -fomit-frame-pointer +.endif +.if defined(WITH_OPTIMIZED_CFLAGS) +CFLAGS+= -fPIC -fpic -funroll-all-loops -fomit-frame-pointer \ + -fno-strength-reduce +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|^\(}\);\(\ //.*\)|\1\2|' \ + ${WRKSRC}/saplib/pokeyNamespace.h + @${REINPLACE_CMD} -e 's|^\(C[[:alpha:]]*\)|\1?|' \ + ${WRKSRC}/saplib/Makefile + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libsap.so ${PREFIX}/lib/xmms/Input/libsap.so + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> diff --git a/audio/xmms-sapplug/distinfo b/audio/xmms-sapplug/distinfo new file mode 100644 index 0000000..f521211 --- /dev/null +++ b/audio/xmms-sapplug/distinfo @@ -0,0 +1,2 @@ +MD5 (sapplug-xmms-0.3f.tar.gz) = 8d2bf058ff231e83c3bee22b83481518 +SIZE (sapplug-xmms-0.3f.tar.gz) = 47508 diff --git a/audio/xmms-sapplug/files/patch-Makefile b/audio/xmms-sapplug/files/patch-Makefile new file mode 100644 index 0000000..86355f8 --- /dev/null +++ b/audio/xmms-sapplug/files/patch-Makefile @@ -0,0 +1,47 @@ +--- Makefile.orig Thu Jul 14 11:24:17 2005 ++++ Makefile Thu Jul 14 11:34:05 2005 +@@ -19,15 +19,18 @@ + # + ########################################################################## + +-CC = gcc ++CC?= gcc ++MAKE?= make + +-CFLAGS = -O2 -Wall -fPIC -fpic \ +- -finline-functions -ffast-math \ +- -funroll-all-loops -fomit-frame-pointer -fno-strength-reduce \ +- $(shell xmms-config --cflags) ++CFLAGS?= -O2 -Wall -fPIC -fpic \ ++ -finline-functions -ffast-math \ ++ -funroll-all-loops -fomit-frame-pointer -fno-strength-reduce + +-LINKER_FLAGS = -shared -Wl,-soname -Wl,$(TARGET) \ +- -Wl,-retain-symbols-file -Wl,syms ++CFLAGS+= $(shell xmms-config --cflags) ++ ++ ++LDFLAGS+= -shared -Wl,-soname -Wl,$(TARGET) \ ++ -Wl,-retain-symbols-file -Wl,syms + + TARGET = libsap.so + +@@ -43,15 +46,15 @@ + plugin: $(OBJS) + @./scripts/gen_symbols sap_plug.o + @echo +- $(CC) $(LINKER_FLAGS) $(OBJS) $(SAPLIB) -o $(TARGET) ++ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(SAPLIB) -o $(TARGET) + @echo + library: + @echo +- cd saplib && make ++ cd saplib && $(MAKE) + @echo + install: + cp $(TARGET) $(HOME)/.xmms/Plugins/Input + clean: + rm -f *.o *.so *.a .syms syms + realclean: clean +- cd saplib && make clean ++ cd saplib && $(MAKE) clean diff --git a/audio/xmms-sapplug/pkg-descr b/audio/xmms-sapplug/pkg-descr new file mode 100644 index 0000000..52670fe --- /dev/null +++ b/audio/xmms-sapplug/pkg-descr @@ -0,0 +1,7 @@ +Sapplug is a XMMS input plugin for playing 8bit Atari(TM) .sap (Slight Atari +Player) audio files. + +WWW: http://www.xmms.org/plugins.php?details=155 + +- ehaupt +ehaupt@critical.ch diff --git a/audio/xmms-sapplug/pkg-message b/audio/xmms-sapplug/pkg-message new file mode 100644 index 0000000..2b197e2 --- /dev/null +++ b/audio/xmms-sapplug/pkg-message @@ -0,0 +1,3 @@ +=============================================================================== +A huge .sap file collection can be found at: http://asma.atari.org/ +=============================================================================== |