ports/graphics/jhead/patches/patch-makefile

35 lines
839 B
Plaintext

--- makefile.orig.port Tue Jun 6 18:08:43 2023
+++ makefile Thu Jun 8 08:32:56 2023
@@ -5,27 +5,15 @@
BINDIR=$(PREFIX)/bin
DOCDIR=$(PREFIX)/share/doc/jhead
MANDIR=$(PREFIX)/share/man/man1
-OBJ=obj
+OBJ=.
SRC=.
-DPKG_BUILDFLAGS := $(shell command -v dpkg-buildflags 2> /dev/null)
-ifdef DPKG_BUILDFLAGS
-CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
-LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
-endif
+CFLAGS:=$(CFLAGS) -Wall
+LDFLAGS:=$(LDFLAGS)
-# To enable electric fence, set ELECTRIC_FENCE=1
-ifeq ($(ELECTRIC_FENCE),1)
-CFLAGS += -fsanitize=address
-LDFLAGS += -fsanitize=address
-endif
-
-all: objdir jhead
-
docs = $(SRC)/usage.html
-objdir:
- @mkdir -p obj
+all: jhead
objs = $(OBJ)/jhead.o $(OBJ)/jpgfile.o $(OBJ)/jpgqguess.o $(OBJ)/paths.o \
$(OBJ)/exif.o $(OBJ)/iptc.o $(OBJ)/gpsinfo.o $(OBJ)/makernote.o