I recently got it to build ok on b95, it wasn't exactly trivial though and 
you're going to need to get your hands dirty.

Here's the spec file i wrote for libdvdread, may be helpful

#
# spec file for package SFElibdvdread
#
# includes module(s): libdvdread
# http://freshmeat.net/redir/libdvdread/17926/url_tgz/libdvdread-0.9.7.tar.gz
%include Solaris.inc

Name:                    SFElibdvdread
Summary:                 libdvdread  - a dvd reading library
Version:                 0.9.7
%define tarball_version  0.9.7
Source:                  
http://freshmeat.net/redir/libdvdread/17926/url_tgz/libdvdread-0.9.7.tar.gz
SUNW_BaseDir:            %{_basedir}
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc

%package devel
Summary:                 %{summary} - development files
SUNW_BaseDir:            %{_basedir}
%include default-depend.inc
Requires: %name

%prep
%setup -q -n libdvdread-%tarball_version

%build
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
if test "x$CPUS" = "x" -o $CPUS = 0; then
    CPUS=1
fi
export CFLAGS="%optflags"
export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
export MSGFMT="/usr/bin/msgfmt"

%define fp_arch  default
%ifarch sparc
%define fp_arch sparc
%endif

%ifarch i386
%define fp_arch intel
%endif

%ifarch amd64
%define fp_arch 64bit
%endif

%if %cc_is_gcc
%define fpm_option --enable-fpm
%else
# asm stuff breaks with sun studio :(
%define fpm_option --disable-fpm
%endif

./configure --prefix=%{_prefix} --mandir=%{_mandir} \
            --libdir=%{_libdir}              \
            --libexecdir=%{_libexecdir}      \
            --sysconfdir=%{_sysconfdir}      \
            --enable-fpm=%{fp_arch}          \
            --enable-shared                  \
            --enable-accuracy                \
            %fpm_option                      \
            --disable-static

make -j$CPUS 

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*.so*

%files devel
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_includedir}
%{_includedir}/*

%changelog
- Created spec - houst0n

I can't remember exactly what issues there were, no showstoppers though.

Good luck!
 
 
This message posted from opensolaris.org

Reply via email to