summaryrefslogtreecommitdiff
path: root/science/medit/files/patch-makefile
blob: 0612fe6b02b809359365e23c92a1832ebfdc6dd3 (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
26
27
--- makefile.orig	Tue Apr 11 13:05:23 2006
+++ makefile	Sun Sep 24 16:43:05 2006
@@ -4,6 +4,7 @@
 default:
 	@echo "Type one of the following:"
 	@echo "  make macosx       for Apple Mac OS X"
+	@echo "  make FreeBSD      for FreeBSD"
 	@echo "  make linux        for Linux on Intel systems"
 	@echo "  make win32        for Windows XP"
 	@echo "  make hpux10       for HP systems with HPUX 10.x w/OpenGL"
@@ -23,6 +24,16 @@
 	"GLUT_LIB = -framework GLUT \
 	            -framework OpenGL -framework Cocoa" \
         "EXEDIR = /Applications/medit.app/Contents/MacOS"
+
+FreeBSD:
+	$(MAKE) $(MFLAGS) -f Makefile.arch \
+        "prog   = medit" \
+        "INCDIR = -I. -I$(WRKSRC)/sources -I$(LOCALBASE)/include" \
+	"XLIBS  = -L$(LOCALBASE)/lib -lXmu -lXext -lX11" \
+        "GL_LIB   = -lGL" \
+	"GLU_LIB  = -lGLU" \
+	"GLUT_LIB = -lglut" \
+        "EXEDIR = $(WRKSRC)/bin/$(ARCH)/$(OSREL)"
 
 linux:
 	$(MAKE) $(MFLAGS) -f Makefile.arch \