summaryrefslogtreecommitdiff
path: root/lang/rexx-imc/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'lang/rexx-imc/patches/patch-aa')
-rw-r--r--lang/rexx-imc/patches/patch-aa74
1 files changed, 74 insertions, 0 deletions
diff --git a/lang/rexx-imc/patches/patch-aa b/lang/rexx-imc/patches/patch-aa
new file mode 100644
index 00000000000..e1e5f3b409b
--- /dev/null
+++ b/lang/rexx-imc/patches/patch-aa
@@ -0,0 +1,74 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/09/02 16:43:03 agc Exp $
+
+BSD-style Makefile (with libtool support)
+
+--- /dev/null Mon Sep 2 13:50:52 2002
++++ Makefile Mon Sep 2 14:01:02 2002
+@@ -0,0 +1,67 @@
++LIBTOOL= libtool
++
++LIBDIR= ${PREFIX}/lib
++
++REXXLIBDIR= ${PREFIX}/lib
++REXXIMC= ${PREFIX}/lib
++
++RXDAY= 25
++RXMONTH= 2
++RXYEAR= 102
++
++DATE = -DDAY=$(RXDAY) -DMONTH=$(RXMONTH) -DYEAR=$(RXYEAR)
++
++CCFLAGS= -DHAS_TTYCOM -D_REQUIRED -DRENAME_UNDELETE -DHAS_GMTOFF
++
++FILEDEFS = -DREXXIMC=\"$(REXXIMC)\" -DREXXLIB=\"$(REXXLIBDIR)\"
++
++LIBFILES = rexx.o rxfn.o calc.o util.o shell.o interface.o globals.o
++
++LIBNAME= librexx.a
++
++
++all: ${LIBNAME} rexx rxque rxstack rxmathfn.rxfn
++
++${LIBNAME}: ${LIBFILES}
++ ${LIBTOOL} --mode=link cc -o ${.TARGET:.a=.la} ${LIBFILES:.o=.lo} -rpath ${PREFIX}/lib -version-info 1:7
++
++rexx: ${LIBNAME} main.o
++ ${LIBTOOL} --mode=link ${CC} main.o ${LIBNAME:.a=.la} -L${LIBDIR} -o rexx
++
++rxque: ${LIBNAME} rxque.o
++ ${LIBTOOL} --mode=link ${CC} rxque.o ${LIBNAME:.a=.la} -L${LIBDIR} -o rxque
++
++rxstack: ${LIBNAME} rxstack.o
++ ${LIBTOOL} --mode=link ${CC} rxstack.o ${LIBNAME:.a=.la} -L${LIBDIR} -o rxstack
++
++rxmathfn.rxfn: rxmathfn.c const.h functions.h
++ ${LIBTOOL} --mode=compile $(CC) $(OPTFLAG) $(CCFLAGS) ${DATE} ${FILEDEFS} -I. -c rxmathfn.c
++ $(LD) -Bshareable -o rxmathfn.rxfn .libs/rxmathfn.o -lm
++
++.c.o:
++ ${LIBTOOL} --mode=compile $(CC) $(OPTFLAG) $(CCFLAGS) ${DATE} ${FILEDEFS} -c $*.c
++
++INSTALL_DATA= install -c -o root -g wheel -m 444
++INSTALL_SCRIPT= install -c -o root -g wheel -m 755
++INSTALL_PROGRAM= ${INSTALL_SCRIPT}
++INSTALL_MAN= ${INSTALL_DATA}
++INSTALL_DATA_DIR= mkdir -p
++
++install: ${LIBNAME} rexx rxque rxstack
++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} rexx ${PREFIX}/bin
++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} rxque ${PREFIX}/bin
++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} rxstack ${PREFIX}/bin
++ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${LIBNAME:.a=.la} ${PREFIX}/lib
++ sed -e 's|@REXXLIBDIR@|${REXXLIBDIR}|g' rexx.1.in > ${PREFIX}/man/man1/rexx.1
++ ${INSTALL_MAN} rxque.1 ${PREFIX}/man/man1
++ ${INSTALL_MAN} rxstack.1 ${PREFIX}/man/man1
++ ${INSTALL_PROGRAM} rxmathfn.rxfn ${PREFIX}/lib
++ ${INSTALL_MAN} rexxsaa.h ${PREFIX}/include
++ ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/rexx-imc
++ for f in rexx.info rexx.ref rexx.summary rexx.tech; do \
++ ${INSTALL_MAN} $$f ${PREFIX}/share/doc/rexx-imc; \
++ done
++ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rexx-imc
++ for f in box rexxcps.rexx rexxtest.rexx rxmathfn.rexx shell.rexx; do \
++ ${INSTALL_SCRIPT} $$f ${PREFIX}/share/examples/rexx-imc;\
++ done