Skip to content

Commit e2634aa

Browse files
author
menno
committed
even more more Final changes for version 2.0
1 parent bafbfab commit e2634aa

File tree

4 files changed

+48
-32
lines changed

4 files changed

+48
-32
lines changed

Makefile.am

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
SUBDIRS = libfaad common frontend plugins
22

33
EXTRA_DIST = faad2.spec
4+
5+
rpm: Makefile
6+
make dist
7+
$(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
8+
rm $(PACKAGE)-$(VERSION).tar.gz

configure.in

+20-14
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ AC_PROG_CPP
1111
AC_PROG_INSTALL
1212
AC_PROG_LN_S
1313
AC_PROG_MAKE_SET
14+
AC_CHECK_PROGS(RPMBUILD, rpmbuild, rpm)
1415

1516
AM_CONFIG_HEADER(config.h)
1617

@@ -87,23 +88,26 @@ else
8788
fi
8889

8990
if test x$WITHXMMS = xyes; then
90-
AC_MSG_NOTICE(
91-
***
92-
*** the xmms plugin must be build after faad
93-
*** you need to have libfaad and libmp4v2 installed on your system
94-
*** and also xmms installed correctly
95-
*** before the creation of the xmms plugin
96-
97-
*** xmms plugin requires libmp4v2 to be build
98-
*** so libmp4v2 will be build and install
99-
100-
*** after this build install the package and go into plugins/xmms
101-
*** and run configure in this directory
102-
***)
91+
AC_CHECK_PROGS(XMMS_CONFIG, xmms-config,"not_found")
92+
if test "$XMMS_CONFIG" = "not_found"; then
93+
AC_MSG_ERROR("*** xmms-config not found - xmms plugin can't be build")
94+
fi
95+
AC_CHECK_HEADER(pthread.h,,
96+
AC_MSG_ERROR(*** pthread headers support not installed or not found))
97+
AC_CHECK_HEADER(id3.h,,
98+
AC_MSG_ERROR(*** id3lib headers support not installed or not found))
99+
AC_CHECK_PROGS(GTK_CONFIG, gtk-config, "not_found")
100+
if test "$XGTK_CONFIG" = "not_found"; then
101+
AC_MSG_ERROR("*** gtk-config not found - xmms plugin can't be build without")
102+
fi
103+
104+
AM_CONDITIONAL(HAVE_XMMS, true)
105+
AC_MSG_NOTICE("xmms plugin requires libmp4v2 to be build")
103106
AM_CONDITIONAL(WITH_MP4V2, true)
107+
AC_CONFIG_FILES(plugins/xmms/Makefile plugins/xmms/src/Makefile)
104108
else
105109
AC_MSG_NOTICE(no xmms build configured)
106-
# AM_CONDITIONAL(HAVE_XMMS, false)
110+
AM_CONDITIONAL(HAVE_XMMS, false)
107111
fi
108112

109113
if test x$WITHDRM = xyes; then
@@ -115,4 +119,6 @@ AC_CONFIG_FILES(libfaad/Makefile frontend/Makefile common/Makefile plugins/Makef
115119
AC_CONFIG_FILES(plugins/mpeg4ip/Makefile)
116120

117121
AC_CONFIG_FILES(common/mp4ff/Makefile common/mp4v2/Makefile)
122+
123+
AC_CONFIG_FILES(faad2.spec)
118124
AC_OUTPUT

faad2.spec

+14-17
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Summary: C library and frontend for decoding MPEG2/4 AAC
22
Name: faad2
3-
Version: 2.0.rc3
3+
Version: @VERSION@
44
Release: 1
55
License: GPL
66
Group: Applications/Multimedia
77
Source0: http://download.sourceforge.net/faad/%{name}-%{version}.tar.gz
88
#Patch: faad2-%{version}.patch
99
BuildRequires: autoconf, automake, libtool, gcc-c++
10-
BuildRequires: xmms-devel, id3lib-devel, gtk+-devel
10+
BuildRequires: xmms-devel, id3lib-devel, gtk-devel
1111
URL: http://www.audiocoding.com/
1212
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
1313
@@ -16,6 +16,9 @@ Packager: [email protected]
1616
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
1717
written from scratch. FAAD 2 is licensed under the GPL.
1818

19+
Includes libmp4ff, a Quicktime library for UNIX in a freely redistributable,
20+
statically linkable library.
21+
1922
%package devel
2023
Summary: Development libraries the FAAD 2 AAC decoder.
2124
Group: Development/Libraries
@@ -27,7 +30,7 @@ Header files and development documentation for libfaad.
2730
%package xmms
2831
Group: Applications/Multimedia
2932
Summary: AAC and MP4 input plugin for xmms
30-
Requires: %{name}, %{name}-libmp4ff, xmms, id3lib
33+
Requires: %{name}, %{name}-libmp4v2, xmms, id3lib
3134

3235

3336
%description xmms
@@ -45,15 +48,6 @@ Group: Development/Libraries
4548
%description libmp4v2
4649
C++ library to handle MP4 (Quicktime) content
4750

48-
49-
%package libmp4ff
50-
Summary: Library to handle MP4 (Quicktime)
51-
Group: Development/Libraries
52-
53-
%description libmp4ff
54-
This is a Quicktime library for UNIX in a freely redistributable,
55-
statically linkable library.
56-
5751
%prep
5852
#%setup -n %{name}
5953
%setup -n %{name}-%{version}
@@ -81,12 +75,16 @@ rm -rf %{buildroot}
8175
%doc AUTHORS COPYING ChangeLog NEWS README TODO
8276
%{_bindir}/*
8377
%{_libdir}/libfaad.so*
78+
%{_libdir}/libmp4ff.so*
8479

8580
%files devel
8681
%defattr(-, root, root)
8782
%{_libdir}/libfaad.a
8883
%{_libdir}/libfaad.la
84+
%{_libdir}/libmp4ff.a
85+
%{_libdir}/libmp4ff.la
8986
%{_includedir}/faad.h
87+
%{_includedir}/mp4ff.h
9088

9189
%files xmms
9290
%defattr(-,root,root)
@@ -98,13 +96,12 @@ rm -rf %{buildroot}
9896
%{_libdir}/libmp4v2.*
9997
%{_includedir}/mp4.h
10098
%{_includedir}/mpeg4ip.h
101-
102-
%files libmp4ff
103-
%defattr(-, root, root)
104-
%{_libdir}/libmp4ff.*
105-
%{_includedir}/mp4ff.h
99+
%{_includedir}/systems.h
106100

107101
%changelog
102+
* Fri Feb 06 2004 Alexander Kurpiers <[email protected]>
103+
- remove seperate libmp4ff target
104+
108105
* Wed Nov 05 2003 Alexander Kurpiers <[email protected]>
109106
- include xmms plugins/libmp4v2/libmp4ff into RPM
110107

plugins/Makefile.am

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
if HAVE_MPEG4IP
2+
if HAVE_XMMS
3+
SUBDIRS = mpeg4ip xmms
4+
else
25
SUBDIRS = mpeg4ip
6+
endif
37
else
4-
SUBDIRS =
8+
if HAVE_XMMS
9+
SUBDIRS = xmms
10+
else
11+
SUBDIRS =
12+
endif
513
endif

0 commit comments

Comments
 (0)