diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/Makefile | 1 | ||||
-rw-r--r-- | lang/wxbasic/Makefile | 39 | ||||
-rw-r--r-- | lang/wxbasic/distinfo | 1 | ||||
-rw-r--r-- | lang/wxbasic/files/patch-makefile.unx | 17 | ||||
-rw-r--r-- | lang/wxbasic/pkg-comment | 1 | ||||
-rw-r--r-- | lang/wxbasic/pkg-descr | 12 | ||||
-rw-r--r-- | lang/wxbasic/pkg-plist | 1 |
7 files changed, 72 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile index b2755287bde7..6c0227893aaf 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -208,6 +208,7 @@ SUBDIR += tinycobol SUBDIR += treecc SUBDIR += wamcc + SUBDIR += wxbasic SUBDIR += xsb SUBDIR += yabasic SUBDIR += yap diff --git a/lang/wxbasic/Makefile b/lang/wxbasic/Makefile new file mode 100644 index 000000000000..b6a2608fb5d8 --- /dev/null +++ b/lang/wxbasic/Makefile @@ -0,0 +1,39 @@ +# ex:ts=8 +# Ports collection makefile for: wxbasic +# Date created: Feb 10, 2002 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= wxbasic +PORTVERSION= 0.52 +CATEGORIES= lang +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= wxsource-${PORTVERSION} + +MAINTAINER= ports@FreeBSD.org + +LIB_DEPENDS= wx_gtk.2:${PORTSDIR}/x11-toolkits/wxgtk + +USE_MESA= yes +NO_WRKSUBDIR= yes +MAKEFILE= makefile.unx +USE_GMAKE= yes +CFLAGS+= ${PTHREAD_CFLAGS} +LIBS+= -lglut -lGL -lGLU -lwx_gtk_gl ${PTHREAD_LIBS} +MAKE_ENV= CXXFLAGS="${CXXFLAGS}" LIBS="${LIBS}" + +post-patch: + @${PERL} -pi -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/core.c + +pre-build: + @(cd ${WRKSRC} ; \ + ${MV} -f wxbasic.y tmp ; ${CAT} tmp | col -b > wxbasic.y ; \ + bison -o y_tab.c wxbasic.y) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/wxbasic ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/lang/wxbasic/distinfo b/lang/wxbasic/distinfo new file mode 100644 index 000000000000..e1317d2e462d --- /dev/null +++ b/lang/wxbasic/distinfo @@ -0,0 +1 @@ +MD5 (wxsource-0.52.tar.gz) = 980a1fdac284357287ffbca041d654b4 diff --git a/lang/wxbasic/files/patch-makefile.unx b/lang/wxbasic/files/patch-makefile.unx new file mode 100644 index 000000000000..507c11140fa5 --- /dev/null +++ b/lang/wxbasic/files/patch-makefile.unx @@ -0,0 +1,17 @@ +--- makefile.unx.orig Tue Jun 4 01:50:21 2002 ++++ makefile.unx Tue Jun 4 01:54:42 2002 +@@ -12,12 +12,12 @@ + .SUFFIXES: .o .cpp
+
+ .cpp.o :
+- $(CXX) -c `wx-config --cxxflags` -o $@ $<
++ $(CXX) ${CFLAGS} -c `wx-config --cxxflags` -o $@ $<
+
+ all: $(PROGRAM)
+
+ $(PROGRAM): $(OBJECTS)
+- $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
++ $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs` ${LIBS}
+
+ clean:
+ rm -f *.o $(PROGRAM)
diff --git a/lang/wxbasic/pkg-comment b/lang/wxbasic/pkg-comment new file mode 100644 index 000000000000..6c249f03aed8 --- /dev/null +++ b/lang/wxbasic/pkg-comment @@ -0,0 +1 @@ +wxBasic Programming Language diff --git a/lang/wxbasic/pkg-descr b/lang/wxbasic/pkg-descr new file mode 100644 index 000000000000..734f235562f7 --- /dev/null +++ b/lang/wxbasic/pkg-descr @@ -0,0 +1,12 @@ +wxBasic is an Basic interpreter that is: + - Free + - Open Source (LGPL) + - Cross-platform (currently Windows and Linux) + +wxBasic can create stand-alone executables by binding together source code +with the interpreter. + +wxBasic is written primarily in C, with some C++ linking it to the wxWindows +library. wxWindows supplies the cross-platform features. + +WWW: http://wxbasic.sourceforge.net/ diff --git a/lang/wxbasic/pkg-plist b/lang/wxbasic/pkg-plist new file mode 100644 index 000000000000..63d7dcad65fb --- /dev/null +++ b/lang/wxbasic/pkg-plist @@ -0,0 +1 @@ +bin/wxbasic |