939dd324c6
ok sthen@
57 lines
2.3 KiB
Plaintext
57 lines
2.3 KiB
Plaintext
$OpenBSD: patch-Makefile,v 1.25 2013/03/13 02:28:11 brad Exp $
|
|
--- Makefile.orig Sun Jan 13 23:53:54 2013
|
|
+++ Makefile Mon Jan 21 11:45:15 2013
|
|
@@ -35,6 +35,7 @@ OS_FEATURE-$(VSSCANF) += osdep/vsscanf.
|
|
# conditional source declarations
|
|
SRCS_AUDIO_INPUT-$(ALSA) += stream/ai_alsa.c
|
|
SRCS_AUDIO_INPUT-$(OSS) += stream/ai_oss.c
|
|
+SRCS_AUDIO_INPUT-$(SNDIO) += stream/ai_sndio.c
|
|
SRCS_COMMON-$(AUDIO_INPUT) += $(SRCS_AUDIO_INPUT-yes)
|
|
SRCS_COMMON-$(BITMAP_FONT) += sub/font_load.c
|
|
SRCS_COMMON-$(CDDA) += stream/stream_cdda.c \
|
|
@@ -565,6 +566,7 @@ SRCS_MPLAYER-$(S3FB) += libvo/vo_s3fb.c
|
|
SRCS_MPLAYER-$(SDL) += libao2/ao_sdl.c libvo/vo_sdl.c libvo/sdl_common.c
|
|
SRCS_MPLAYER-$(SGIAUDIO) += libao2/ao_sgi.c
|
|
SRCS_MPLAYER-$(SUNAUDIO) += libao2/ao_sun.c
|
|
+SRCS_MPLAYER-$(SNDIO) += libao2/ao_sndio.c
|
|
SRCS_MPLAYER-$(SVGA) += libvo/vo_svga.c
|
|
SRCS_MPLAYER-$(TDFXFB) += libvo/vo_tdfxfb.c
|
|
SRCS_MPLAYER-$(TDFXVID) += libvo/vo_tdfx_vid.c
|
|
@@ -628,7 +630,8 @@ SRCS_MPLAYER = command.c \
|
|
libvo/vo_mpegpes.c \
|
|
libvo/vo_null.c \
|
|
sub/spuenc.c \
|
|
- $(SRCS_MPLAYER-yes)
|
|
+ $(SRCS_MPLAYER-yes) \
|
|
+ libao2/ao_rtunes.c
|
|
|
|
|
|
SRCS_MENCODER-$(FAAC) += libmpcodecs/ae_faac.c
|
|
@@ -767,7 +770,7 @@ mencoder$(EXESUF) mplayer$(EXESUF):
|
|
$(CC) -o $@ $^ $(EXTRALIBS)
|
|
|
|
codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
|
|
- $(HOST_CC) -O -DCODECS2HTML -I. -Iffmpeg -o $@ $<
|
|
+ $(HOST_CC) ${CFLAGS} -O -DCODECS2HTML -I. -Iffmpeg -o $@ $<
|
|
|
|
codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
|
|
./$^ > $@
|
|
@@ -855,7 +858,16 @@ loader/%: CFLAGS += -fno-omit-frame-pointer $(CFLAGS_N
|
|
#loader/%: CFLAGS += -Ddbg_printf=__vprintf -DTRACE=__vprintf -DDETAILED_OUT
|
|
loader/win32%: CFLAGS += $(CFLAGS_STACKREALIGN)
|
|
|
|
-mp3lib/decode_i586%: CFLAGS += -fomit-frame-pointer
|
|
+ifdef ARCH_X86_32
|
|
+ifeq (,$(findstring -O,$(CFLAGS)))
|
|
+mp3lib/decode_i586.o: CFLAGS += -O
|
|
+mp3lib/dct64_sse.o: CFLAGS += -O
|
|
+liba52/imdct.o: CFLAGS += -O
|
|
+endif
|
|
+mp3lib/decode_i586.o: CFLAGS += -fomit-frame-pointer
|
|
+mp3lib/dct64_sse.o: CFLAGS += -fomit-frame-pointer
|
|
+liba52/imdct.o: CFLAGS += -fomit-frame-pointer
|
|
+endif
|
|
|
|
stream/stream_dvdnav%: CFLAGS := $(CFLAGS_LIBDVDNAV) $(CFLAGS)
|
|
|