Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Apr 2000 13:41:32 +0900
From:      yatt@msc.biglobe.ne.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/17817: Update: audio/timidity++-emacs
Message-ID:  <20000401134132Z.yatt@msc.biglobe.ne.jp>

next in thread | raw e-mail | index | archive | help

>Number:         17817
>Category:       ports
>Synopsis:       Update: audio/timidity++-emacs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr  5 15:00:02 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Yoichi ASAI
>Release:        FreeBSD 3.3-RELEASE i386
>Organization:
Personal
>Environment:
>Description:
Update for audio/timidity++-emacs.
>How-To-Repeat:
>Fix:
diff -urN timidity++-emacs.orig/Makefile timidity++-emacs/Makefile
--- timidity++-emacs.orig/Makefile	Wed Oct 13 00:56:00 1999
+++ timidity++-emacs/Makefile	Thu Mar  2 21:12:17 2000
@@ -6,41 +6,136 @@
 # $FreeBSD: ports/audio/timidity++-emacs/Makefile,v 1.1.1.1 1999/10/12 15:56:15 flathill Exp $
 #
 
-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 -urN timidity++-emacs.orig/pkg/DESCR timidity++-emacs/pkg/DESCR
--- timidity++-emacs.orig/pkg/DESCR	Wed Oct 13 00:56:00 1999
+++ timidity++-emacs/pkg/DESCR	Thu Mar  2 20:52:33 2000
@@ -4,7 +4,7 @@
 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 -urN timidity++-emacs.orig/pkg/MESSAGE timidity++-emacs/pkg/MESSAGE
--- timidity++-emacs.orig/pkg/MESSAGE	Wed Oct 13 00:56:00 1999
+++ timidity++-emacs/pkg/MESSAGE	Thu Mar  2 20:52:33 2000
@@ -1,9 +1,15 @@
 
 ========================================================================
-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 -urN timidity++-emacs.orig/pkg/PLIST timidity++-emacs/pkg/PLIST
--- timidity++-emacs.orig/pkg/PLIST	Wed Oct 13 00:56:00 1999
+++ timidity++-emacs/pkg/PLIST	Thu Mar  2 20:52:33 2000
@@ -1,2 +1,2 @@
 lib/timidity/interface_e.so
-lib/timidity/timidity.el
+share/emacs/site-lisp/timidity.el

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000401134132Z.yatt>