diff options
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/ump/Makefile | 84 | ||||
-rw-r--r-- | www/ump/distinfo | 8 | ||||
-rw-r--r-- | www/ump/files/patch-ump::UnixShell.c | 86 | ||||
-rw-r--r-- | www/ump/pkg-comment | 1 | ||||
-rw-r--r-- | www/ump/pkg-descr | 9 | ||||
-rw-r--r-- | www/ump/pkg-plist | 2 |
7 files changed, 191 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index c33a0322f325..4eaedb6cc748 100644 --- a/www/Makefile +++ b/www/Makefile @@ -297,6 +297,7 @@ SUBDIR += tinyproxy SUBDIR += transproxy SUBDIR += udmsearch + SUBDIR += ump SUBDIR += viewml SUBDIR += w3 SUBDIR += w3-4 diff --git a/www/ump/Makefile b/www/ump/Makefile new file mode 100644 index 000000000000..c70a4513b746 --- /dev/null +++ b/www/ump/Makefile @@ -0,0 +1,84 @@ +# New ports collection makefile for: ump +# Date created: 15 Nov 2001 +# Whom: Leland Wang <llwang@infor.org> +# +# $FreeBSD$ +# + +PORTNAME= ump +PORTVERSION= 1.10 +CATEGORIES= www +MASTER_SITES= http://www.goice.co.jp/member/mo/timidity/dist/ \ + http://www.geocities.com/SiliconValley/Lab/2826/1-10/ \ + http://pubweb.bnl.gov/people/hoff/midi/1.10/ \ + ftp://ftp.netscape.com/pub/sdk/plugin/unix/ +DISTFILES= ${BZ2DIST} ${ZDIST} + +PATCH_SITES= http://www.goice.co.jp/member/mo/timidity/dist/ +PATCHFILES= ump-patch-1.gz ump-patch-2.gz ump-patch-3.gz ump-patch-4.gz + +MAINTAINER= llwang@infor.org + +LIB_DEPENDS= Xpm.4:${PORTSDIR}/graphics/xpm +RUN_DEPENDS= ${LOCALBASE}/bin/timidity:${PORTSDIR}/audio/timidity++ \ + ${X11BASE}/bin/mozilla:${PORTSDIR}/www/mozilla + +BZ2DIST= TiMidity++-2.10.4.tar.bz2 +ZDIST= unix-sdk-3.0b5.tar.Z ump_with_volume.tar.Z timdiffs.tar.Z + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-ump +USE_GMAKE= yes +USE_XLIB= yes +WANT_ESOUND= yes +# CONFIGURE_ARGS+= --enable-motif +EXTRA_PATCHES= ${.CURDIR}/../../audio/timidity++/files/* +PKGDIR= ${.CURDIR} +DIST_SUBDIR= timidity +WRKSRC= ${WRKDIR}/TiMidity++-2.10.4 + +# USE_MOTIF= yes +# CONFIGURE_ENV= MOTIFLIB="${MOTIFLIB}" + +.include <bsd.port.pre.mk> + +.if defined(HAVE_ESOUND) +USE_ESOUND= yes +CONFIGURE_ARGS+= --enable-audio=oss,esd +.else +CONFIGURE_ARGS+= --enable-audio=oss +.endif + +.if ${PORTOBJFORMAT} == "elf" +CONFIGURE_ENV= LDFLAGS=-export-dynamic +.endif + +do-extract: + @${RM} -rf ${WRKDIR} + @${MKDIR} ${WRKDIR} + @(cd ${WRKDIR} && tar -jxf ${DISTDIR}/${DIST_SUBDIR}/${BZ2DIST}) + @${MKDIR} ${WRKSRC}/ump + @for file in ${ZDIST}; do \ + if ! (cd ${WRKSRC}/ump && tar -Zxf ${DISTDIR}/${DIST_SUBDIR}/$${file}); \ + then \ + exit 1; \ + fi \ + done + +post-extract: + @${CP} ${WRKSRC}/ump/PluginSDK30b5/include/*.h ${WRKSRC}/ump/PluginSDK30b5/common/npunix.c ${WRKSRC}/ump + +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 + @cd ${WRKSRC}; ${SETENV} CONFIG_HEADERS='' CONFIG_FILES=ump/Makefile ${SH} ./config.status + +do-build: + @cd ${WRKSRC}/ump; ${GMAKE} ump + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/ump/ump.so ${X11BASE}/lib/mozilla/plugins + +.include <bsd.port.post.mk> diff --git a/www/ump/distinfo b/www/ump/distinfo new file mode 100644 index 000000000000..0ddd9a5fbc0d --- /dev/null +++ b/www/ump/distinfo @@ -0,0 +1,8 @@ +MD5 (timidity/TiMidity++-2.10.4.tar.bz2) = 8e69753b7e71055e61aeb3c234048f1e +MD5 (timidity/unix-sdk-3.0b5.tar.Z) = 1e43785d5697c60937e8d6236e7d7d7e +MD5 (timidity/ump_with_volume.tar.Z) = 73c429e79e23b2d43906dddc594cc53b +MD5 (timidity/timdiffs.tar.Z) = efe668b0f7093d21294d6b03cec37b85 +MD5 (timidity/ump-patch-1.gz) = f9b2cfd46d53627664dbd63c36d7b693 +MD5 (timidity/ump-patch-2.gz) = 84f32eee04748f3d74f34b6e34081a43 +MD5 (timidity/ump-patch-3.gz) = 3f00420b7d3898164403752c8571c55a +MD5 (timidity/ump-patch-4.gz) = c95fec937fc585347ded3dd912616d13 diff --git a/www/ump/files/patch-ump::UnixShell.c b/www/ump/files/patch-ump::UnixShell.c new file mode 100644 index 000000000000..ad4ffba591ab --- /dev/null +++ b/www/ump/files/patch-ump::UnixShell.c @@ -0,0 +1,86 @@ +--- ump/UnixShell.c.orig.1 Thu Nov 15 20:47:15 2001 ++++ ump/UnixShell.c Thu Nov 15 20:50:37 2001 +@@ -38,7 +38,7 @@ + /* + ** Stuff for the NPP_SetWindow method: + */ +-#ifdef XP_UNIX ++#if 0 + #include <X11/Xlib.h> /* Xlib */ + #include <X11/Intrinsic.h> /* Xt */ + #include <X11/StringDefs.h> /* "callback" */ +@@ -230,7 +230,7 @@ + int loop; /* 0 means play only once, non-zero means loop forever */ + + /* UNIX data members */ +-#ifdef XP_UNIX ++#if 0 + Widget play, pause, stop, plus, minus; /* button widgets, and their pictures, as well as the logo picture */ + Pixmap logoPixmap, playupPixmap, playdnPixmap, pauseupPixmap, pausednPixmap, stopupPixmap, stopdnPixmap, plusupPixmap, plusdnPixmap, minusupPixmap, minusdnPixmap; + Display *display; /* needed for XFreePixmap() */ +@@ -344,6 +344,7 @@ + This->pid = -1; + This->pipes[1] = -1; + This->pipes[0] = -1; ++#if 0 + This->logoPixmap = -1; + This->playupPixmap = -1; + This->playdnPixmap = -1; +@@ -355,6 +356,7 @@ + This->plusdnPixmap = -1; + This->minusupPixmap = -1; + This->minusdnPixmap = -1; ++#endif + This->pluginState = PLUGIN_PLAYING; + This->loop = 0; + } +@@ -422,7 +424,7 @@ + close(This->pipes[1]); + close(This->pipes[0]); + +-#ifdef XP_UNIX ++#if 0 + if(This->logoPixmap != -1)XFreePixmap(This->display, This->logoPixmap); + if(This->playupPixmap != -1)XFreePixmap(This->display, This->playupPixmap); + if(This->playdnPixmap != -1)XFreePixmap(This->display, This->playdnPixmap); +@@ -446,6 +448,7 @@ + return NPERR_NO_ERROR; + } + ++#if 0 + /* give buttons the right look for the state of the plugin */ + + static void setButtons(PluginInstance* This, pluginPlayState state){ +@@ -610,6 +613,7 @@ + *b = False; + + } ++#endif + + + NPError +@@ -633,7 +637,7 @@ + * size changes, etc. + */ + +-#ifdef XP_UNIX ++#if 0 + { + + +@@ -1050,6 +1054,7 @@ + unuse_UMP(NPN_GetJavaEnv()); + } + ++#if 0 + /* functions for LiveConnect */ + + static void stopSelectedCallback(XtPointer This, XtIntervalId* id){ stopSelected(NULL, This, NULL); } +@@ -1109,6 +1114,7 @@ + (void) XtAppAddTimeOut(XtWidgetToApplicationContext(Ump->stop), 1, minusSelectedCallback, (XtPointer) This); + + } ++#endif + + + diff --git a/www/ump/pkg-comment b/www/ump/pkg-comment new file mode 100644 index 000000000000..d2c89ede0578 --- /dev/null +++ b/www/ump/pkg-comment @@ -0,0 +1 @@ +Unix MIDI Plugin based on TiMidity++ diff --git a/www/ump/pkg-descr b/www/ump/pkg-descr new file mode 100644 index 000000000000..8bed2e6f6387 --- /dev/null +++ b/www/ump/pkg-descr @@ -0,0 +1,9 @@ +UMP is a UNIX Midi plug-in for Netscape Navigator (and mozilla). It +enables you to play MIDI files in the browser via TiMidity++, a +software MIDI player. + +WWW: http://www.geocities.com/SiliconValley/Lab/2826/ + http://www.goice.co.jp/member/mo/timidity/doc/ump-inst.html + +Author: Lawrence Hoff <lawrencehoff@yahoo.com> + Masanao Izumo <mo@goice.co.jp> diff --git a/www/ump/pkg-plist b/www/ump/pkg-plist new file mode 100644 index 000000000000..3f6c4229da2c --- /dev/null +++ b/www/ump/pkg-plist @@ -0,0 +1,2 @@ +@cwd %%X11BASE%% +lib/mozilla/plugins/ump.so |