blob: 3492f7dc822b2b82534fe8efad0e96554c972e1b (
plain)
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
78
79
80
81
82
83
84
85
86
|
# Created by: Yoichi Asai <yatt@luna2.org>
# $FreeBSD$
PORTNAME= timidity++
PORTVERSION= 2.14.0
PORTREVISION?= 2
CATEGORIES+= audio
MASTER_SITES= SF/timidity/TiMidity%2B%2B/TiMidity%2B%2B-${PORTVERSION}
DISTNAME= TiMidity++-${PORTVERSION}
MAINTAINER?= ports@FreeBSD.org
COMMENT?= Software MIDI player
LICENSE= GPLv2+
.if !defined(PKGNAMESUFFIX)
LIB_DEPENDS= libarc.so:${PORTSDIR}/archivers/libarc \
libvorbis.so:${PORTSDIR}/audio/libvorbis
RUN_DEPENDS= eawpats>0:${PORTSDIR}/audio/eawpats
.endif
USES= gmake tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ENV+= SHLD="${CC} -shared"
CPPFLAGS+= -I${LOCALBASE}/include/libarc -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -Wl,--export-dynamic
PLIST_SUB+= TIMID_LIBDIR="${TIMID_LIBDIR}" EUCJP_LOCALE="${EUCJP_LOCALE}"
.if !defined(PKGNAMESUFFIX)
OPTIONS_DEFINE= DOCS EAWPLUS ESOUND X11
OPTIONS_DEFAULT= X11
EAWPLUS_DESC= Collection of Gravis Ultrasound MIDI patches
EAWPLUS_RUN_DEPENDS= eawplus>0:${PORTSDIR}/audio/eawplus
ESOUND_USE= gnome=esound
ESOUND_CONFIGURE_ON= --enable-audio=oss,esd,vorbis
ESOUND_CONFIGURE_OFF= --enable-audio=oss,vorbis
X11_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png
X11_USE= xorg=x11,xext
X11_CONFIGURE_ON= --with-x --enable-spectrogram --enable-wrd \
--enable-dynamic
X11_CONFIGURE_OFF= --without-x --disable-spectrogram --disable-wrd \
--disable-dynamic
X11_CPPFLAGS= $$(libpng-config --I_opts)
.endif
TIMID_LIBDIR= lib/timidity
EUCJP_LOCALE= ja_JP.eucJP
.include <bsd.port.options.mk>
.if defined(PKGNAMESUFFIX)
.include "Makefile.interface"
.else
USES+= ncurses
CONFIGURE_ARGS+=--enable-interface=ncurses,vt100,server \
--enable-network
CONFLICTS_INSTALL= timidity-[0-9]*
DOCFILES= README.alsaseq README.dl README.m2m README.mts README.sf
pre-patch:
@${RM} -f ${WRKSRC}/libarc/*.h
@${RM} -f ${WRKSRC}/utils/mblock.h
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${TIMID_LIBDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/timidity
post-install::
(cd ${WRKSRC}/doc/ja_JP.eucJP && ${INSTALL_MAN} timidity.1 \
${STAGEDIR}${MANPREFIX}/man/ja/man1)
(cd ${WRKSRC}/doc/ja_JP.eucJP && ${INSTALL_MAN} timidity.cfg.5 \
${STAGEDIR}${MANPREFIX}/man/ja/man5)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc/C && ${INSTALL_DATA} ${DOCFILES} \
${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME}
(cd ${WRKSRC}/doc/ja_JP.eucJP && ${INSTALL_DATA} ${DOCFILES} \
${STAGEDIR}${PREFIX}/share/doc/ja/${PORTNAME})
.endif # PKGNAMESUFFIX
.include <bsd.port.mk>
|