package: create debian package with prebuilds

The generated variants include raspi and non-raspi platforms.
This commit is contained in:
Kamil Trzcinski
2023-05-26 14:53:38 +02:00
parent d80d039f3c
commit 69584c07db
17 changed files with 257 additions and 35 deletions

View File

@ -15,6 +15,7 @@ endif
LIBDATACHANNEL_PATH ?= third_party/libdatachannel
USE_HW_H264 ?= 1
USE_FFMPEG ?= $(shell pkg-config libavutil libavformat libavcodec && echo 1)
USE_LIBCAMERA ?= $(shell pkg-config libcamera && echo 1)
USE_RTSP ?= $(shell pkg-config live555 && echo 1)
@ -24,6 +25,10 @@ ifeq (1,$(DEBUG))
CFLAGS += -g
endif
ifeq (1,$(USE_HW_H264))
CFLAGS += -DUSE_HW_H264
endif
ifeq (1,$(USE_FFMPEG))
CFLAGS += -DUSE_FFMPEG
LDLIBS += -lavcodec -lavformat -lavutil
@ -72,7 +77,7 @@ version:
$(CCACHE) $(CXX) $(CFLAGS) -o $@ $(filter-out cmd/%, $^) $(filter $</%, $^) $(LDLIBS)
install: $(TARGET)
install $(TARGET) /usr/local/bin/
install $(TARGET) $(DESTDIR)/usr/local/bin/
clean:
rm -f .depend $(OBJS) $(OBJS:.o=.d) $(HTML_SRC) $(TARGET)