aboutsummaryrefslogtreecommitdiff
path: root/lang/yabasic
diff options
context:
space:
mode:
authorMark Pulford <markp@FreeBSD.org>2001-06-14 07:40:22 +0000
committerMark Pulford <markp@FreeBSD.org>2001-06-14 07:40:22 +0000
commit3a26ce1394c0358c066a93e5d32e1f00e372afb8 (patch)
tree033c30dee3cd2760bfdd50a6259618f8081a9302 /lang/yabasic
parenta010a20ed116dfdb50aafbde548e25c3cc048b63 (diff)
downloadports-3a26ce1394c0358c066a93e5d32e1f00e372afb8.tar.gz
ports-3a26ce1394c0358c066a93e5d32e1f00e372afb8.zip
Notes
Diffstat (limited to 'lang/yabasic')
-rw-r--r--lang/yabasic/Makefile17
-rw-r--r--lang/yabasic/files/patch-aa27
-rw-r--r--lang/yabasic/files/patch-ab11
-rw-r--r--lang/yabasic/pkg-plist4
4 files changed, 16 insertions, 43 deletions
diff --git a/lang/yabasic/Makefile b/lang/yabasic/Makefile
index 6d6d56609e73..02958782b3d0 100644
--- a/lang/yabasic/Makefile
+++ b/lang/yabasic/Makefile
@@ -10,12 +10,23 @@ PORTVERSION= 2.681
CATEGORIES= lang
MASTER_SITES= http://www.yabasic.de/download/
-MAINTAINER= elwood@mc5sys.in-berlin.de
-
-BROKEN= "Patches fail to apply; needs to be updated to new version"
+MAINTAINER= ports@FreeBSD.org
USE_BISON= yes
USE_XLIB= yes
GNU_CONFIGURE= yes
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${X11BASE}/include"
+MAN1= yabasic.1
+
+post-patch:
+ ${PERL} -pi -e "s|<malloc.h>|<stdlib.h>|g" ${WRKSRC}/bison.c
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/yabasic ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/yabasic.1 ${MANPREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/yabasic
+ ${INSTALL_DATA} ${WRKSRC}/yabasic.htm ${PREFIX}/share/doc/yabasic
+.endif
.include <bsd.port.mk>
diff --git a/lang/yabasic/files/patch-aa b/lang/yabasic/files/patch-aa
deleted file mode 100644
index ee6c7ea0750f..000000000000
--- a/lang/yabasic/files/patch-aa
+++ /dev/null
@@ -1,27 +0,0 @@
---- Makefile.in.orig Fri Dec 31 07:47:00 1999
-+++ Makefile.in Sun Jan 2 21:44:26 2000
-@@ -6,10 +6,10 @@
- # including flex and yacc translations.
-
- # define location where yabasic will search for libraries
--library_path = /usr/lib/yabasic
-+library_path = $(PREFIX)/lib/yabasic
-
- # flags for cc or gcc (-g for debugging)
--ccflags = -DUNIX -DLIBRARY_PATH=\"$(library_path)\"
-+ccflags = -DUNIX -DLIBRARY_PATH=\"$(library_path)\" $(CFLAGS)
-
- yab: main.o graphic.o function.o symbol.o io.o bison.o flex.o
- @CC@ @CCOPTIONS@ $(ccflags) @X_CFLAGS@ \
-@@ -63,8 +63,8 @@
-
- # install yabasic on a linux system, need to be root
- install:
-- install -s -m 755 -o 0 -g 0 yabasic /usr/bin/yabasic
-- install -m 644 -d -o 0 -g 0 /usr/doc/yabasic
-- install -m 644 -o 0 -g 0 yabasic.htm /usr/doc/yabasic
-+ install -c -s -m 755 -o 0 -g 0 yabasic $(PREFIX)/bin/yabasic
-+ install -m 644 -d -o 0 -g 0 $(PREFIX)/share/doc/yabasic
-+ install -c -m 644 -o 0 -g 0 yabasic.htm $(PREFIX)/share/doc/yabasic
-
-
diff --git a/lang/yabasic/files/patch-ab b/lang/yabasic/files/patch-ab
deleted file mode 100644
index dc5aee944146..000000000000
--- a/lang/yabasic/files/patch-ab
+++ /dev/null
@@ -1,11 +0,0 @@
---- yabasic.bison.orig Sun Nov 7 15:22:19 1999
-+++ yabasic.bison Fri Dec 24 13:48:57 1999
-@@ -24,7 +24,7 @@
- #include "yabasic.h" /* definitions of yabasic */
- #endif
-
--#include <malloc.h>
-+#include <stdlib.h>
-
- #if HAVE_ALLOCA_H
- #include <alloca.h>
diff --git a/lang/yabasic/pkg-plist b/lang/yabasic/pkg-plist
index ba4c83153542..8c4f6819efc2 100644
--- a/lang/yabasic/pkg-plist
+++ b/lang/yabasic/pkg-plist
@@ -1,3 +1,3 @@
bin/yabasic
-share/doc/yabasic/yabasic.htm
-@dirrm share/doc/yabasic
+%%PORTDOCS%%share/doc/yabasic/yabasic.htm
+%%PORTDOCS%%@dirrm share/doc/yabasic