openbsd-ports/graphics/ffmpeg/patches/patch-Makefile
naddy d17cf576bc - update ffmpeg to snapshot 20050130
- remove inter-library dependencies
- chase fallout in dependent ports

From: Jacob Meuser <jakemsr@jakemsr.com>
2005-02-09 23:41:42 +00:00

34 lines
925 B
Plaintext

$OpenBSD: patch-Makefile,v 1.4 2005/02/09 23:41:42 naddy Exp $
--- Makefile.orig Fri Jan 21 14:16:04 2005
+++ Makefile Sun Jan 30 18:49:14 2005
@@ -7,7 +7,7 @@ include config.mak
VPATH=$(SRC_PATH)
CFLAGS=$(OPTFLAGS) -I. -I$(SRC_PATH) -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavformat -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
-LDFLAGS+= -g
+#LDFLAGS+= -g
ifeq ($(TARGET_GPROF),yes)
CFLAGS+=-p
@@ -38,13 +38,18 @@ ifeq ($(BUILD_SHARED),yes)
DEP_LIBS=libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(SLIBPREF)avformat$(SLIBSUF)
else
DEP_LIBS=libavcodec/$(LIBPREF)avcodec$(LIBSUF) libavformat/$(LIBPREF)avformat$(LIBSUF)
+endif
+
+ifeq ($(CONFIG_AC3),yes)
+EXTRALIBS+=-la52
+endif
+
ifeq ($(CONFIG_MP3LAME),yes)
EXTRALIBS+=-lmp3lame
endif
-endif
ifeq ($(CONFIG_VORBIS),yes)
-EXTRALIBS+=-lvorbis -lvorbisenc -logg
+EXTRALIBS+=-lvorbisenc -lvorbis -logg
endif
ifeq ($(CONFIG_FAAD),yes)