aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2000-10-28 23:52:08 +0800
committerkevlo <kevlo@FreeBSD.org>2000-10-28 23:52:08 +0800
commitc12defbfadd6d322d83865fc846dc5f7c9ded018 (patch)
tree727ed60dfcc49b10c568c2de81f33b13dee2d62b /games
parent3856dc8cf893cf88cfae8ab0d5d704dfcfefd75f (diff)
downloadfreebsd-ports-gnome-c12defbfadd6d322d83865fc846dc5f7c9ded018.tar.gz
freebsd-ports-gnome-c12defbfadd6d322d83865fc846dc5f7c9ded018.tar.zst
freebsd-ports-gnome-c12defbfadd6d322d83865fc846dc5f7c9ded018.zip
Fix Imakefile breakage under XFree86 4.x
PR: 22365 Submitted by: Ports Fury
Diffstat (limited to 'games')
-rw-r--r--games/xoj/Makefile19
-rw-r--r--games/xoj/files/patch-aa20
-rw-r--r--games/xoj/files/patch-ab12
3 files changed, 36 insertions, 15 deletions
diff --git a/games/xoj/Makefile b/games/xoj/Makefile
index a5d80a092986..283cbbc32498 100644
--- a/games/xoj/Makefile
+++ b/games/xoj/Makefile
@@ -5,18 +5,17 @@
# $FreeBSD$
#
-PORTNAME= xoj
-PORTVERSION= 1.0
-CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
+PORTNAME= xoj
+PORTVERSION= 1.0
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= X11/demos
-EXTRACT_SUFX= .tgz
+EXTRACT_SUFX= .tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
-USE_IMAKE= yes
-
-do-install:
- @ ${INSTALL_PROGRAM} ${WRKSRC}/xoj ${PREFIX}/bin
+USE_XPM= yes
+USE_IMAKE= yes
+NO_INSTALL_MANPAGES= yes
.include <bsd.port.mk>
diff --git a/games/xoj/files/patch-aa b/games/xoj/files/patch-aa
index f01259700801..af856b98966a 100644
--- a/games/xoj/files/patch-aa
+++ b/games/xoj/files/patch-aa
@@ -1,6 +1,16 @@
---- xoj.c.orig Tue Jul 26 09:10:19 1994
-+++ xoj.c Sun Dec 19 22:32:12 1999
-@@ -106,7 +106,9 @@
+--- xoj.c.orig Tue Jul 26 23:10:19 1994
++++ xoj.c Fri Oct 13 22:37:45 2000
+@@ -33,7 +33,9 @@
+
+ #include <stdio.h>
+ #include <math.h>
++#ifndef __STDC__
+ #include <malloc.h>
++#endif
+ #include <signal.h>
+ #include <limits.h>
+
+@@ -106,7 +108,9 @@
void UpdateCop();
void DrawCop();
void EraseCop();
@@ -10,7 +20,7 @@
Pixel AllocNamedColor();
void
-@@ -584,6 +586,7 @@
+@@ -584,6 +588,7 @@
/*
* sleep for a number of micro-seconds
*/
@@ -18,7 +28,7 @@
void usleep(usec)
unsigned long usec;
{
-@@ -596,6 +599,7 @@
+@@ -596,6 +601,7 @@
select(0, (void *)0, (void *)0, (void *)0, &t);
#endif
}
diff --git a/games/xoj/files/patch-ab b/games/xoj/files/patch-ab
new file mode 100644
index 000000000000..d8fab9c64ba3
--- /dev/null
+++ b/games/xoj/files/patch-ab
@@ -0,0 +1,12 @@
+--- Imakefile.orig Tue Jul 26 23:10:17 1994
++++ Imakefile Fri Oct 13 22:40:03 2000
+@@ -1,5 +1,8 @@
+ LOCAL_LIBRARIES = XawClientLibs -lm
+ DEPLIBS = XawClientDepLibs
+
+-SimpleProgramTarget(xoj)
++SRCS = xoj.c
++OBJS = xoj.o
++
++ComplexProgramTargetNoMan(xoj)
+