imm port from angelos@openbsd.org
This commit is contained in:
parent
cf1d3e34ac
commit
a15bfb528d
36
mbone/imm/Makefile
Normal file
36
mbone/imm/Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/09/14 01:47:58 marc Exp $
|
||||
#
|
||||
|
||||
DISTNAME= imm-3.5a1
|
||||
CATEGORIES= mbone tk80
|
||||
MASTER_SITES= ftp://ftp.hawaii.edu/paccom/imm-3.5a1/
|
||||
DISTFILES= imm.source.tar.Z
|
||||
WRKSRC= ${WRKDIR}/mnm
|
||||
|
||||
MAINTAINER= angelos@openbsd.org
|
||||
|
||||
LIB_DEPENDS= tk80\\.1:${PORTSDIR}/x11/tk80
|
||||
|
||||
USE_X_PREFIX= yes
|
||||
|
||||
post-extract:
|
||||
@${MKDIR} ${WRKSRC}/openbsd
|
||||
@${CP} ${FILESDIR}/Makefile.work ${WRKSRC}/Makefile
|
||||
@${CP} ${FILESDIR}/Makefile.openbsd ${WRKSRC}/src
|
||||
|
||||
# The included makefile doesn't have an "install" target.
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/openbsd/imm ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/openbsd/immserv ${PREFIX}/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/openbsd/lscomp ${PREFIX}/bin
|
||||
# and no man pages at all yet.
|
||||
# But include the very limited documentation
|
||||
${MKDIR} ${PREFIX}/share/doc/imm
|
||||
.if !defined(NOPORTDOCS)
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/imm
|
||||
${INSTALL_DATA} ${WRKSRC}/imm_readme.txt ${PREFIX}/share/doc/imm
|
||||
.endif
|
||||
# The sdr plugin is pretty much required.
|
||||
${INSTALL_DATA} ${WRKSRC}/sdr2.plugin.S53.image.imm ${PREFIX}/share/doc/imm
|
||||
|
||||
.include <bsd.port.mk>
|
77
mbone/imm/files/Makefile.openbsd
Normal file
77
mbone/imm/files/Makefile.openbsd
Normal file
@ -0,0 +1,77 @@
|
||||
# Some versions of make, like SGI's, use the following variable to
|
||||
# determine which shell to use for executing commands:
|
||||
SHELL = /bin/sh
|
||||
INCLUDE_DIR = -I${PREFIX}/include -I${LOCALBASE}/include/tcl8.0 -I${LOCALBASE}/include/tk8.0 -I/usr/X11R6/include
|
||||
# Libraries to use when linking:
|
||||
LIBS = -lm
|
||||
|
||||
TKLIBS= -L/usr/X11R6/lib -L$(PREFIX)/lib -L${LOCALBASE}/lib -ltk80 -ltcl80 -lX11
|
||||
|
||||
TARGET = ../openbsd
|
||||
|
||||
CFLAGS = -g -DSIG_T=void -DMULTICAST -I. -DERROR_TEST
|
||||
|
||||
CC = gcc
|
||||
CC_SWITCHES = ${CFLAGS}
|
||||
|
||||
ROBJS = protocol.o utils.o
|
||||
|
||||
SOBJS = protocol.o immserv.o sorttree.o utils.o
|
||||
|
||||
MOBJS = protocol.o mnmserver.o sorttree.o utils.o
|
||||
|
||||
all: $(TARGET)/imm $(TARGET)/immserv $(TARGET)/lscomp
|
||||
|
||||
$(TARGET)/mnm: $(ROBJS) main.o xlopen.o mcl.o
|
||||
$(CC) $(CFLAGS) main.o xlopen.o mcl.o $(ROBJS) $(LIBS) -o $(TARGET)/mnm
|
||||
|
||||
$(TARGET)/imm: $(ROBJS) tkAppInit.o imm_init.o imm.o xlopen_imm.o
|
||||
$(CC) $(CFLAGS) tkAppInit.o imm_init.o imm.o xlopen_imm.o $(ROBJS) $(TKLIBS) $(LIBS) -o $(TARGET)/imm
|
||||
|
||||
$(TARGET)/immserv: $(SOBJS)
|
||||
$(CC) $(CFLAGS) $(SOBJS) $(LIBS) -o $(TARGET)/immserv
|
||||
|
||||
$(TARGET)/lscomp: lscomp.o protocol.o sorttree.o utils.o
|
||||
$(CC) $(CFLAGS) lscomp.o protocol.o sorttree.o utils.o $(LIBS) -o $(TARGET)/lscomp
|
||||
|
||||
clean:
|
||||
rm -f *.o tcl2c $(TARGET)/mnm $(TARGET)/lscomp $(TARGET)/imm $(TARGET)/immserv
|
||||
|
||||
tcl2c: tcl2c.c
|
||||
$(CC) $(CFLAGS) tcl2c.c $(LIBS) -o tcl2c
|
||||
|
||||
imm_init.c: tcl2c imm_def.tcl mcl.tcl Radio.tcl Listbox.tcl viewbox.tcl filebox.tcl mkHostname.tcl
|
||||
./tcl2c IMM_Init < imm_def.tcl > imm_init.c
|
||||
./tcl2c MCL < mcl.tcl >> imm_init.c
|
||||
./tcl2c RADIO < Radio.tcl >> imm_init.c
|
||||
./tcl2c LISTBOX < Listbox.tcl >> imm_init.c
|
||||
./tcl2c VIEWBOX < viewbox.tcl >> imm_init.c
|
||||
./tcl2c FILEBOX < filebox.tcl >> imm_init.c
|
||||
./tcl2c HOSTBOX < mkHostname.tcl >> imm_init.c
|
||||
./tcl2c SERVERBOX < mnmserv.tcl >> imm_init.c
|
||||
|
||||
imm_init.o: imm_init.c
|
||||
|
||||
main.o: main.c
|
||||
|
||||
mcl.o: mcl.c
|
||||
|
||||
imm.o: mcl.c
|
||||
gcc $(CFLAGS) -DIMM $(INCLUDE_DIR) -c mcl.c -o imm.o
|
||||
|
||||
xlopen_imm.o: xlopen.c
|
||||
gcc $(CFLAGS) -DIMM $(INCLUDE_DIR) -c xlopen.c -o xlopen_imm.o
|
||||
|
||||
tkAppInit.o: tkAppInit.c
|
||||
gcc $(CFLAGS) $(INCLUDE_DIR) tkAppInit.c -c
|
||||
|
||||
protocol.o: protocol.c
|
||||
|
||||
utils.o: utils.c
|
||||
|
||||
lscomp.o: lscomp.c
|
||||
|
||||
sorttree.o: sorttree.c immserv.h
|
||||
|
||||
immserv.o: immserv.c immserv.h
|
||||
|
2
mbone/imm/files/Makefile.work
Normal file
2
mbone/imm/files/Makefile.work
Normal file
@ -0,0 +1,2 @@
|
||||
all install:
|
||||
cd src; ${MAKE} -f Makefile.openbsd $@
|
1
mbone/imm/files/md5
Normal file
1
mbone/imm/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (imm.source.tar.Z) = bf2713e5dca81daaecbc0bbcaf7af667
|
11
mbone/imm/patches/patch-aa
Normal file
11
mbone/imm/patches/patch-aa
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/mcl.c.orig Tue Nov 19 12:33:49 1996
|
||||
+++ src/mcl.c Tue Nov 19 12:34:23 1996
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#define MAIN
|
||||
#include "protocol.h"
|
||||
-#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
11
mbone/imm/patches/patch-ab
Normal file
11
mbone/imm/patches/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/xlopen.c.orig Tue Nov 19 12:33:53 1996
|
||||
+++ src/xlopen.c Tue Nov 19 12:35:01 1996
|
||||
@@ -34,7 +34,7 @@
|
||||
extern int optind, opterr;
|
||||
extern int useimageloader;
|
||||
extern struct hosttype *hosts_tail;
|
||||
-#ifndef __NetBSD__
|
||||
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) /* XXX */
|
||||
extern char *sys_errlist[];
|
||||
#endif
|
||||
extern unsigned int total;
|
11
mbone/imm/patches/patch-ac
Normal file
11
mbone/imm/patches/patch-ac
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/immserv.c.orig Tue Nov 19 12:36:41 1996
|
||||
+++ src/immserv.c Tue Nov 19 12:37:32 1996
|
||||
@@ -1407,7 +1407,7 @@
|
||||
/******************************************************************************/
|
||||
void setackalarm(int nop) {}
|
||||
/******************************************************************************/
|
||||
-#ifndef __NetBSD__
|
||||
+#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) /* XXX */
|
||||
/* routine to put process to sleep */
|
||||
int usleep( wait)
|
||||
u_int wait;
|
1
mbone/imm/pkg/COMMENT
Normal file
1
mbone/imm/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Internet Image(or other data) Multicaster (and receiver).
|
10
mbone/imm/pkg/DESCR
Normal file
10
mbone/imm/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
IMM has been designed to efficiently replicate files/file directories
|
||||
using a reliable dissemination protocol framework and provide archiving
|
||||
and post processing features. The default mode of operation is for imm
|
||||
to receive and display compressed imagery files (e.g., jpg,gif) using
|
||||
xv or xloadimage as a post processor.
|
||||
|
||||
This release includes an sdr plug-in, named sdr2.plugin.S53.image.imm,
|
||||
which must be installed to participate in MBone alpha testing of imm sessions.
|
||||
Usually in a directory called ~home/.sdr/plugins to be found by sdr.
|
||||
See the sdr help pages for information on installing plugins.
|
6
mbone/imm/pkg/PLIST
Normal file
6
mbone/imm/pkg/PLIST
Normal file
@ -0,0 +1,6 @@
|
||||
bin/imm
|
||||
bin/immserv
|
||||
bin/lscomp
|
||||
share/doc/imm/README
|
||||
share/doc/imm/imm_readme.txt
|
||||
share/doc/imm/sdr2.plugin.S53.image.imm
|
Loading…
x
Reference in New Issue
Block a user