Fixed building avplug plugin on OpenBSD

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5803 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Eukara 2021-01-24 20:54:42 +00:00
parent 2fdb7ab6b3
commit b7050dbd46

View file

@ -18,7 +18,13 @@ PLUG_LDFLAGS_ZLIB=-L../engine/libs/mingw64-libs -lz
endif
PLUG_PREFIX=$(OUT_DIR)/fteplug_
ifeq ($(FTE_TARGET),bsd)
PLUG_LDFLAGS_DL?=-ldl -lc
else
PLUG_LDFLAGS_DL?=-ldl -static-libgcc
endif
PLUG_LDFLAGS?=-L/usr/local/lib -Wl,-R/usr/local/lib -lm
PLUG_LDFLAGS_ZLIB?=-lz
@ -131,9 +137,13 @@ AV_PRE64_BIN=$(AV_VER)-win64-shared/
ifeq ($(findstring win,$(FTE_TARGET)),win)
AV_BASE=$(abspath $(OUT_DIR)/../fte_libav_$(AV_VER))/
else
ifeq ($(FTE_TARGET),bsd)
AV_BASE=/usr/local/include/
else
AV_BASE=/usr/include/ffmpeg/
endif
endif
ifneq ($(AV_BASE),)
AV_DEP=$(AV_BASE)libavformat/avformat.h
@ -143,6 +153,10 @@ else
AV_LDFLAGS=-lavcodec -lavformat -lavutil -lswscale
endif
ifeq ($(FTE_TARGET),bsd)
AV_LDFLAGS+=-lc
endif
AVPLUG_OBJS= avplug/avaudio.c avplug/avencode.c avplug/avdecode.c plugin.c
ifeq ($(FTE_TARGET),win32)