diff options
author | jylefort <jylefort@FreeBSD.org> | 2005-09-13 01:33:44 +0800 |
---|---|---|
committer | jylefort <jylefort@FreeBSD.org> | 2005-09-13 01:33:44 +0800 |
commit | 861fb475b832a15ad47445119e18e4fc4f39bab7 (patch) | |
tree | cfe90341a60966bd93652f263bc56c646ab78ceb /lang/oorexx | |
parent | c70bb3b1131999d8e5e909c9f6be94aa1ce3441e (diff) | |
download | freebsd-ports-gnome-861fb475b832a15ad47445119e18e4fc4f39bab7.tar.gz freebsd-ports-gnome-861fb475b832a15ad47445119e18e4fc4f39bab7.tar.zst freebsd-ports-gnome-861fb475b832a15ad47445119e18e4fc4f39bab7.zip |
Add oorexx.
Open Object Rexx is a powerful object-oriented scripting language. The
interpreter is almost fully compatible with the original Object Rexx by IBM.
The port is derived from the generic Unix source code, with the idea to add
BSD-specific enhancements over time and also to develop modules that would
allow to run the most of OS/2 Object Rexx code on BSD platforms.
WWW: http://www.oorexx.org/
PR: ports/86005
Submitted by: Micho Durdevich <micho@matem.unam.mx>
Diffstat (limited to 'lang/oorexx')
-rw-r--r-- | lang/oorexx/Makefile | 29 | ||||
-rw-r--r-- | lang/oorexx/distinfo | 2 | ||||
-rw-r--r-- | lang/oorexx/files/patch-Makefile | 67 | ||||
-rw-r--r-- | lang/oorexx/files/patch-obj_rexximg.sh | 14 | ||||
-rw-r--r-- | lang/oorexx/pkg-descr | 10 | ||||
-rw-r--r-- | lang/oorexx/pkg-plist | 53 |
6 files changed, 175 insertions, 0 deletions
diff --git a/lang/oorexx/Makefile b/lang/oorexx/Makefile new file mode 100644 index 000000000000..54c4d961900c --- /dev/null +++ b/lang/oorexx/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: ooRexx +# Date created: 04 Jun 2005 +# Whom: Micho +# +# $FreeBSD$ +# + +PORTNAME= oorexx +PORTVERSION= 3.0.0 +CATEGORIES= lang +MASTER_SITES= http://www.matem.unam.mx/~micho/download/ + +MAINTAINER= micho@matem.unam.mx +COMMENT= A powerful typeless object-oriented scripting language + +CONFLICTS= rexx-regina-[0-9]* + +USE_REINPLACE= yes +INSTALLS_SHLIB= yes +MAKE_ENV= EXAMPLESDIR="${EXAMPLESDIR}" +MAN1= rexx.1 rexxc.1 rxmigrate.1 rxsubcom.1 rxqueue.1 + +post-patch: + @${REINPLACE_CMD} -e 's|-D_REENTRANT|${PTHREAD_CFLAGS}|; \ + s|-pthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e 's|/usr/local/oorexx|${PREFIX}/lib/oorexx|' \ + ${WRKSRC}/rxtests/README + +.include <bsd.port.mk> diff --git a/lang/oorexx/distinfo b/lang/oorexx/distinfo new file mode 100644 index 000000000000..647694b6719f --- /dev/null +++ b/lang/oorexx/distinfo @@ -0,0 +1,2 @@ +MD5 (oorexx-3.0.0.tar.gz) = 1467698724b3e3bdf70a0d4fc92eff93 +SIZE (oorexx-3.0.0.tar.gz) = 1158894 diff --git a/lang/oorexx/files/patch-Makefile b/lang/oorexx/files/patch-Makefile new file mode 100644 index 000000000000..6143cc706f8a --- /dev/null +++ b/lang/oorexx/files/patch-Makefile @@ -0,0 +1,67 @@ +--- Makefile.orig Tue Aug 23 20:06:02 2005 ++++ Makefile Mon Sep 12 19:21:57 2005 +@@ -65,13 +65,13 @@ + samples_dir = $(top_srcdir)/samples + rxtests_dir = $(top_srcdir)/rxtests + +-prefix = /usr/local ++prefix = $(PREFIX) + + mandir = $(prefix)/man/man1 + catdir = $(prefix)/bin + libdir = $(prefix)/lib + bindir = $(prefix)/bin +-appdir = $(prefix)/oorexx ++appdir = $(prefix)/lib/oorexx + + #### + #### OORexx Object Files & Dependencies +@@ -202,10 +202,8 @@ + + + EXTRA_FLAGS = -pthread -shared +-CXX = g++ +-CC = gcc +-CFLAGS = -g -O2 -DNOOPT -DPTHREAD_KERNEL -DSHARED -D_POSIX_THREAD -D_REENTRANT -DHIGHTID -D_GNU_SOURCE -DLINUX -DOPSYS_LINUX +-CXXFLAGS = -g -O2 -DNOOPT -DPTHREAD_KERNEL -DSHARED -D_POSIX_THREAD -D_REENTRANT -DHIGHTID -D_GNU_SOURCE -DLINUX -DOPSYS_LINUX ++CFLAGS += -DNOOPT -DPTHREAD_KERNEL -DSHARED -D_POSIX_THREAD -D_REENTRANT -DHIGHTID -D_GNU_SOURCE -DLINUX -DOPSYS_LINUX ++CXXFLAGS += -DNOOPT -DPTHREAD_KERNEL -DSHARED -D_POSIX_THREAD -D_REENTRANT -DHIGHTID -D_GNU_SOURCE -DLINUX -DOPSYS_LINUX + COMMON_CPPFLAGS = -DORX_VER=$(MAJOR) -DORX_REL=$(MINOR) -DORX_MOD=$(MOD_LVL) -DORX_FIX=0 -DORX_CATDIR=\"$(catdir)\" -DHIGHTID + + DEFS = -DHAVE_CONFIG_H +@@ -1009,25 +1007,25 @@ + @rm -f $(SPROGRAM) + + install: $(PROGRAMS) $(SHARED_LIBRARIES) rexxown +- @install $(SHARED_LIBRARIES) $(libdir) +- @install $(PROGRAMS) $(bindir) +- @hash && ./rexximg.sh +- @install $(SUPFILES) $(bindir) +- @install $(MANPAGES) $(mandir) ++ $(BSD_INSTALL_PROGRAM) $(SHARED_LIBRARIES) $(libdir) ++ $(BSD_INSTALL_PROGRAM) $(PROGRAMS) $(bindir) ++ ./rexximg.sh ++ $(BSD_INSTALL_DATA) $(SUPFILES) $(bindir) ++ $(BSD_INSTALL_MAN) $(MANPAGES) $(mandir) + + rexxown: $(SPROGRAM) $(SLIBRARY) +- @mkdir -p $(appdir)/samples $(appdir)/rxtests ++ mkdir -p $(EXAMPLESDIR) $(appdir)/rxtests + + .for i in $(samples_dir)/*.rex $(samples_dir)/*.cls +- @cp -n $i $(appdir)/samples ++ $(BSD_INSTALL_DATA) $i $(EXAMPLESDIR) + .endfor + + .for i in $(rxtests_dir)/*.rex $(rxtests_dir)/trexx $(rxtests_dir)/README +- @cp -n $i $(appdir)/rxtests ++ $(BSD_INSTALL_DATA) $i $(appdir)/rxtests + .endfor + +- @install $(SPROGRAM) $(appdir)/rxtests +- @install $(SLIBRARY) $(appdir)/rxtests ++ $(BSD_INSTALL_PROGRAM) $(SPROGRAM) $(appdir)/rxtests ++ $(BSD_INSTALL_PROGRAM) $(SLIBRARY) $(appdir)/rxtests + + deinstall: + @cd $(bindir) && rm -f $(PROGRAMS) $(SUPFILES) diff --git a/lang/oorexx/files/patch-obj_rexximg.sh b/lang/oorexx/files/patch-obj_rexximg.sh new file mode 100644 index 000000000000..0de1f43c4ebc --- /dev/null +++ b/lang/oorexx/files/patch-obj_rexximg.sh @@ -0,0 +1,14 @@ +--- obj/rexximg.sh.orig Mon Sep 12 19:14:53 2005 ++++ obj/rexximg.sh Mon Sep 12 19:19:11 2005 +@@ -1,5 +1,11 @@ + #!/bin/sh + ++if [ -z "$LD_LIBRARY_PATH" ]; then ++ export LD_LIBRARY_PATH="." ++else ++ export LD_LIBRARY_PATH=".:$LD_LIBRARY_PATH" ++fi ++ + # This shell script creates the initial OORexx image file + cp ../kernel/RexxClasses/*.orx . + cp ../kernel/bsd/*.orx . diff --git a/lang/oorexx/pkg-descr b/lang/oorexx/pkg-descr new file mode 100644 index 000000000000..ee47f8c02b9e --- /dev/null +++ b/lang/oorexx/pkg-descr @@ -0,0 +1,10 @@ +Open Object Rexx is a powerful object-oriented scripting language. The +interpreter is almost fully compatible with the original Object Rexx by IBM. +The port is derived from the generic Unix source code, with the idea to add +BSD-specific enhancements over time and also to develop modules that would +allow to run the most of OS/2 Object Rexx code on BSD platforms. + +WWW: http://www.oorexx.org/ + +- Micho +micho@matem.unam.mx diff --git a/lang/oorexx/pkg-plist b/lang/oorexx/pkg-plist new file mode 100644 index 000000000000..1ce88f8ac077 --- /dev/null +++ b/lang/oorexx/pkg-plist @@ -0,0 +1,53 @@ +bin/rexx +bin/rexx.cat +bin/rexx.img +bin/rexxc +bin/rxdelipc +bin/rxmigrate +bin/rxqueue +bin/rxsubcom +lib/librexx.so +lib/librexxapi.so +lib/librexxutil.so +lib/librxmath.so +lib/librxregexp.so +lib/librxsock.so +lib/oorexx/rxtests/README +lib/oorexx/rxtests/aspitest1.rex +lib/oorexx/rxtests/aspitest2.rex +lib/oorexx/rxtests/aspitest3.rex +lib/oorexx/rxtests/callrexx1 +lib/oorexx/rxtests/callrexx2 +lib/oorexx/rxtests/del_macro.rex +lib/oorexx/rxtests/example.rex +lib/oorexx/rxtests/librexxasp1.so +lib/oorexx/rxtests/librexxasp2.so +lib/oorexx/rxtests/librexxasp3.so +lib/oorexx/rxtests/load_macro.rex +lib/oorexx/rxtests/macros.rex +lib/oorexx/rxtests/startrx1.rex +lib/oorexx/rxtests/startrx2.rex +lib/oorexx/rxtests/startrx3.rex +lib/oorexx/rxtests/trexx +%%EXAMPLESDIR%%/ccreply.rex +%%EXAMPLESDIR%%/complex.rex +%%EXAMPLESDIR%%/factor.rex +%%EXAMPLESDIR%%/greply.rex +%%EXAMPLESDIR%%/guess.rex +%%EXAMPLESDIR%%/ktguard.rex +%%EXAMPLESDIR%%/makestring.rex +%%EXAMPLESDIR%%/month.rex +%%EXAMPLESDIR%%/pipe.rex +%%EXAMPLESDIR%%/qdate.rex +%%EXAMPLESDIR%%/qtime.rex +%%EXAMPLESDIR%%/rexxcps.rex +%%EXAMPLESDIR%%/rexxtry.rex +%%EXAMPLESDIR%%/rxftp.cls +%%EXAMPLESDIR%%/rxregexp.cls +%%EXAMPLESDIR%%/semcls.rex +%%EXAMPLESDIR%%/stack.rex +%%EXAMPLESDIR%%/usecomp.rex +%%EXAMPLESDIR%%/usepipe.rex +@dirrm lib/oorexx/rxtests +@dirrm lib/oorexx +@dirrm %%EXAMPLESDIR%% |