pkgsrc/graphics/libv4l/patches/patch-ah
joerg 26bb28fb63 Allow building libv4l on older NetBSD systems by providing videoio.h.
Don't override user CFLAGS.
Bump revision.
2008-09-17 14:04:54 +00:00

23 lines
842 B
Text

$NetBSD: patch-ah,v 1.2 2008/09/17 14:04:54 joerg Exp $
--- libv4l2/Makefile.orig 2008-08-26 14:32:39.000000000 +0200
+++ libv4l2/Makefile
@@ -1,8 +1,6 @@
override CPPFLAGS += -I../include -I../../../../linux/include -fvisibility=hidden
-CFLAGS := -g -O1
-CFLAGS += -Wall -Wno-unused -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes
-
+LDFLAGS = -Wl,-R$(LIBDIR)
LIBS = -lpthread
V4L2_OBJS = libv4l2.o log.o
@@ -46,7 +44,7 @@ libv4l2.pc:
@echo 'Description: v4l2 device access library' >> libv4l2.pc
@echo 'Version: '$(V4L2_LIB_VERSION) >> libv4l2.pc
@echo 'Requires: libv4lconvert' >> libv4l2.pc
- @echo 'Libs: -L$${libdir} -lv4l2' >> libv4l2.pc
+ @echo 'Libs: -L$${libdir} -Wl,-R$${libdir} -lv4l2' >> libv4l2.pc
@echo 'Libs.private: -lpthread' >> libv4l2.pc
@echo 'Cflags: -I$${prefix}/include' >> libv4l2.pc