ports/graphics/lua-gd/files/patch-Makefile
Alexey Dokuchaev d608f8c716 graphics/lua-gd: the port had been updated and improved (+)
- Update the version 2.0.33r3 (it's not tagged yet, but that's
  what written inside their Makefile) and unrestrict from the
  particular version of Lua (now we need to set PKGNAMEPREFIX)
- Simplify building: drop hand-rolled `do-build' target plus
  associated bits and use upstream routine, slightly adjusted
- Development now happens at GitHub, update MASTER_SITES and
  the WWW line in the port description accordingly
- Convert to option helpers and optimize some target recipes

PR:	253811
2022-07-08 08:22:24 +00:00

18 lines
562 B
Text

--- Makefile.orig 2020-02-23 02:33:20 UTC
+++ Makefile
@@ -44,12 +44,12 @@ OUTFILE=gd.so
LUAPKG=lua5.1
OUTFILE=gd.so
-CFLAGS=-O3 -Wall -fPIC $(OMITFP)
-CFLAGS+=`pkg-config $(LUAPKG) --cflags`
+CFLAGS+=-Wall -fPIC # $(OMITFP)
+CFLAGS+=`pkg-config $(LUAPKG) gdlib --cflags`
CFLAGS+=-DVERSION=\"$(VERSION)\"
GDFEATURES=-DGD_XPM -DGD_JPEG -DGD_FONTCONFIG -DGD_FREETYPE -DGD_PNG -DGD_GIF
-LFLAGS=-shared `pkg-config $(LUAPKG) --libs` -lgd
+LFLAGS=-shared `pkg-config $(LUAPKG) gdlib --libs`
INSTALL_PATH := `pkg-config $(LUAPKG) --variable=INSTALL_CMOD`