Skip to content
Permalink
Browse files

audio/uade2: New port, closes https://trac.macports.org/ticket/15684.…

… Thanks to mlund@mac.com.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@37880 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Simon Ruderich
Simon Ruderich committed Jun 27, 2008
1 parent 6203b93 commit 939f4e4ce67a3315289b0d692eb4272407af412e
Showing with 113 additions and 0 deletions.
  1. +30 −0 audio/uade2/Portfile
  2. +83 −0 audio/uade2/files/patch-Makefile.in.diff
@@ -0,0 +1,30 @@
# $Id$

PortSystem 1.0

name uade2
version 2.09
categories audio
maintainers mac.com:mlund
description Unix Amiga Delitracker Emulator
long_description UADE plays old amiga music formats by emulating Amiga hardware.\
It re-uses Amiga Eagleplayer plugins to play different formats.\
Eagleplayer plugins require an implementation of the Eagleplayer API and AmigaOS APIs to run on.\
Therefore Eagleplayer API and parts of AmigaOS have been implemented in uade.
homepage http://zakalwe.fi/uade
platforms darwin
distname uade-${version}
# extract.suffix .tar.bz2
# extract.cmd bzip2
use_bzip2 yes
master_sites http://zakalwe.fi/uade/uade2/
patchfiles patch-Makefile.in.diff

checksums md5 8f49cd3e99e91d58ace7bffde878f6fc \
sha1 ca68a42258442a4861e57fa88c082b09fc263cbb \
rmd160 231a6fbea46d4f84c09166c24f09c1b4c9c7f033

depends_lib port:libao \
port:pkgconfig

configure.args --without-xmms --without-audacious
@@ -0,0 +1,83 @@
--- Makefile.in.orig 2008-06-19 22:39:08.000000000 +0200
+++ Makefile.in 2008-06-19 22:53:47.000000000 +0200
@@ -34,40 +34,40 @@
$(MAKE) -C src

uadecoreinstall: $(UADECORE)
- mkdir -p "$(LIBDIR)" "$(PKGCONFIGDIR)"
- chmod og+rx "$(LIBDIR)"
- cp -f src/$(UADECORENAME) "$(LIBDIR)"/
- chmod og+rx "$(LIBDIR)/$(UADECORENAME)"
- install uade.pc $(PKGCONFIGDIR)/
- chmod og+rx $(PKGCONFIGDIR)
- chmod 644 $(PKGCONFIGDIR)/uade.pc
+ mkdir -p "$(DESTDIR)$(LIBDIR)" "$(DESTDIR)$(PKGCONFIGDIR)"
+ chmod og+rx "$(DESTDIR)$(LIBDIR)"
+ cp -f src/$(UADECORENAME) "$(DESTDIR)$(LIBDIR)"/
+ chmod og+rx "$(DESTDIR)$(LIBDIR)/$(UADECORENAME)"
+ install uade.pc $(DESTDIR)$(PKGCONFIGDIR)/
+ chmod og+rx $(DESTDIR)$(PKGCONFIGDIR)
+ chmod 644 $(DESTDIR)$(PKGCONFIGDIR)/uade.pc

uade123:
$(MAKE) -C src/frontends/uade123

uade123install: $(UADE123)
- mkdir -p "$(BINDIR)" "$(MANDIR)"
- rm -f "$(BINDIR)/$(UADE123NAME)" || true
- cp -f src/frontends/uade123/$(UADE123NAME) "$(BINDIR)/" || true
- chmod og+rx "$(BINDIR)/$(UADE123NAME)"
- cp doc/uade123.1 "$(MANDIR)"/
- chmod og+r "$(MANDIR)"/uade123.1
+ mkdir -p "$(DESTDIR)$(BINDIR)" "$(DESTDIR)$(MANDIR)"
+ rm -f "$(DESTDIR)$(BINDIR)/$(UADE123NAME)" || true
+ cp -f src/frontends/uade123/$(UADE123NAME) "$(DESTDIR)$(BINDIR)/" || true
+ chmod og+rx "$(DESTDIR)$(BINDIR)/$(UADE123NAME)"
+ cp doc/uade123.1 "$(DESTDIR)$(MANDIR)"/
+ chmod og+r "$(DESTDIR)$(MANDIR)"/uade123.1

xmmsplugin:
$(MAKE) -C src/frontends/xmms

xmmsplugininstall: $(XMMSPLUGIN)
- mkdir -p "$(XMMSPLUGINDIR)" "$(BINDIR)"
- install src/frontends/xmms/libuade2.so "$(XMMSPLUGINDIR)"
- install contrib/uadexmmsadd "$(BINDIR)"/
+ mkdir -p "$(DESTDIR)$(XMMSPLUGINDIR)" "$(DESTDIR)$(BINDIR)"
+ install src/frontends/xmms/libuade2.so "$(DESTDIR)$(XMMSPLUGINDIR)"
+ install contrib/uadexmmsadd "$(DESTDIR)$(BINDIR)"/

audaciousplugin:
$(MAKE) -C src/frontends/audacious

audaciousplugininstall: $(AUDACIOUSPLUGIN)
- mkdir -p "$(AUDACIOUSPLUGINDIR)" "$(BINDIR)"
- install src/frontends/audacious/libuade2.so "$(AUDACIOUSPLUGINDIR)"
- install contrib/uadexmmsadd "$(BINDIR)"/
+ mkdir -p "$(DESTDIR)$(AUDACIOUSPLUGINDIR)" "$(DESTDIR)$(BINDIR)"
+ install src/frontends/audacious/libuade2.so "$(DESTDIR)$(AUDACIOUSPLUGINDIR)"
+ install contrib/uadexmmsadd "$(DESTDIR)$(BINDIR)"/

src/include/uadeconfig.h:
@echo ""
@@ -82,14 +82,14 @@
src/frontends/uade123/$(UADE123NAME) --basedir=. -S amigasrc/score/score -P players/AbyssHighestExperience -m songs/AHX.Cruisin -u src/uadecore

install:
- mkdir -p "$(DATADIR)/players"
- test -e "$(DATADIR)/uade.conf" || cp -f uade.conf "$(DATADIR)/"
- cp -f amigasrc/score/score uaerc eagleplayer.conf "$(DATADIR)/"
- cp -rf players "$(DATADIR)/" || true
- chmod -R og+rX "$(DATADIR)"
+ mkdir -p "$(DESTDIR)$(DATADIR)/players"
+ test -e "$(DESTDIR)$(DATADIR)/uade.conf" || cp -f uade.conf "$(DESTDIR)$(DATADIR)/"
+ cp -f amigasrc/score/score uaerc eagleplayer.conf "$(DESTDIR)$(DATADIR)/"
+ cp -rf players "$(DESTDIR)$(DATADIR)/" || true
+ chmod -R og+rX "$(DESTDIR)$(DATADIR)"
$(MAKE) installagain
$(MAKE) feinstall
- install src/frontends/mod2ogg/mod2ogg2.sh "$(BINDIR)/"
+ install src/frontends/mod2ogg/mod2ogg2.sh "$(DESTDIR)$(BINDIR)/"

installagain: $(UADECOREINSTALL)
@true

0 comments on commit 939f4e4

Please sign in to comment.
You can’t perform that action at this time.