blob: bb679baa342687598670280bf9000034825baf40 (
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
# New ports collection makefile for: TiMidity++
# Date created: 27 Feb 1999
# Whom: Yoichi Asai <yatt@luna2.org>
#
# $FreeBSD$
#
PORTNAME= timidity++
PORTVERSION= 2.11.3
PORTREVISION= 1
CATEGORIES+= audio
MASTER_SITES= http://www.timidity.jp/dist/
PKGNAMESUFFIX= -${INTERFACE}
DISTNAME= TiMidity++-${PORTVERSION}
MAINTAINER?= yatt@luna2.org
COMMENT?= Emacs interface for TiMidity++
RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++
LIB_DEPENDS= ${INTERFACE_DEPS}
BROKEN= Incomplete distinfo file
DEPRECATED= "${BROKEN}"
EXPIRATION_DATE=2005-09-22
SLAVEDIRS= audio/timidity++-gtk audio/timidity++-motif \
audio/timidity++-slang audio/timidity++-tcltk \
audio/timidity++-xaw audio/timidity++-xskin \
japanese/timidity++-slang japanese/timidity++-tcltk
INTERFACE?= emacs
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
.if !${INTERFACE} == "emacs" && !${INTERFACE} == "slang"
USE_XLIB= yes
.endif
CONFIGURE_ARGS= --enable-dynamic=${INTERFACE}
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PKGDIR= ${.CURDIR}
PLIST_SUB= TIMID_LIBDIR=${TIMID_LIBDIR}
DIST_SUBDIR= timidity
TIMID_LIBDIR= ${PREFIX}/lib/timidity
.if ${INTERFACE} == "emacs"
ELISPDIR= ${PREFIX}/share/emacs/site-lisp
.elif ${INTERFACE} == "gtk"
LINK= gtkmidi
USE_GNOME= gtk12
CONFIGURE_ENV= SHLD="gcc -shared"
.elif ${INTERFACE} == "motif"
LINK= xmmidi
USE_MOTIF= yes
CONFIGURE_ENV= MOTIFLIB="${MOTIFLIB}"
.elif ${INTERFACE} == "slang"
.if defined(JAPANESE)
INTERFACE_DEPS= slang.2:${PORTSDIR}/japanese/libslang
.else
INTERFACE_DEPS= slang.1:${PORTSDIR}/devel/libslang
.endif
CONFIGURE_ARGS+= --enable-ncurses
.elif ${INTERFACE} == "tcltk"
LINK= tkmidi
DOCFILES= README.tk
DOCLANG= C ja_JP.ujis
.if defined(JAPANESE)
INTERFACE_DEPS= tk80jp.1:${PORTSDIR}/japanese/tk80
CONFIGURE_ARGS+= --with-tcl-includes=${PREFIX}/include/tcl8.0jp \
--with-tk-includes=${PREFIX}/include/tk8.0jp \
--with-tcl-libs=${PREFIX}/lib --with-tk-libs=${PREFIX}/lib
CONFIGURE_ENV= WISH=wish8.0jp
.else
INTERFACE_DEPS= tk80.1:${PORTSDIR}/x11-toolkits/tk80
CONFIGURE_ARGS+= --with-tcl-includes=${PREFIX}/include/tcl8.0 \
--with-tk-includes=${PREFIX}/include/tk8.0 \
--with-tcl-libs=${PREFIX}/lib --with-tk-libs=${PREFIX}/lib
CONFIGURE_ENV= WISH=wish8.0
.endif
.elif ${INTERFACE} == "xaw"
LINK= xawmidi
DOCFILES= README.xaw
DOCLANG= C ja_JP.ujis
INTERFACE_DEPS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
.elif ${INTERFACE} == "xskin"
LINK= xskinmidi
DOCFILES= README.xskin
DOCLANG= C ja_JP.ujis
.else
NO_BUILD= yes
NO_INSTALL= yes
.endif
.include <bsd.port.pre.mk>
.if ${PORTOBJFORMAT} == "elf"
CONFIGURE_ENV+= LDFLAGS=-export-dynamic
.endif
.if ${OSVERSION} >= 450002
EUCJP_LOCALE= ja_JP.eucJP
.else
EUCJP_LOCALE= ja_JP.EUC
.endif
PLIST_SUB= EUCJP_LOCALE=${EUCJP_LOCALE}
.if ${INTERFACE} == "motif"
post-configure:
@${MV} ${WRKSRC}/interface/Makefile ${WRKSRC}/interface/Makefile.orig
@${SED} -e 's^m_so_libs = $$^m_so_libs = -L${X11BASE}/lib ${MOTIFLIB} -lXt -lXext -lSM -lICE -lX11 ^' \
-e 's^dynamic_targets = $$^dynamic_targets = interface_m.so^' \
${WRKSRC}/interface/Makefile.orig > ${WRKSRC}/interface/Makefile
.endif
do-build:
@cd ${WRKSRC}/interface; ${MAKE} ${ALL_TARGET}
do-install:
@cd ${WRKSRC}/interface; ${MAKE} ${INSTALL_TARGET}
post-install:
.if ${INTERFACE} == "emacs"
@${MKDIR} ${ELISPDIR}
${INSTALL_DATA} ${WRKSRC}/interface/timidity.el ${ELISPDIR}
.endif
.if ${INTERFACE} == "xaw"
@${MKDIR} ${X11BASE}/lib/X11/${EUCJP_LOCALE}/app-defaults
${INSTALL_DATA} ${WRKSRC}/TiMidity.ad \
${X11BASE}/lib/X11/app-defaults/TiMidity
${INSTALL_DATA} ${WRKSRC}/TiMidity-uj.ad \
${X11BASE}/lib/X11/${EUCJP_LOCALE}/app-defaults/TiMidity
.endif
.if defined(DOCFILES)
.if !defined(NOPORTDOCS)
.for lang in ${DOCLANG}
@${MKDIR} \
${PREFIX}/share/doc/`echo ${lang} | ${SED} -e 's/^C$$//' -e 's/_JP.ujis$$//'`/timidity++
${INSTALL_DATA} ${WRKSRC}/doc/${lang}/${DOCFILES} \
${PREFIX}/share/doc/`echo ${lang} | ${SED} -e 's/^C$$//' -e 's/_JP.ujis$$//'`/timidity++
.endfor
.endif
.endif
.if defined(LINK)
${LN} -sf ${PREFIX}/bin/timidity ${PREFIX}/bin/${LINK}
.endif
.if exists(${PKGMESSAGE})
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>
|