1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

- Move timidity++ interface glues from audio/timidity++-emacs into

audio/timidity++. This makes all interface ports much more similar
  to each others.
- As a result of changing master port, all interface ports portrevision
  are bumped
- Use PLIST_FILES for slave ports if possible
- While I'm here, remove 4.x support in audio/timidity++

Approved by:	nork (timidity++ maintainer, blanket)
This commit is contained in:
Rong-En Fan 2007-03-22 16:59:24 +00:00
parent 71bdc605e0
commit 5168cdcc47
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=188042
18 changed files with 249 additions and 265 deletions

View File

@ -5,139 +5,13 @@
# $FreeBSD$
#
PORTNAME= timidity++
PORTVERSION= 2.13.2
PORTREVISION= 1
CATEGORIES+= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=timidity
PKGNAMESUFFIX= -${INTERFACE}
DISTNAME= TiMidity++-${PORTVERSION}
PKGNAMESUFFIX= -emacs
MAINTAINER?= ports@FreeBSD.org
COMMENT?= Emacs interface for TiMidity++
RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++
LIB_DEPENDS= ${INTERFACE_DEPS}
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
LDFLAGS= -export-dynamic
USE_GMAKE= yes
.if !${INTERFACE} == "emacs" && !${INTERFACE} == "slang"
USE_XLIB= yes
.endif
CONFIGURE_ARGS+=--enable-dynamic=${INTERFACE}
MAINTAINER= ports@FreeBSD.org
COMMENT= Emacs interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PKGDIR= ${.CURDIR}
PLIST_SUB+= TIMID_LIBDIR=${TIMID_LIBDIR}
TIMID_LIBDIR= lib/timidity
PLIST_FILES= ${TIMID_LIBDIR}/interface_e.so ${ELISPDIR}/timidity.el
.if ${INTERFACE} == "emacs"
ELISPDIR= ${PREFIX}/share/emacs/site-lisp
.elif ${INTERFACE} == "gtk"
LINK= gtkmidi
USE_GNOME= gtk12
.elif ${INTERFACE} == "motif"
LINK= xmmidi
USE_MOTIF= yes
CONFIGURE_ENV+= MOTIFLIB="${MOTIFLIB}"
.elif ${INTERFACE} == "slang"
CONFIGURE_ARGS+=--with-includes=${LOCALBASE}/include \
--with-libraries=${LOCALBASE}/lib
LDFLAGS+= -L${LOCALBASE}/lib
.if defined(JAPANESE)
INTERFACE_DEPS= slang.2:${PORTSDIR}/japanese/libslang
.else
INTERFACE_DEPS= slang:${PORTSDIR}/devel/libslang
.endif
CONFIGURE_ARGS+= --enable-ncurses
.elif ${INTERFACE} == "tcltk"
LINK= tkmidi
DOCFILES= README.tk
DOCLANG= C ja_JP.eucJP
.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= tk84:${PORTSDIR}/x11-toolkits/tk84
CONFIGURE_ARGS+= --with-tcl-includes=${PREFIX}/include/tcl8.4 \
--with-tk-includes=${PREFIX}/include/tk8.4 \
--with-tcl-libs=${PREFIX}/lib --with-tk-libs=${PREFIX}/lib
CONFIGURE_ENV+= WISH=wish8.4
.endif
.elif ${INTERFACE} == "xaw"
LINK= xawmidi
DOCFILES= README.xaw
DOCLANG= C ja_JP.eucJP
INTERFACE_DEPS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
.elif ${INTERFACE} == "xskin"
LINK= xskinmidi
DOCFILES= README.xskin
DOCLANG= C ja_JP.eucJP
.else
NO_BUILD= yes
NO_INSTALL= yes
.endif
CONFIGURE_ENV+= SHLD="${CC} -shared ${LDFLAGS}"
.include <bsd.port.pre.mk>
EUCJP_LOCALE= ja_JP.eucJP
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; ${GMAKE} ${ALL_TARGET}
do-install:
@cd ${WRKSRC}/interface; ${GMAKE} ${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) && !defined(NOPORTDOCS)
.for lang in ${DOCLANG}
${MKDIR} ${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++
${INSTALL_DATA} ${WRKSRC}/doc/${lang}/${DOCFILES} \
${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++/
.endfor
.endif
.if defined(LINK)
${LN} -sf ${PREFIX}/bin/timidity ${PREFIX}/bin/${LINK}
.endif
.if exists(${PKGMESSAGE})
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>
.include "${MASTERDIR}/Makefile"

View File

@ -1,2 +0,0 @@
lib/timidity/interface_e.so
share/emacs/site-lisp/timidity.el

View File

@ -5,11 +5,13 @@
# $FreeBSD$
#
INTERFACE= gtk
PKGNAMESUFFIX= -gtk
MAINTAINER= ports@FreeBSD.org
COMMENT= Gtk interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++-emacs
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PLIST_FILES= bin/gtkmidi ${TIMID_LIBDIR}/interface_g.so
.include "${MASTERDIR}/Makefile"

View File

@ -1,2 +0,0 @@
bin/gtkmidi
lib/timidity/interface_g.so

View File

@ -5,11 +5,19 @@
# $FreeBSD$
#
INTERFACE= motif
PKGNAMESUFFIX= -motif
MAINTAINER= ports@FreeBSD.org
COMMENT= Motif interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++-emacs
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PLIST_FILES= bin/xmmidi ${TIMID_LIBDIR}/interface_m.so
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
.include "${MASTERDIR}/Makefile"

View File

@ -1,2 +0,0 @@
bin/xmmidi
lib/timidity/interface_m.so

View File

@ -5,12 +5,13 @@
# $FreeBSD$
#
INTERFACE= slang
PKGNAMESUFFIX= -slang
MAINTAINER= ports@FreeBSD.org
COMMENT= Slang interface for TiMidity++
MASTERDIR= ${.CURDIR:H:H}/audio/timidity++-emacs
PLIST_FILES= lib/timidity/interface_s.so
MASTERDIR= ${.CURDIR}/../..//audio/timidity++
PLIST_FILES= ${TIMID_LIBDIR}/interface_s.so
.include "${MASTERDIR}/Makefile"

View File

@ -5,11 +5,11 @@
# $FreeBSD$
#
INTERFACE= tcltk
PKGNAMESUFFIX= -tcltk
MAINTAINER= ports@FreeBSD.org
COMMENT= Tcl/Tk interface for TiMidity++
MASTERDIR= ${.CURDIR:H:H}/audio/timidity++-emacs
MASTERDIR= ${.CURDIR}/../../audio/timidity++
.include "${MASTERDIR}/Makefile"

View File

@ -1,21 +1,21 @@
bin/tkmidi
lib/timidity/bitmaps/back.xbm
lib/timidity/bitmaps/fwrd.xbm
lib/timidity/bitmaps/next.xbm
lib/timidity/bitmaps/pause.xbm
lib/timidity/bitmaps/play.xbm
lib/timidity/bitmaps/prev.xbm
lib/timidity/bitmaps/quit.xbm
lib/timidity/bitmaps/random.xbm
lib/timidity/bitmaps/repeat.xbm
lib/timidity/bitmaps/stop.xbm
lib/timidity/bitmaps/timidity.xbm
lib/timidity/browser.tcl
lib/timidity/interface_k.so
lib/timidity/misc.tcl
lib/timidity/tclIndex
lib/timidity/tkmidity.tcl
lib/timidity/tkpanel.tcl
%%TIMID_LIBDIR%%/bitmaps/back.xbm
%%TIMID_LIBDIR%%/bitmaps/fwrd.xbm
%%TIMID_LIBDIR%%/bitmaps/next.xbm
%%TIMID_LIBDIR%%/bitmaps/pause.xbm
%%TIMID_LIBDIR%%/bitmaps/play.xbm
%%TIMID_LIBDIR%%/bitmaps/prev.xbm
%%TIMID_LIBDIR%%/bitmaps/quit.xbm
%%TIMID_LIBDIR%%/bitmaps/random.xbm
%%TIMID_LIBDIR%%/bitmaps/repeat.xbm
%%TIMID_LIBDIR%%/bitmaps/stop.xbm
%%TIMID_LIBDIR%%/bitmaps/timidity.xbm
%%TIMID_LIBDIR%%/browser.tcl
%%TIMID_LIBDIR%%/interface_k.so
%%TIMID_LIBDIR%%/misc.tcl
%%TIMID_LIBDIR%%/tclIndex
%%TIMID_LIBDIR%%/tkmidity.tcl
%%TIMID_LIBDIR%%/tkpanel.tcl
%%PORTDOCS%%%%DOCSDIR%%/README.tk
%%PORTDOCS%%share/doc/ja/timidity++/README.tk
@dirrm lib/timidity/bitmaps
@dirrm %%TIMID_LIBDIR%%/bitmaps

View File

@ -5,13 +5,13 @@
# $FreeBSD$
#
INTERFACE= xaw
PKGNAMESUFFIX= -xaw
MAINTAINER= ports@FreeBSD.org
COMMENT= Xaw interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++-emacs
MASTERDIR= ${.CURDIR}/../../audio/timidity++
PLIST_SUB+= REALPREFIX=${PREFIX}
PLIST_SUB= REALPREFIX=${PREFIX}
.include "${MASTERDIR}/Makefile"

View File

@ -3,21 +3,21 @@ lib/X11/app-defaults/TiMidity
lib/X11/%%EUCJP_LOCALE%%/app-defaults/TiMidity
@cwd %%REALPREFIX%%
bin/xawmidi
lib/timidity/bitmaps/back.xbm
lib/timidity/bitmaps/fwrd.xbm
lib/timidity/bitmaps/next.xbm
lib/timidity/bitmaps/pause.xbm
lib/timidity/bitmaps/play.xbm
lib/timidity/bitmaps/prev.xbm
lib/timidity/bitmaps/quit.xbm
lib/timidity/bitmaps/random.xbm
lib/timidity/bitmaps/repeat.xbm
lib/timidity/bitmaps/stop.xbm
lib/timidity/bitmaps/timidity.xbm
lib/timidity/interface_a.so
%%TIMID_LIBDIR%%/bitmaps/back.xbm
%%TIMID_LIBDIR%%/bitmaps/fwrd.xbm
%%TIMID_LIBDIR%%/bitmaps/next.xbm
%%TIMID_LIBDIR%%/bitmaps/pause.xbm
%%TIMID_LIBDIR%%/bitmaps/play.xbm
%%TIMID_LIBDIR%%/bitmaps/prev.xbm
%%TIMID_LIBDIR%%/bitmaps/quit.xbm
%%TIMID_LIBDIR%%/bitmaps/random.xbm
%%TIMID_LIBDIR%%/bitmaps/repeat.xbm
%%TIMID_LIBDIR%%/bitmaps/stop.xbm
%%TIMID_LIBDIR%%/bitmaps/timidity.xbm
%%TIMID_LIBDIR%%/interface_a.so
%%PORTDOCS%%%%DOCSDIR%%/README.xaw
%%PORTDOCS%%share/doc/ja/timidity++/README.xaw
@dirrm lib/timidity/bitmaps
@dirrm %%TIMID_LIBDIR%%/bitmaps
@cwd %%X11BASE%%
@dirrmtry lib/X11/%%EUCJP_LOCALE%%/app-defaults
@dirrmtry lib/X11/%%EUCJP_LOCALE%%

View File

@ -5,11 +5,11 @@
# $FreeBSD$
#
INTERFACE= xskin
PKGNAMESUFFIX= -xskin
MAINTAINER= ports@FreeBSD.org
COMMENT= X11AMP skin interface for TiMidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++-emacs
MASTERDIR= ${.CURDIR}/../../audio/timidity++
.include "${MASTERDIR}/Makefile"

View File

@ -1,4 +1,4 @@
bin/xskinmidi
lib/timidity/interface_i.so
%%TIMID_LIBDIR%%/interface_i.so
%%PORTDOCS%%%%DOCSDIR%%/README.xskin
%%PORTDOCS%%share/doc/ja/timidity++/README.xskin

View File

@ -7,56 +7,50 @@
PORTNAME= timidity++
PORTVERSION= 2.13.2
PORTREVISION= 2
CATEGORIES= audio
PORTREVISION?= 2
CATEGORIES+= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=timidity
DISTNAME= TiMidity++-${PORTVERSION}
MAINTAINER= nork@FreeBSD.org
COMMENT= Software MIDI player
MAINTAINER?= nork@FreeBSD.org
COMMENT?= Software MIDI player
LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis \
.if !defined(PKGNAMESUFFIX)
LIB_DEPENDS= vorbis:${PORTSDIR}/audio/libvorbis \
arc:${PORTSDIR}/archivers/libarc
RUN_DEPENDS= ${LOCALBASE}/share/timidity/timidity.cfg:${PORTSDIR}/audio/eawpats
CONFLICTS= timidity-0.*
.endif
# If you don't have X11, type "make -DWITHOUT_X11" or uncomment this.
#WITHOUT_X11= yes
USE_BZIP2= yes
USE_GETOPT_LONG=yes
WANT_GNOME= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
PLIST_SUB+= TIMID_LIBDIR=${TIMID_LIBDIR} EUCJP_LOCALE=${EUCJP_LOCALE}
EUCJP_LOCALE= ja_JP.eucJP
TIMID_LIBDIR= lib/timidity
.if !defined(PKGNAMESUFFIX)
WANT_GNOME= yes
EXTRACT_AFTER_ARGS=| ${TAR} -xpf - --exclude '*/libarc/*' \
--exclude '*/utils/mblock.h' --exclude '*/utils/memb.h'
CONFIGURE_ARGS?=--enable-interface=ncurses,vt100,server
CONFIGURE_ARGS+=--program-transform-name= --enable-network
CONFIGURE_ARGS= --enable-interface=ncurses,vt100,server \
--program-transform-name= --enable-network
CPPFLAGS+= -I${LOCALBASE}/include/libarc
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS=-export-dynamic
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS=-export-dynamic
PLIST_SUB= EUCJP_LOCALE=${EUCJP_LOCALE} TIMID_LIBDIR=${TIMID_LIBDIR} \
ELISPDIR=share/emacs/site-lisp
DOCFILES?= README.alsaseq README.dl README.m2m README.mts README.sf
DOCLANG?= C ja_JP.eucJP
TIMID_LIBDIR= lib/timidity
DOCFILES= README.alsaseq README.dl README.m2m README.mts README.sf
DOCLANG= C ja_JP.eucJP
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
USE_GMAKE= yes
.endif
.if ${.CURDIR} == ${MASTERDIR}
MANLANG= "" ja
MAN1= timidity.1
MAN5= timidity.cfg.5
.else
RUN_DEPENDS+= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++
.endif
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+=--without-x --disable-spectrogram --disable-wrd --disable-dynamic
@ -66,21 +60,9 @@ USE_XLIB= yes
LIB_DEPENDS+= png:${PORTSDIR}/graphics/png
.endif
.if ${OSVERSION} >= 450002
EUCJP_LOCALE= ja_JP.eucJP
.else
EUCJP_LOCALE= ja_JP.EUC
.endif
#.if ${OSVERSION} > 600006
#BROKEN= "Depends on libxpg4 which was removed from FreeBSD 6.0"
#.endif
.if ${HAVE_GNOME:Mesound}!=""
USE_GNOME= esound
CONFIGURE_ARGS+=--enable-audio=oss,esd,vorbis
# 4.x make(1) doesn't like/work when using :=, so just disable esound suffix
#PKGNAMESUFFIX:= ${PKGNAMESUFFIX}-esound
.else
CONFIGURE_ARGS+=--enable-audio=oss,vorbis
.endif
@ -88,37 +70,25 @@ CONFIGURE_ARGS+=--enable-audio=oss,vorbis
pre-install:
@${MKDIR} ${PREFIX}/share/timidity ${PREFIX}/${TIMID_LIBDIR}
.if ${.CURDIR} == ${MASTERDIR}
post-install::
${INSTALL_MAN} ${WRKSRC}/doc/ja_JP.eucJP/timidity.1 \
${PREFIX}/man/ja/man1
${INSTALL_MAN} ${WRKSRC}/doc/ja_JP.eucJP/timidity.cfg.5 \
${PREFIX}/man/ja/man5
.else
do-build:
@cd ${WRKSRC}/interface; ${MAKE} ${ALL_TARGET}
.else # defined(PKGNAMESUFFIX)
.include "${MASTERDIR}/Makefile.interface"
.endif # !defined(PKGNAMESUFFIX)
do-install:
@cd ${WRKSRC}/interface; ${MAKE} ${INSTALL_TARGET}
.endif
.if !defined(NOPORTDOCS)
post-install::
. for lang in ${DOCLANG}
.if !defined(NOPORTDOCS) && defined(DOCFILES)
.for lang in ${DOCLANG}
${MKDIR} ${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++
cd ${WRKSRC}/doc/${lang} && ${INSTALL_DATA} ${DOCFILES} \
${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++/
. endfor
.endfor
.endif
.if defined(LINK)
post-install::
${LN} -sf ${PREFIX}/bin/timidity ${PREFIX}/bin/${LINK}
.endif
.if exists(${PKGMESSAGE})
post-install::
@${SED} -e 's,/usr/local,${PREFIX},g' ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,132 @@
#$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
.if defined(JAPANESE)
LIB_DEPENDS+= slang.2:${PORTSDIR}/japanese/libslang
.else
LIB_DEPENDS+= slang:${PORTSDIR}/devel/libslang
.endif
.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

View File

@ -5,15 +5,17 @@
# $FreeBSD$
#
PKGNAMESUFFIX= -slang
CATEGORIES= japanese
MAINTAINER= ports@FreeBSD.org
COMMENT= Slang interface for TiMidity++ with Japanese support
INTERFACE= slang
JAPANESE= yes
PLIST_FILES= lib/timidity/interface_s.so
MASTERDIR= ${.CURDIR}/../../audio/timidity++
MASTERDIR= ${.CURDIR}/../../audio/timidity++-emacs
JAPANESE= yes
PLIST_FILES= ${TIMID_LIBDIR}/interface_s.so
.include "${MASTERDIR}/Makefile"

View File

@ -5,14 +5,15 @@
# $FreeBSD$
#
PKGNAMESUFFIX= -tcltk
CATEGORIES= japanese
MAINTAINER= ports@FreeBSD.org
COMMENT= Tcl/Tk interface for TiMidity++ with Japanese support
INTERFACE= tcltk
JAPANESE= yes
MASTERDIR= ${.CURDIR}/../../audio/timidity++-emacs
MASTERDIR= ${.CURDIR}/../../audio/timidity++
.include "${MASTERDIR}/Makefile"

View File

@ -1,21 +1,21 @@
bin/tkmidi
lib/timidity/bitmaps/back.xbm
lib/timidity/bitmaps/fwrd.xbm
lib/timidity/bitmaps/next.xbm
lib/timidity/bitmaps/pause.xbm
lib/timidity/bitmaps/play.xbm
lib/timidity/bitmaps/prev.xbm
lib/timidity/bitmaps/quit.xbm
lib/timidity/bitmaps/random.xbm
lib/timidity/bitmaps/repeat.xbm
lib/timidity/bitmaps/stop.xbm
lib/timidity/bitmaps/timidity.xbm
lib/timidity/browser.tcl
lib/timidity/interface_k.so
lib/timidity/misc.tcl
lib/timidity/tclIndex
lib/timidity/tkmidity.tcl
lib/timidity/tkpanel.tcl
%%TIMID_LIBDIR%%/bitmaps/back.xbm
%%TIMID_LIBDIR%%/bitmaps/fwrd.xbm
%%TIMID_LIBDIR%%/bitmaps/next.xbm
%%TIMID_LIBDIR%%/bitmaps/pause.xbm
%%TIMID_LIBDIR%%/bitmaps/play.xbm
%%TIMID_LIBDIR%%/bitmaps/prev.xbm
%%TIMID_LIBDIR%%/bitmaps/quit.xbm
%%TIMID_LIBDIR%%/bitmaps/random.xbm
%%TIMID_LIBDIR%%/bitmaps/repeat.xbm
%%TIMID_LIBDIR%%/bitmaps/stop.xbm
%%TIMID_LIBDIR%%/bitmaps/timidity.xbm
%%TIMID_LIBDIR%%/browser.tcl
%%TIMID_LIBDIR%%/interface_k.so
%%TIMID_LIBDIR%%/misc.tcl
%%TIMID_LIBDIR%%/tclIndex
%%TIMID_LIBDIR%%/tkmidity.tcl
%%TIMID_LIBDIR%%/tkpanel.tcl
%%PORTDOCS%%share/doc/timidity++/README.tk
%%PORTDOCS%%share/doc/ja/timidity++/README.tk
@dirrm lib/timidity/bitmaps
@dirrm %%TIMID_LIBDIR%%/bitmaps