sample code at https://people.eecs.berkeley.edu/~bh/logo-sample.html behaves a bit strangely but it's the same with the in-tree version but simple tests with pen control/movement work as well as before. (the distfile for 5.5 is no longer available upstream, port had no MASTER_SITES line so was using implicit default of MASTER_SITE_OPENBSD)
27 lines
765 B
Plaintext
27 lines
765 B
Plaintext
$OpenBSD: patch-init_c,v 1.2 2018/12/21 15:00:42 sthen Exp $
|
|
Index: init.c
|
|
--- init.c.orig
|
|
+++ init.c
|
|
@@ -541,8 +541,8 @@ void init(void) {
|
|
csls = sugarcsls;
|
|
} else {
|
|
nosugar:
|
|
- logolib = getenv("LOGOLIB");
|
|
- helpfiles = getenv("LOGOHELP");
|
|
+ logolib = "${PREFIX}/share/ucblogo";
|
|
+ helpfiles = "${PREFIX}/share/ucblogo/helpfiles";
|
|
csls = getenv("CSLS");
|
|
}
|
|
editor = getenv("EDITOR");
|
|
@@ -756,8 +756,8 @@ nosugar:
|
|
the_generation = cons(NIL, NIL);
|
|
Not_Enough_Node = cons(NIL, NIL);
|
|
|
|
- sprintf(linebuf,"%s%sMessages", logolib, separator);
|
|
- fp = fopen("Messages", "r");
|
|
+ sprintf(linebuf,"%s%smessages", logolib, separator);
|
|
+ fp = fopen("messages", "r");
|
|
if (fp == NULL)
|
|
fp = fopen(linebuf, "r");
|
|
if (fp == NULL)
|