aboutsummaryrefslogtreecommitdiffstats
path: root/audio/timidity++/Makefile
blob: 5cffd2c3c71de2c4cd11d7881201bf71720dd8af (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
67
68
69
70
71
72
73
74
75
76
77
# New ports collection makefile for:    TiMidity++
# Version required: 1.3.10
# Date created:     27 Feb 1999
# Whom:         Yoichi Asai <yatt@msc.biglobe.ne.jp>
#
# $FreeBSD$
#

DISTNAME=   TiMidity++-2.9.0
PKGNAME=    timidity++-2.9.0
CATEGORIES= audio
MASTER_SITES=   http://www.goice.co.jp/member/mo/timidity/dist/

MAINTAINER= yatt@msc.biglobe.ne.jp

# If you don't have X11, type "make -DNO_X11" or uncomment this.
#NO_X11=    yes

USE_BZIP2=  yes
GNU_CONFIGURE=  yes
.if !defined(NO_X11)
USE_XLIB=   yes
LIB_DEPENDS+=   png.3:${PORTSDIR}/graphics/png
.endif

DIST_SUBDIR=    timidity
INSTALL_TARGET= install install.man

.if !defined(NO_X11)
CONFIGURE_ARGS= --with-x --enable-ncurses --enable-vt100 \
        --enable-dynamic --enable-server \
        --enable-network --enable-spectrogram --enable-wrd
.else
CONFIGURE_ARGS= --enable-ncurses --enable-vt100 \
        --enable-network --disable-spectrogram --disable-wrd
.endif

.if defined(USE_ESOUND)
LIB_DEPENDS+=   esd.2:${PORTSDIR}/audio/esound
CONFIGURE_ARGS+=    --enable-audio=oss,esd
.else
CONFIGURE_ARGS+=    --enable-audio=oss
.endif

MAN1=       timidity.1
MAN5=       timidity.cfg.5

DOCFILES=   README.dl README.sf
DOCLANG=    C ja_JP.ujis

.include <bsd.port.pre.mk>

.if ${PORTOBJFORMAT} == "elf"
CONFIGURE_ENV=  LDFLAGS=-export-dynamic
.endif

post-install:
    @${MKDIR} ${PREFIX}/man/ja/man1 ${PREFIX}/man/ja/man1
    ${INSTALL_MAN} ${WRKSRC}/doc/ja_JP.ujis/timidity.1 \
    ${PREFIX}/man/ja/man1
    ${INSTALL_MAN} ${WRKSRC}/doc/ja_JP.ujis/timidity.cfg.5 \
    ${PREFIX}/man/ja/man5
.if !defined(NOPORTDOCS)
.for lang in ${DOCLANG}
    @${MKDIR} \
    ${PREFIX}/share/doc/timidity/`echo ${lang} | ${SED} 's/_JP.ujis//'`
    for f in ${DOCFILES}; do \
    ${INSTALL_DATA} ${WRKSRC}/doc/${lang}/$$f \
    ${PREFIX}/share/doc/timidity/`echo ${lang} | ${SED} 's/_JP.ujis//'`; \
    done;
.endfor
.endif
    ${SETENV} PKG_PREFIX=${PREFIX} \
    ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>