File: 020-build-use-system-libzopfli-dev-package.patch

package info (click to toggle)
apngasm 2.91-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,760 kB
  • sloc: ansic: 34,259; cpp: 7,258; makefile: 40
file content (25 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (3)
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
Description: use system zopfli library
 In d/control, Build-Depends: + libzopfli-dev
Author: xiao sheng wen <atzlinux@sina.com>
Forwarded: not-needed
Last-Update: 2022-07-05

--- apngasm-2.91.orig/Makefile
+++ apngasm-2.91/Makefile
@@ -1,13 +1,15 @@
 PACKAGE    = apngasm
 CC         = gcc
-SRC_DIRS   = . 7z zopfli
+SRC_DIRS   = . 7z
 CFLAGS     = -Wall -pedantic -DFEATURE_7ZIP -DFEATURE_ZOPFLI -g -fstack-protector-strong
 LDFLAGS    = -Wl,-z,relro -Wl,-z,now
 CFLAGS_OPT = -O2
 CFLAGS_7Z  = -Wno-sign-compare -Wno-reorder -Wno-maybe-uninitialized -Wno-parentheses
 LIBS       = -lstdc++ -lm -lpng -lz
+LIBS       += -lzopfli
 
 INCUDE_DIRS := $(addprefix -I./, $(SRC_DIRS))
+INCUDE_DIRS += -Izopfli
 OBJ_DIRS := $(addprefix obj/, $(SRC_DIRS))
 OBJECTS := $(addprefix obj/, $(wildcard $(addsuffix /*.c*, $(SRC_DIRS))))
 OBJECTS := $(OBJECTS:.c=.o)