ports/x11-wm/flwm/files/patch-Makefile
Alexey Dokuchaev 82ab56005f Redo r495116 in a somewhat better way, particularly, do not assume the
location of the header files, ask fltk-config(1) for the proper flags.
This also helps to get rid of overly long line in the port's Makefile.
2019-03-09 10:49:42 +00:00

12 lines
322 B
Text

--- Makefile.orig 2015-12-14 18:44:42 UTC
+++ Makefile
@@ -5,7 +5,8 @@ VERSION = 1.16
CXXFILES = main.C Frame.C Menu.C FrameWindow.C Desktop.C Hotkeys.C
-LIBS = -lfltk
+CPPFLAGS += -DFL_LIBRARY $(shell $(LOCALBASE)/bin/fltk-config --cxxflags)
+LIBS += $(shell $(LOCALBASE)/bin/fltk-config --ldflags)
MANPAGE = 1