1999-10-12 17:56:16 +02:00
|
|
|
# New ports collection makefile for: TiMidity++
|
|
|
|
# Date created: 27 Feb 1999
|
2003-02-08 16:25:42 +01:00
|
|
|
# Whom: Yoichi Asai <yatt@luna2.org>
|
1999-10-12 17:56:16 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 14:48:36 +02:00
|
|
|
PORTNAME= timidity++
|
2005-09-18 19:27:22 +02:00
|
|
|
PORTVERSION= 2.13.2
|
2006-03-07 09:28:06 +01:00
|
|
|
PORTREVISION= 1
|
2001-05-22 20:16:59 +02:00
|
|
|
CATEGORIES+= audio
|
2005-09-18 19:27:22 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR=timidity
|
|
|
|
PKGNAMESUFFIX= -${INTERFACE}
|
2000-04-08 23:25:03 +02:00
|
|
|
DISTNAME= TiMidity++-${PORTVERSION}
|
1999-10-12 17:56:16 +02:00
|
|
|
|
2005-09-10 10:59:53 +02:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-02-21 12:08:38 +01:00
|
|
|
COMMENT?= Emacs interface for TiMidity++
|
1999-10-12 17:56:16 +02:00
|
|
|
|
2000-04-20 12:10:18 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++
|
2000-04-06 09:05:55 +02:00
|
|
|
LIB_DEPENDS= ${INTERFACE_DEPS}
|
1999-10-12 17:56:16 +02:00
|
|
|
|
2000-04-20 12:10:18 +02:00
|
|
|
SLAVEDIRS= audio/timidity++-gtk audio/timidity++-motif \
|
|
|
|
audio/timidity++-slang audio/timidity++-tcltk \
|
2001-03-12 18:59:53 +01:00
|
|
|
audio/timidity++-xaw audio/timidity++-xskin \
|
|
|
|
japanese/timidity++-slang japanese/timidity++-tcltk
|
2000-04-20 12:10:18 +02:00
|
|
|
|
2000-04-06 09:05:55 +02:00
|
|
|
INTERFACE?= emacs
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
.if !${INTERFACE} == "emacs" && !${INTERFACE} == "slang"
|
1999-10-12 17:56:16 +02:00
|
|
|
USE_XLIB= yes
|
2000-04-06 09:05:55 +02:00
|
|
|
.endif
|
1999-10-12 17:56:16 +02:00
|
|
|
|
2005-09-28 00:35:13 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-dynamic=${INTERFACE}
|
1999-10-12 17:56:16 +02:00
|
|
|
|
2000-04-06 09:05:55 +02:00
|
|
|
MASTERDIR= ${.CURDIR}/../../audio/timidity++
|
2000-10-08 10:10:21 +02:00
|
|
|
PKGDIR= ${.CURDIR}
|
2000-04-06 09:05:55 +02:00
|
|
|
PLIST_SUB= TIMID_LIBDIR=${TIMID_LIBDIR}
|
1999-10-12 17:56:16 +02:00
|
|
|
|
2000-04-06 09:05:55 +02:00
|
|
|
TIMID_LIBDIR= ${PREFIX}/lib/timidity
|
|
|
|
|
|
|
|
.if ${INTERFACE} == "emacs"
|
|
|
|
ELISPDIR= ${PREFIX}/share/emacs/site-lisp
|
|
|
|
.elif ${INTERFACE} == "gtk"
|
|
|
|
LINK= gtkmidi
|
2002-08-31 02:13:25 +02:00
|
|
|
USE_GNOME= gtk12
|
2000-04-06 09:05:55 +02:00
|
|
|
.elif ${INTERFACE} == "motif"
|
|
|
|
LINK= xmmidi
|
2000-11-08 00:28:20 +01:00
|
|
|
USE_MOTIF= yes
|
2005-10-18 19:57:54 +02:00
|
|
|
CONFIGURE_ENV+= MOTIFLIB="${MOTIFLIB}"
|
2000-04-06 09:05:55 +02:00
|
|
|
.elif ${INTERFACE} == "slang"
|
2005-10-18 19:57:54 +02:00
|
|
|
CONFIGURE_ARGS+=--with-includes=${LOCALBASE}/include \
|
|
|
|
--with-libraries=${LOCALBASE}/lib
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-04-06 09:05:55 +02:00
|
|
|
.if defined(JAPANESE)
|
|
|
|
INTERFACE_DEPS= slang.2:${PORTSDIR}/japanese/libslang
|
|
|
|
.else
|
2005-09-18 19:27:22 +02:00
|
|
|
INTERFACE_DEPS= slang:${PORTSDIR}/devel/libslang
|
2000-04-06 09:05:55 +02:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --enable-ncurses
|
|
|
|
.elif ${INTERFACE} == "tcltk"
|
|
|
|
LINK= tkmidi
|
|
|
|
DOCFILES= README.tk
|
2005-09-18 19:27:22 +02:00
|
|
|
DOCLANG= C ja_JP.eucJP
|
2000-04-06 09:05:55 +02:00
|
|
|
.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
|
2005-10-18 19:57:54 +02:00
|
|
|
CONFIGURE_ENV+= WISH=wish8.0jp
|
2000-04-06 09:05:55 +02:00
|
|
|
.else
|
2005-09-18 19:27:22 +02:00
|
|
|
INTERFACE_DEPS= tk84:${PORTSDIR}/x11-toolkits/tk84
|
|
|
|
CONFIGURE_ARGS+= --with-tcl-includes=${PREFIX}/include/tcl8.4 \
|
|
|
|
--with-tk-includes=${PREFIX}/include/tk8.4 \
|
2000-04-06 09:05:55 +02:00
|
|
|
--with-tcl-libs=${PREFIX}/lib --with-tk-libs=${PREFIX}/lib
|
2005-10-18 19:57:54 +02:00
|
|
|
CONFIGURE_ENV+= WISH=wish8.4
|
2000-04-06 09:05:55 +02:00
|
|
|
.endif
|
|
|
|
.elif ${INTERFACE} == "xaw"
|
|
|
|
LINK= xawmidi
|
|
|
|
DOCFILES= README.xaw
|
2005-09-18 19:27:22 +02:00
|
|
|
DOCLANG= C ja_JP.eucJP
|
|
|
|
INTERFACE_DEPS= Xaw3d:${PORTSDIR}/x11-toolkits/Xaw3d
|
2000-04-06 09:05:55 +02:00
|
|
|
.elif ${INTERFACE} == "xskin"
|
|
|
|
LINK= xskinmidi
|
2000-04-20 12:10:18 +02:00
|
|
|
DOCFILES= README.xskin
|
2005-09-18 19:27:22 +02:00
|
|
|
DOCLANG= C ja_JP.eucJP
|
2000-04-06 09:05:55 +02:00
|
|
|
.else
|
|
|
|
NO_BUILD= yes
|
|
|
|
NO_INSTALL= yes
|
|
|
|
.endif
|
|
|
|
|
2005-10-18 19:57:54 +02:00
|
|
|
CONFIGURE_ENV+= SHLD="${CC} -shared ${LDFLAGS}"
|
|
|
|
|
1999-10-12 17:56:16 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
2005-10-18 19:57:54 +02:00
|
|
|
LDFLAGS+=-export-dynamic
|
1999-10-12 17:56:16 +02:00
|
|
|
.endif
|
|
|
|
|
2003-02-08 16:25:42 +01:00
|
|
|
EUCJP_LOCALE= ja_JP.eucJP
|
|
|
|
PLIST_SUB= EUCJP_LOCALE=${EUCJP_LOCALE}
|
|
|
|
|
2000-04-06 09:05:55 +02:00
|
|
|
.if ${INTERFACE} == "motif"
|
|
|
|
post-configure:
|
|
|
|
@${MV} ${WRKSRC}/interface/Makefile ${WRKSRC}/interface/Makefile.orig
|
2000-04-27 11:53:51 +02:00
|
|
|
@${SED} -e 's^m_so_libs = $$^m_so_libs = -L${X11BASE}/lib ${MOTIFLIB} -lXt -lXext -lSM -lICE -lX11 ^' \
|
2000-04-06 09:05:55 +02:00
|
|
|
-e 's^dynamic_targets = $$^dynamic_targets = interface_m.so^' \
|
|
|
|
${WRKSRC}/interface/Makefile.orig > ${WRKSRC}/interface/Makefile
|
|
|
|
.endif
|
1999-10-12 17:56:16 +02:00
|
|
|
|
|
|
|
do-build:
|
2005-10-18 19:57:54 +02:00
|
|
|
@cd ${WRKSRC}/interface; ${GMAKE} ${ALL_TARGET}
|
1999-10-12 17:56:16 +02:00
|
|
|
|
|
|
|
do-install:
|
2005-10-18 19:57:54 +02:00
|
|
|
@cd ${WRKSRC}/interface; ${GMAKE} ${INSTALL_TARGET}
|
2000-04-06 09:05:55 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${INTERFACE} == "emacs"
|
|
|
|
@${MKDIR} ${ELISPDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/interface/timidity.el ${ELISPDIR}
|
|
|
|
.endif
|
|
|
|
.if ${INTERFACE} == "xaw"
|
2003-02-08 16:25:42 +01:00
|
|
|
@${MKDIR} ${X11BASE}/lib/X11/${EUCJP_LOCALE}/app-defaults
|
2000-04-06 09:05:55 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/TiMidity.ad \
|
|
|
|
${X11BASE}/lib/X11/app-defaults/TiMidity
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/TiMidity-uj.ad \
|
2003-02-08 16:25:42 +01:00
|
|
|
${X11BASE}/lib/X11/${EUCJP_LOCALE}/app-defaults/TiMidity
|
2000-04-06 09:05:55 +02:00
|
|
|
.endif
|
2005-09-18 19:27:22 +02:00
|
|
|
.if defined(DOCFILES) && !defined(NOPORTDOCS)
|
2000-04-06 09:05:55 +02:00
|
|
|
.for lang in ${DOCLANG}
|
2005-09-18 19:27:22 +02:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++
|
2000-04-06 09:05:55 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${lang}/${DOCFILES} \
|
2005-09-18 19:27:22 +02:00
|
|
|
${PREFIX}/share/doc/${lang:C,^C$,,:C,ja_.*,ja/,}timidity++/
|
2000-04-06 09:05:55 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.if defined(LINK)
|
|
|
|
${LN} -sf ${PREFIX}/bin/timidity ${PREFIX}/bin/${LINK}
|
|
|
|
.endif
|
|
|
|
.if exists(${PKGMESSAGE})
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.endif
|
1999-10-12 17:56:16 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|