aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorMichael Haro <mharo@FreeBSD.org>2000-04-06 07:05:55 +0000
committerMichael Haro <mharo@FreeBSD.org>2000-04-06 07:05:55 +0000
commit1ac92b16376af2fb6a023cc98a3d2c6db50beb55 (patch)
tree845f8a8b7d043565e5e7722887d50fd31a66d6e6 /audio
parentc3ad90174374dd42e09b58cd645bdec865622242 (diff)
downloadports-1ac92b16376af2fb6a023cc98a3d2c6db50beb55.tar.gz
ports-1ac92b16376af2fb6a023cc98a3d2c6db50beb55.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/timidity++-emacs/Makefile125
-rw-r--r--audio/timidity++-emacs/pkg-descr4
-rw-r--r--audio/timidity++-emacs/pkg-message8
-rw-r--r--audio/timidity++-emacs/pkg-plist2
4 files changed, 120 insertions, 19 deletions
diff --git a/audio/timidity++-emacs/Makefile b/audio/timidity++-emacs/Makefile
index 8b0d5f281662..01b3c4ab1fc4 100644
--- a/audio/timidity++-emacs/Makefile
+++ b/audio/timidity++-emacs/Makefile
@@ -6,41 +6,136 @@
# $FreeBSD$
#
-DISTNAME= TiMidity++-1.3.10
-PKGNAME= timidity++-emacs-1.3.10
+DISTNAME= TiMidity++-${VERSION}
+PKGNAME= ${LANGPREFIX}timidity++-${INTERFACE}-${VERSION}
CATEGORIES= audio
MASTER_SITES= http://www.goice.co.jp/member/mo/timidity/dist/
MAINTAINER= yatt@msc.biglobe.ne.jp
RUN_DEPENDS= ${PREFIX}/bin/timidity:${PORTSDIR}/audio/timidity++
+LIB_DEPENDS= ${INTERFACE_DEPS}
+VERSION= 2.9.0
+INTERFACE?= emacs
+.if defined(JAPANESE)
+LANGPREFIX= ja-
+.endif
+
+USE_BZIP2= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+.if !${INTERFACE} == "emacs" && !${INTERFACE} == "slang"
USE_XLIB= yes
-USE_AUTOCONF= yes
+.endif
-FILESDIR= ${.CURDIR}/../../audio/timidity++/files
+CONFIGURE_ARGS= --enable-dynamic=${INTERFACE}
+MASTERDIR= ${.CURDIR}/../../audio/timidity++
+PKGDIR= ${.CURDIR}/pkg
+PKGMESSAGE= ${PKGDIR}/MESSAGE
+PLIST_SUB= TIMID_LIBDIR=${TIMID_LIBDIR}
DIST_SUBDIR= timidity
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+
+TIMID_LIBDIR= ${PREFIX}/lib/timidity
+
+.if ${INTERFACE} == "emacs"
+ELISPDIR= ${PREFIX}/share/emacs/site-lisp
+.elif ${INTERFACE} == "gtk"
+LINK= gtkmidi
+INTERFACE_DEPS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+CONFIGURE_ENV= GTK_CONFIG=${GTK_CONFIG} SHLD="gcc -shared"
+.elif ${INTERFACE} == "motif"
+LINK= xmmidi
+REQUIRES_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.6:${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>
-CONFIGURE_ARGS= --prefix=${PREFIX} --with-x \
- --disable-ncurses --disable-vt100 --disable-tcltk \
- --enable-emacs=dynamic --disable-xaw --disable-xskin \
- --disable-motif --disable-slang --disable-gtk \
- --enable-network --enable-spectrogram --enable-wrd
.if ${PORTOBJFORMAT} == "elf"
-CONFIGURE_ENV= LDFLAGS=-export-dynamic
+CONFIGURE_ENV+= LDFLAGS=-export-dynamic
.endif
-TIMID_DIR= ${PREFIX}/lib/timidity
+.if ${INTERFACE} == "motif"
+post-configure:
+ @${MV} ${WRKSRC}/interface/Makefile ${WRKSRC}/interface/Makefile.orig
+ @${SED} -e 's^m_so_libs = $$^m_so_libs = -L/usr/X11R6/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}
+ @cd ${WRKSRC}/interface; ${MAKE} ${ALL_TARGET}
do-install:
- cd ${WRKSRC}/interface; ${MAKE} ${INSTALL_TARGET}
- ${INSTALL_DATA} ${WRKSRC}/interface/timidity.el ${TIMID_DIR}
- @cat ${PKGDIR}/MESSAGE
+ @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/ja_JP.EUC/app-defaults
+ ${INSTALL_DATA} ${WRKSRC}/TiMidity.ad \
+ ${X11BASE}/lib/X11/app-defaults/TiMidity
+ ${INSTALL_DATA} ${WRKSRC}/TiMidity-uj.ad \
+ ${X11BASE}/lib/X11/ja_JP.EUC/app-defaults/TiMidity
+.endif
+.if defined(DOCFILES)
+.if !defined(NOPORTDOCS)
+.for lang in ${DOCLANG}
+ @${MKDIR} \
+ ${PREFIX}/share/doc/timidity/`echo ${lang} | ${SED} 's/_JP.ujis//'`
+ ${INSTALL_DATA} ${WRKSRC}/doc/${lang}/${DOCFILES} \
+ ${PREFIX}/share/doc/timidity/`echo ${lang} | ${SED} 's/_JP.ujis//'`
+.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>
diff --git a/audio/timidity++-emacs/pkg-descr b/audio/timidity++-emacs/pkg-descr
index 76107195c724..4de3adbb7648 100644
--- a/audio/timidity++-emacs/pkg-descr
+++ b/audio/timidity++-emacs/pkg-descr
@@ -4,7 +4,7 @@ Please place timidity.el on load-path.
Formerly, the original version of this program was written by Tuuka
Toivonen(until version 0.2i).
Now, Masanao Izumo and many hackers are developing "TiMidity++".
-Official site is
-http://www.goice.co.jp/member/mo/timidity/
+
+WWW: http://www.goice.co.jp/member/mo/timidity/
Yoichi Asai <yatt@msc.biglobe.ne.jp>
diff --git a/audio/timidity++-emacs/pkg-message b/audio/timidity++-emacs/pkg-message
index 5aff3a09a94d..b1d524b91a0d 100644
--- a/audio/timidity++-emacs/pkg-message
+++ b/audio/timidity++-emacs/pkg-message
@@ -1,10 +1,16 @@
========================================================================
-Place ${PREFIX}/lib/timidity/timidity.el on load-path of your Emacs(en).
+"timidity.el" has been installed in ${PREFIX}/share/emacs/site-lisp/ .
+If this place is not proper for your Emacs(en), copy it to load-path.
Ex. /usr/local/lib/xemacs/site-lisp
/usr/local/share/mule/site-lisp
+Add these line to your "~/.emacs"
+
+(autoload 'timidity "timidity" "TiMidity Interface" t)
+(setq timidity-prog-path "/usr/local/bin/timidity")
+
And then, type "M-x timidity" on Emacs. Enjoy!
========================================================================
diff --git a/audio/timidity++-emacs/pkg-plist b/audio/timidity++-emacs/pkg-plist
index 92cbbe9c6232..8da3750f7bcf 100644
--- a/audio/timidity++-emacs/pkg-plist
+++ b/audio/timidity++-emacs/pkg-plist
@@ -1,2 +1,2 @@
lib/timidity/interface_e.so
-lib/timidity/timidity.el
+share/emacs/site-lisp/timidity.el