Skip to content

Commit 6cb4b02

Browse files
authored
Fix CUPS_VERSION_MAJOR typo and add CUPS_CFLAGS to tests and pkg-config (#158)
1 parent b357d05 commit 6cb4b02

3 files changed

Lines changed: 17 additions & 5 deletions

File tree

Makefile.am

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,17 @@ testcmyk_SOURCES = \
246246
testcmyk_LDADD = \
247247
libcupsfilters.la \
248248
-lm
249+
testcmyk_CFLAGS = \
250+
$(CUPS_CFLAGS)
249251

250252
testdither_SOURCES = \
251253
cupsfilters/testdither.c \
252254
$(pkgfiltersinclude_DATA)
253255
testdither_LDADD = \
254256
libcupsfilters.la \
255257
-lm
258+
testdither_CFLAGS = \
259+
$(CUPS_CFLAGS)
256260

257261
testimage_SOURCES = \
258262
cupsfilters/testimage.c \
@@ -266,14 +270,17 @@ testimage_LDADD = \
266270
testimage_CFLAGS = \
267271
$(LIBJPEG_CFLAGS) \
268272
$(LIBPNG_CFLAGS) \
269-
$(TIFF_CFLAGS)
273+
$(TIFF_CFLAGS) \
274+
$(CUPS_CFLAGS)
270275

271276
testrgb_SOURCES = \
272277
cupsfilters/testrgb.c \
273278
$(pkgfiltersinclude_DATA)
274279
testrgb_LDADD = \
275280
libcupsfilters.la \
276281
-lm
282+
testrgb_CFLAGS = \
283+
$(CUPS_CFLAGS)
277284

278285
test1284_SOURCES = \
279286
cupsfilters/test1284.c
@@ -289,7 +296,8 @@ testpdf1_SOURCES = \
289296
cupsfilters/fontembed-private.h
290297
testpdf1_CFLAGS = \
291298
-I$(srcdir)/cupsfilters/fontembed/ \
292-
-I$(srcdir)/cupsfilters/
299+
-I$(srcdir)/cupsfilters/ \
300+
$(CUPS_CFLAGS)
293301
testpdf1_LDADD = \
294302
libcupsfilters.la
295303

@@ -298,18 +306,22 @@ testpdf2_SOURCES = \
298306
cupsfilters/fontembed-private.h
299307
testpdf2_CFLAGS = \
300308
-I$(srcdir)/cupsfilters/fontembed/ \
301-
-I$(srcdir)/cupsfilters/
309+
-I$(srcdir)/cupsfilters/ \
310+
$(CUPS_CFLAGS)
302311
testpdf2_LDADD = \
303312
libcupsfilters.la
304313

305314
test_analyze_SOURCES = cupsfilters/fontembed/test-analyze.c
306315
test_analyze_LDADD = libcupsfilters.la
316+
test_analyze_CFLAGS = $(CUPS_CFLAGS)
307317

308318
test_pdf_SOURCES = cupsfilters/fontembed/test-pdf.c
309319
test_pdf_LDADD = libcupsfilters.la
320+
test_pdf_CFLAGS = $(CUPS_CFLAGS)
310321

311322
test_ps_SOURCES = cupsfilters/fontembed/test-ps.c
312323
test_ps_LDADD = libcupsfilters.la
324+
test_ps_CFLAGS = $(CUPS_CFLAGS)
313325

314326
testfilters_SOURCES = \
315327
cupsfilters/testfilters.c \

cupsfilters/testfilters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <string.h>
1010
#include <sys/stat.h>
1111

12-
# if CUPS_VERISON_MAJOR < 3 /* CUPS 2.x and older */
12+
# if CUPS_VERSION_MAJOR < 3 /* CUPS 2.x and older */
1313
/* Functions changed in libcups3 */
1414
# define cupsArrayGetCount cupsArrayCount
1515
# define cupsArrayGetFirst cupsArrayFirst

libcupsfilters.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Version: @VERSION@
99
1010
Libs: -L${libdir} -lcupsfilters
1111
Libs.private: @CUPS_LIBS@ @LIBJPEG_LIBS@ @LIBPNG_LIBS@ @LIBTIFF_LIBS@ @LIBPDFIO_LIBS@
12-
Cflags: -I${includedir}/cupsfilters -I${includedir}
12+
Cflags: -I${includedir}/cupsfilters -I${includedir} @CUPS_CFLAGS@

0 commit comments

Comments
 (0)