$OpenBSD: patch-plugins_aac_Makefile_am,v 1.3 2014/01/29 20:43:26 dcoppa Exp $
--- plugins/aac/Makefile.am.orig	Sat Nov  2 12:05:11 2013
+++ plugins/aac/Makefile.am	Thu Jan 16 08:25:07 2014
@@ -2,10 +2,19 @@ if HAVE_AAC
 aacpath=@top_srcdir@/plugins/aac
 aacdir = $(libdir)/$(PACKAGE)
 pkglib_LTLIBRARIES = aac.la
-aac_la_SOURCES = aac.c aac_parser.c aac_parser.h
-aac_la_LDFLAGS = -module
+aac_la_SOURCES = aac.c aac_parser.c aac_parser.h\
+		../libmp4ff/mp4atom.c\
+		../libmp4ff/mp4ff.c\
+		../libmp4ff/mp4meta.c\
+		../libmp4ff/mp4sample.c\
+		../libmp4ff/mp4tagupdate.c\
+		../libmp4ff/mp4util.c\
+		../libmp4ff/mp4ff.h\
+		../libmp4ff/mp4ffint.h\
+		../libmp4ff/mp4ff_int_types.h
+aac_la_LDFLAGS = -module -avoid-version
 
-aac_la_LIBADD = $(LDADD) $(FAAD2_LIBS) ../libmp4ff/libmp4ff.a
-AM_CFLAGS = $(CFLAGS) -std=c99 -DUSE_MP4FF -DUSE_TAGGING -I@top_srcdir@/plugins/libmp4ff
+aac_la_LIBADD = $(LDADD) $(FAAD2_LIBS)
+AM_CFLAGS = $(CFLAGS) -std=c99 -DUSE_MP4FF -DUSE_TAGGING
 endif
 
