1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/graphics/xmfract/files/patch-ae
Steve Price 2db05006fe Support PREFIX properly. Also split patches one file per.
PR:		21036
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-09-05 01:09:25 +00:00

17 lines
494 B
Plaintext

--- src/cmdfile.c.orig Wed Jun 21 00:46:57 1995
+++ src/cmdfile.c Thu Aug 10 22:13:02 2000
@@ -382,9 +382,11 @@
*/
tempstr = getenv("XMFRACTDIR");
if(tempstr == NULL) tempstr = getenv("FRACTDIR");
- if(tempstr != NULL)
+ if(tempstr != NULL) {
sprintf(fractdir, "%s", tempstr);
-
+ } else {
+ sprintf(fractdir, XMFLACT_LIBDIR);
+ }
if(((ret = stat(fractdir, &st)) == -1) ||
((st.st_mode & S_IFMT) != S_IFDIR))
{