aboutsummaryrefslogtreecommitdiffstats
path: root/audio/uade/Makefile
blob: 726fc5096abb6f06125d8cb9aa9364c4adff8e56 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Created by: Martin Blapp <mbr@FreeBSD.org>
# $FreeBSD$

PORTNAME=   uade
PORTVERSION=    2.13
PORTREVISION=   2
CATEGORIES= audio
MASTER_SITES=   http://zakalwe.fi/uade/uade2/ \
        LOCAL/ehaupt

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    Unix Amiga Delitracker Emulator

LICENSE=    GPLv2

LIB_DEPENDS=    libao.so:audio/libao

USES=       gmake pkgconfig tar:bzip2
HAS_CONFIGURE=  yes

DOCSDIR=    ${PREFIX}/share/doc/uade2
DATADIR=    ${PREFIX}/share/uade2

CONFIGURE_ARGS= --prefix=${PREFIX} \
        --mandir=${MANPREFIX}/man/man1 \
        --no-debug --without-audacious \
        --package-prefix=${STAGEDIR}

CONFIGURE_ENV=  SYSCFLAGS='${CFLAGS}'

PORTDOCS=   BUGS PLANS REDUNDANT_REPLAYERS UAE-CREDITS UAE-README \
        VERSION_CONTROL_TAGGING audio_emulation.txt design.tex \
        download.html faq.html layers.eps layers.xfig \
        play_loop_state_diagram.dia play_loop_state_diagram.eps \
        play_loop_state_diagram.txt uade.html

OPTIONS_DEFINE= TEXTSCOPE FUSE XMMS DOCS
OPTIONS_SUB=    yes

TEXTSCOPE_DESC= Audio register debug mode
XMMS_DESC=  XMMS plugin

TEXTSCOPE_CONFIGURE_WITH=   text-scope

FUSE_USES=      fuse
FUSE_CONFIGURE_WITH=    uadefs

XMMS_LIB_DEPENDS=   libxmms.so:multimedia/xmms
XMMS_CONFIGURE_WITH=    xmms

post-extract:
    @${RM} -r ${WRKSRC}/players/S

post-patch:
    @${REINPLACE_CMD} -e 's,lib/pkgconfig,libdata/pkgconfig,' \
        ${WRKSRC}/configure

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/uade123 \
        ${STAGEDIR}${PREFIX}/lib/uade2/uadecore

.include <bsd.port.mk>