freebsd-ports/ftp/xrmftp/files/patch-aa
FUJISHIMA Satsuki 2dcd6ae221 fix build error caused by xforms change.
PR:		25697
Submitted by:	maintainer
2001-03-12 18:10:32 +00:00

31 lines
1.2 KiB
Plaintext

--- Makefile.orig Tue Nov 17 19:25:43 1998
+++ Makefile Sun Mar 11 05:59:19 2001
@@ -1,17 +1,20 @@
-CC=gcc
-XFORMSLIBPATH=/usr/X11R6/lib # path to xforms library
-XFORMSINCPATH=/usr/X11R6/include # path to xforms header file <forms.h>
-XLIBSPATH=/usr/X11R6/lib # path to standard X libraries
-XINCPATH=/usr/X11R6/include # path to standard X header files
+X11BASE?=/usr/X11R6
+CC ?=gcc
+XFORMSLIBPATH=${X11BASE}/lib # path to xforms library
+XFORMSINCPATH=${X11BASE}/include # path to xforms header file <forms.h>
+XLIBSPATH=${X11BASE}/lib # path to standard X libraries
+XINCPATH=${X11BASE}/include # path to standard X header files
LIBS= -lm -lX11 -lforms # libraries
#EXTRALIBS=-lnsl -lsocket # additional libraries needed by some unices
SRC=xftp.c fd_xftp.c
OBJ=$(SRC:.c=.o)
EXE=xrmftp
-CFLAGS=-I/usr/include -I${XFORMSINCPATH} -I${XINCPATH}
-LDFLAGS=-L/usr/lib -L${XLIBSPATH} ${LIBS} ${EXTRALIBS} -L${XFORMSLIBPATH} -O3
+CFLAGS +=-I/usr/include -I${XFORMSINCPATH} -I${XINCPATH}
+LDFLAGS =-L/usr/lib -L${XLIBSPATH} ${LIBS} ${EXTRALIBS} -L${XFORMSLIBPATH}
#------------------------------------------------------------------------------
+
+all: ${EXE}
${EXE}: ${OBJ}
${CC} ${LDFLAGS} -o ${EXE} ${OBJ}