blob: 66c1e38eb738b6b9d59d3540a1262d0d48fb1f86 (
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
78
79
80
81
82
83
84
|
# Created by: Yoichi Asai <yatt@luna2.org>
PORTNAME= timidity++
PORTVERSION= 2.15.0
CATEGORIES+= audio
MASTER_SITES= SF/timidity/TiMidity%2B%2B/TiMidity%2B%2B-${PORTVERSION}
DISTNAME= TiMidity++-${PORTVERSION}
MAINTAINER?= fuz@fuz.su
COMMENT?= Software MIDI player
LICENSE= GPLv2+
LIB_DEPENDS= libarc.so:archivers/libarc
.if !defined(PKGNAMESUFFIX)
LIB_DEPENDS+= libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg
RUN_DEPENDS= eawpats>0:audio/eawpats
.endif
USES= gmake localbase tar:bzip2
GNU_CONFIGURE= yes
CONFIGURE_ENV+= SHLD="${CC} -shared"
CPPFLAGS+= -I${LOCALBASE}/include/libarc
LDFLAGS+= -Wl,--export-dynamic
PLIST_SUB+= TIMID_LIBDIR="${TIMID_LIBDIR}" EUCJP_LOCALE="${EUCJP_LOCALE}"
.if !defined(PKGNAMESUFFIX)
OPTIONS_DEFINE= DOCS EAWPLUS X11
OPTIONS_DEFAULT= X11
CONFIGURE_ARGS+= --enable-audio=oss,vorbis
EAWPLUS_DESC= Collection of Gravis Ultrasound MIDI patches
EAWPLUS_RUN_DEPENDS= eawplus>0:audio/eawplus
X11_LIB_DEPENDS= libpng.so:graphics/png
X11_USES= xorg
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} ${WRKSRC}/libarc/*.h
@${RM} ${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})
@${RMDIR} ${STAGEDIR}${PREFIX}/share/timidity
.endif # PKGNAMESUFFIX
.include <bsd.port.mk>
|