summaryrefslogtreecommitdiff
path: root/math/lensnns/files/patch-Src-Makefile
blob: a0319e632dc96013bc926ed84a125cd17830dda5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- Src/Makefile.orig	Tue Dec  9 13:13:53 2003
+++ Src/Makefile	Thu May 10 11:20:40 2007
@@ -11,6 +11,14 @@
   INCL=   -I$(TCLDIR)/include
   LIBS=   -L$(TCLDIR)/lib -ltk83 -ltcl83 -lm $(SYSLIB)
 else
+ifeq ($(MACHINE),FREEBSD)
+  O=      ../Obj/$(HOSTTYPE)
+  TCLVER= 8.3
+  TCLDIR= /usr/local/include
+  BINDIR= $(TOP)/Bin/$(HOSTTYPE)
+  INCL=   -I$(TCLDIR)/tcl$(TCLVER)/generic -I$(TCLDIR)/tk$(TCLVER)/generic -I${LOCALBASE}/include
+  LIBS=   -L$(BINDIR) -L/usr/local/lib -L${LOCALBASE}/lib -ltk83 -ltcl83 -lm -lX11 $(SYSLIB)
+else
   O=      ../Obj/$(HOSTTYPE)
   TCLVER= 8.3.4
   TCLDIR= ../TclTk
@@ -24,6 +32,7 @@
     INCL=   -I$(TCLDIR)/tcl$(TCLVER)/generic -I$(TCLDIR)/tk$(TCLVER)/generic
     LIBS=   -L$(BINDIR) -ltk8.3 -ltcl8.3 -lm -lX11 $(SYSLIB)
   endif
+endif
 endif
 EXEC_OBJS= $(O)/main.o $(patsubst %,$(O)/%.o,$(SRCS))
 LIB_OBJS= $(O)/library.o $(patsubst %,$(O)/%.o,$(SRCS))