Prepare for xforms update.

This commit is contained in:
Mike Heffner 2002-07-01 06:32:22 +00:00
parent 16a3968791
commit 33b1ee2fb2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62252
3 changed files with 22 additions and 6 deletions

View File

@ -13,7 +13,7 @@ MASTER_SITE_SUBDIR= games/strategy
MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= xforms.0:${PORTSDIR}/x11-toolkits/xforms
LIB_DEPENDS= forms.0:${PORTSDIR}/x11-toolkits/xforms
USE_REINPLACE= yes
USE_X_PREFIX= yes

View File

@ -1,15 +1,18 @@
--- Makefile Tue Dec 30 10:30:25 1997
+++ /home/andy/tmp/wrk/Makefile Mon Mar 23 23:20:18 1998
@@ -1,10 +1,10 @@
--- Makefile.orig Tue Dec 30 05:30:25 1997
+++ Makefile Mon Jul 1 02:25:43 2002
@@ -1,10 +1,13 @@
OBJS = main.o mymath.o mastermind.o guiglobal.o apptogui.o guitoapp.o mainwindowdesign.o
CC = gcc
-CFLAGS = -O2 -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi
+CFLAGS+= -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi -I${X11BASE}/include
+.if exists(${X11BASE}/include/X11/forms.h)
+XFORMSINC=-I${X11BASE}/include/X11
+.endif
+CFLAGS+= -Wall -Wpointer-arith -Wstrict-prototypes -pedantic -ansi -I${X11BASE}/include ${XFORMSINC}
CLIBS = -lm
#GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11 -static
-GRAPHLIBS = -lforms -L/usr/X11R6/lib/ -lX11
+GRAPHLIBS = -lxforms -L${X11BASE}/lib -lX11
+GRAPHLIBS = -lforms -L${X11BASE}/lib -lX11 -lXpm
MF = Makefile
ALLLIBS = $(GRAPHLIBS) $(CLIBS)

View File

@ -0,0 +1,13 @@
--- configure.h.orig Mon Jul 1 02:27:59 2002
+++ configure.h Mon Jul 1 02:27:19 2002
@@ -4,8 +4,10 @@
#define VERSION 0.1
/* some stuff */
+#ifndef TRUE
#define TRUE 1
#define FALSE 0
+#endif
#define BOOLEAN int
/* Don't change this, because it will not work right with the GUI. Sorry! */