freebsd-ports/biology/seaview/files/patch-Makefile
2010-03-23 21:14:39 +00:00

25 lines
848 B
Text

--- Makefile.orig 2010-01-08 13:42:25.000000000 +0100
+++ Makefile 2010-01-08 13:42:24.000000000 +0100
@@ -1,18 +1,15 @@
-FLTK = ../fltk
-PDF = ../PDFlib-Lite-6.0.1/libs/pdflib
-X11 = /usr/X11R6
CXX = g++
-CFLAGS = -Dunix -U__APPLE__ -c $(OPT) -I$(FLTK) -I$(PDF) -I$(X11)/include
+CFLAGS+= -Dunix -U__APPLE__ -c $(OPT) `fltk-config --cflags`
OBJECTS = seaview.o pdf.o custom.o use_mase_files.o regions.o load_seq.o align.o xfmatpt.o comlines.o chooser_plus.o resource.o nexus.o
seaview : $(OBJECTS)
- $(CXX) -o $@ $(OBJECTS) -L$(FLTK)/lib -lfltk \
- -Xlinker -Bstatic -L$(PDF)/.libs -lpdf -Xlinker -Bdynamic \
- -L$(X11)/lib -lX11 -lm
+ $(CXX) -o $@ $(OBJECTS) `fltk-config --ldflags` \
+ -Xlinker -Bstatic -lpdf -Xlinker -Bdynamic \
+ -L$(LOCALBASE)/lib -lX11 -lm
strip $@