blob: 6ac79d078d9c12eb4febc565f5b8483dfcc24326 (
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
|
#$FreeBSD$
# Shared by timidity++ interface ports
RUN_DEPENDS+= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++
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= ${PKGNAMESUFFIX:S/^-//}
DESCR= ${.CURDIR}/pkg-descr
.if exists(${.CURDIR}/pkg-plist)
PLIST= ${.CURDIR}/pkg-plist
.else
PLIST= ${NONEXISTENT}
.endif
.if exists(${.CURDIR}/pkg-message)
PKGMESSAGE= ${.CURDIR}/pkg-message
.else
PKGMESSAGE= ${NONEXISTENT}
.endif
CONFIGURE_ENV+= SHLD="${CC} -shared ${LDFLAGS}"
LDFLAGS= -export-dynamic
CONFIGURE_ARGS+=--enable-dynamic=${INTERFACE}
BUILD_WRKSRC= ${WRKSRC}/interface
INSTALL_WRKSRC= ${WRKSRC}/interface
# interface section
.if ${INTERFACE} == "emacs"
ELISPDIR= share/emacs/site-lisp
.endif
.if ${INTERFACE} == "gtk"
LINK= gtkmidi
USE_GNOME= gtk12
USE_XLIB= yes
.endif
.if ${INTERFACE} == "motif"
LINK= xmmidi
USE_MOTIF= yes
USE_XLIB= yes
CONFIGURE_ENV+= MOTIFLIB="${MOTIFLIB}"
.endif
.if ${INTERFACE} == "slang"
CONFIGURE_ARGS+=--with-includes=${LOCALBASE}/include \
--with-libraries=${LOCALBASE}/lib \
--enable-ncurses
LDFLAGS+= -L${LOCALBASE}/lib
LIB_DEPENDS+= slang.2:${PORTSDIR}/japanese/libslang
.endif
.if ${INTERFACE} == "tcltk"
LINK= tkmidi
USE_XLIB= yes
DOCFILES= README.tk
DOCLANG= C ja_JP.eucJP
.if defined(JAPANESE)
LIB_DEPENDS+= tk80jp.1:${PORTSDIR}/japanese/tk80
CONFIGURE_ARGS+= --with-tcl-includes=${LOCALBASE}/include/tcl8.0jp \
--with-tk-includes=${LOCALBASE}/include/tk8.0jp \
--with-tcl-libs=${LOCALBASE}/lib --with-tk-libs=${LOCALBASE}/lib
CONFIGURE_ENV+= WISH=wish8.0jp
.else
LIB_DEPENDS+= tk84:${PORTSDIR}/x11-toolkits/tk84
CONFIGURE_ARGS+= --with-tcl-includes=${LOCALBASE}/include/tcl8.4 \
--with-tk-includes=${LOCALBASE}/include/tk8.4 \
--with-tcl-libs=${LOCALBASE}/lib --with-tk-libs=${LOCALBASE}/lib
CONFIGURE_ENV+= WISH=wish8.4
.endif
.endif
.if ${INTERFACE} == "xaw"
LINK= xawmidi
LIB_DEPENDS+= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
USE_XLIB= yes
DOCFILES= README.xaw
DOCLANG= C ja_JP.eucJP
.endif
.if ${INTERFACE} == "xskin"
LINK= xskinmidi
USE_XLIB= yes
DOCFILES= README.xskin
DOCLANG= C ja_JP.eucJP
.endif
.include <bsd.port.pre.mk>
post-install::
.if ${INTERFACE} == "emacs"
@${MKDIR} ${PREFIX}/${ELISPDIR}
${INSTALL_DATA} ${WRKSRC}/interface/timidity.el ${PREFIX}/${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(LINK)
${LN} -sf ${PREFIX}/bin/timidity ${PREFIX}/bin/${LINK}
.endif
|