summaryrefslogtreecommitdiffstats
path: root/lang/yabasic
diff options
context:
space:
mode:
authormarkp <markp@FreeBSD.org>2001-06-14 07:40:22 +0000
committermarkp <markp@FreeBSD.org>2001-06-14 07:40:22 +0000
commit57a7f24b283e4e2b6ebc0f98bcdb21eeacc0cc90 (patch)
treeccf25dc0eff20b51d9cc6911a6de6b3433f73c03 /lang/yabasic
parentade3e4bc25324918fd6f75e1288472575eeca1ef (diff)
downloadFreeBSD-ports-57a7f24b283e4e2b6ebc0f98bcdb21eeacc0cc90.zip
FreeBSD-ports-57a7f24b283e4e2b6ebc0f98bcdb21eeacc0cc90.tar.gz
Unbreak port. Added manpage, replaced patches with regex, added PORTDOCS.
Maintainer asked to drop maintainership.
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 6d6d566..0295878 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 ee6c7ea..0000000
--- 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 dc5aee9..0000000
--- 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 ba4c831..8c4f681 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
OpenPOWER on IntegriCloud