Thu Apr 27 19:54:28 PDT 2000 Michael Jennings <mej@eterm.org>

Made some changes to the build process that should fix things for
	people without shared library dependencies working.


SVN revision: 2570
This commit is contained in:
Michael Jennings 2000-04-28 02:42:26 +00:00
parent 3c8fa7809d
commit afda3ff59a
4 changed files with 59 additions and 52 deletions

View File

@ -3524,3 +3524,9 @@ Tue Apr 25 11:45:15 PDT 2000 Michael Jennings <mej@eterm.org>
Updated per changes to Imlib2 API. Updated per changes to Imlib2 API.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Thu Apr 27 19:54:28 PDT 2000 Michael Jennings <mej@eterm.org>
Made some changes to the build process that should fix things for
people without shared library dependencies working.
-------------------------------------------------------------------------------

View File

@ -1,17 +1,18 @@
%define name @PACKAGE@
%define ver @VERSION@ %define ver @VERSION@
%define rel 4 %define rel 1
%define prefix @prefix@ %define prefix @prefix@
Summary: Enlightened terminal emulator Summary: Enlightened terminal emulator
Name: Eterm Name: %{name}
Version: %{ver} Version: %{ver}
Release: %{rel} Release: %{rel}
Copyright: BSD Copyright: BSD
Group: User Interface/X Group: User Interface/X
Source0: ftp://ftp.eterm.org/pub/Eterm/Eterm-%{ver}.tar.bz2 Source0: ftp://ftp.eterm.org/pub/Eterm/%{name}-%{ver}.tar.gz
Source1: ftp://ftp.eterm.org/pub/Eterm/Eterm-bg-%{ver}.tar.bz2 Source1: ftp://ftp.eterm.org/pub/Eterm/%{name}-bg-%{ver}.tar.gz
URL: http://www.eterm.org/ URL: http://www.eterm.org/
BuildRoot: /var/tmp/Eterm-root BuildRoot: /var/tmp/%{name}-root
Requires: imlib >= 1.9.6 Requires: imlib >= 1.9.6
%description %description
@ -26,15 +27,15 @@ have the Imlib library installed.
%package backgrounds %package backgrounds
Summary: Backgrounds for Eterm Summary: Backgrounds for Eterm
Group: User Interface/X Group: User Interface/X
Requires: Eterm = %{ver} Requires: %{name} = %{ver}
%description backgrounds %description backgrounds
Install this package if you want additional backgrounds for Eterm Install this package if you want additional backgrounds for Eterm
%prep %prep
%setup -q -n Eterm-%{ver} 1 %setup -q -n %{name}-%{ver} 1
%build %build
%configure --with-backspace=bs --with-delete=execute %configure --prefix=%{prefix} --with-backspace=bs --with-delete=execute
make CFLAGS="$RPM_OPT_FLAGS" make CFLAGS="$RPM_OPT_FLAGS"
%install %install
@ -42,21 +43,21 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig/ mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig/
cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/Eterm <<EOF cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/%{name} <<EOF
Eterm name "Eterm" %{name} name "%{name}"
Eterm description "A featureful, themeable X11 terminal emulator." %{name} description "A featureful, themeable X11 terminal emulator."
Eterm exec "Eterm &" %{name} exec "%{name} &"
Eterm group Utilities/Shells %{name} group Utilities/Shells
EOF EOF
chmod 0644 $RPM_BUILD_ROOT/etc/X11/wmconfig/Eterm chmod 0644 $RPM_BUILD_ROOT/etc/X11/wmconfig/%{name}
make prefix=$RPM_BUILD_ROOT%{prefix} install make DESTDIR=$RPM_BUILD_ROOT install
( cd $RPM_BUILD_ROOT ( cd $RPM_BUILD_ROOT
mv .%{prefix}/bin/Eterm .%{prefix}/bin/Eterm-%{ver} mv .%{prefix}/bin/%{name} .%{prefix}/bin/%{name}-%{ver}
cd $RPM_BUILD_ROOT%{prefix}/bin cd $RPM_BUILD_ROOT%{prefix}/bin
ln -sf Eterm-%{ver} Eterm ln -sf %{name}-%{ver} %{name}
cd $RPM_BUILD_ROOT cd $RPM_BUILD_ROOT
chmod +x .%{prefix}/lib/lib*so* ||: chmod +x .%{prefix}/lib/lib*so* ||:
) )
@ -65,7 +66,7 @@ strip -s $RPM_BUILD_ROOT%{prefix}/bin/* || :
gzip $RPM_BUILD_ROOT%{prefix}/man/man1/* gzip $RPM_BUILD_ROOT%{prefix}/man/man1/*
(cd $RPM_BUILD_ROOT%{prefix}/share/Eterm/pix/ ; \ (cd $RPM_BUILD_ROOT%{prefix}/share/%{name}/pix/ ; \
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \ for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
mv $i $i.base ; done) mv $i $i.base ; done)
@ -78,9 +79,9 @@ make -C bg prefix=$RPM_BUILD_ROOT%{prefix} install
echo "%defattr(-,root,root)" > rpm-Eterm-bg-files echo "%defattr(-,root,root)" > rpm-Eterm-bg-files
cat > rpm-Eterm-bg-files <<EOF cat > rpm-Eterm-bg-files <<EOF
%defattr(-,root,root) %defattr(-,root,root)
%{prefix}/share/Eterm/pix/tiled-pixmaps.list %{prefix}/share/%{name}/pix/tiled-pixmaps.list
%{prefix}/share/Eterm/pix/scaled-pixmaps.list %{prefix}/share/%{name}/pix/scaled-pixmaps.list
%{prefix}/share/Eterm/pix/pixmaps.list %{prefix}/share/%{name}/pix/pixmaps.list
EOF EOF
find ./bg/ -type f -not -name '*.list' -not -name 'Makefile*' \ find ./bg/ -type f -not -name '*.list' -not -name 'Makefile*' \
-not -name 'README*' -not -name 014.jpg \ -not -name 'README*' -not -name 014.jpg \
@ -88,25 +89,25 @@ find ./bg/ -type f -not -name '*.list' -not -name 'Makefile*' \
-not -name circuit.jpg -not -name nebula.jpg \ -not -name circuit.jpg -not -name nebula.jpg \
-not -name fourthday.jpg -not -name gaia.jpg \ -not -name fourthday.jpg -not -name gaia.jpg \
-not -name galleon.jpg -not -name night_of_the_dragon.jpg \ -not -name galleon.jpg -not -name night_of_the_dragon.jpg \
| sed "s#^\./bg/[scati]*le#%{prefix}/share/Eterm/pix#g" >> rpm-Eterm-bg-files | sed "s#^\./bg/[scati]*le#%{prefix}/share/%{name}/pix#g" >> rpm-Eterm-bg-files
%post %post
/sbin/ldconfig /sbin/ldconfig
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \ for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
mv -f %{prefix}/share/Eterm/pix/$i.base %{prefix}/share/Eterm/pix/$i ; done mv -f %{prefix}/share/%{name}/pix/$i.base %{prefix}/share/%{name}/pix/$i ; done
%postun %postun
/sbin/ldconfig /sbin/ldconfig
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \ for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
rm -f %{prefix}/share/Eterm/pix/$i* ; done rm -f %{prefix}/share/%{name}/pix/$i* ; done
%pre backgrounds %pre backgrounds
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \ for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
mv -f %{prefix}/share/Eterm/pix/$i %{prefix}/share/Eterm/pix/$i.base ; done mv -f %{prefix}/share/%{name}/pix/$i %{prefix}/share/%{name}/pix/$i.base ; done
%postun backgrounds %postun backgrounds
for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \ for i in tiled-pixmaps.list scaled-pixmaps.list pixmaps.list ; do \
mv -f %{prefix}/share/Eterm/pix/$i.base %{prefix}/share/Eterm/pix/$i ; done mv -f %{prefix}/share/%{name}/pix/$i.base %{prefix}/share/%{name}/pix/$i ; done
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
@ -115,29 +116,29 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-,root,root) %defattr(-,root,root)
%doc doc/Eterm_reference.html doc/Eterm.1.html %doc doc/Eterm_reference.html doc/Eterm.1.html
%doc COPYING README ChangeLog %doc COPYING README ChangeLog
%config(missingok) %{prefix}/share/Eterm/pix/*.list.base %config(missingok) %{prefix}/share/%{name}/pix/*.list.base
/etc/X11/wmconfig/Eterm /etc/X11/wmconfig/%{name}
%{prefix}/bin/* %{prefix}/bin/*
%{prefix}/lib/* %{prefix}/lib/*
%{prefix}/man/man1/* %{prefix}/man/man1/*
%{prefix}/share/Eterm/themes %{prefix}/share/%{name}/themes
%{prefix}/share/Eterm/pix/014.jpg %{prefix}/share/%{name}/pix/014.jpg
%{prefix}/share/Eterm/pix/40.jpg %{prefix}/share/%{name}/pix/40.jpg
%{prefix}/share/Eterm/pix/blackstone.jpg %{prefix}/share/%{name}/pix/blackstone.jpg
%{prefix}/share/Eterm/pix/backwave.jpg %{prefix}/share/%{name}/pix/backwave.jpg
%{prefix}/share/Eterm/pix/circuit.jpg %{prefix}/share/%{name}/pix/circuit.jpg
%{prefix}/share/Eterm/pix/nebula.jpg %{prefix}/share/%{name}/pix/nebula.jpg
%{prefix}/share/Eterm/pix/fourthday.jpg %{prefix}/share/%{name}/pix/fourthday.jpg
%{prefix}/share/Eterm/pix/gaia.jpg %{prefix}/share/%{name}/pix/gaia.jpg
%{prefix}/share/Eterm/pix/galleon.jpg %{prefix}/share/%{name}/pix/galleon.jpg
%{prefix}/share/Eterm/pix/night_of_the_dragon.jpg %{prefix}/share/%{name}/pix/night_of_the_dragon.jpg
%{prefix}/share/Eterm/pix/bar_horizontal_[123].png %{prefix}/share/%{name}/pix/bar_horizontal_[123].png
%{prefix}/share/Eterm/pix/bar_vertical_[123].png %{prefix}/share/%{name}/pix/bar_vertical_[123].png
%{prefix}/share/Eterm/pix/button_arrow_up_[123].png %{prefix}/share/%{name}/pix/button_arrow_up_[123].png
%{prefix}/share/Eterm/pix/button_arrow_down_[123].png %{prefix}/share/%{name}/pix/button_arrow_down_[123].png
%{prefix}/share/Eterm/pix/menu[123].png %{prefix}/share/%{name}/pix/menu[123].png
%dir %{prefix}/share/Eterm %dir %{prefix}/share/%{name}
%dir %{prefix}/share/Eterm/pix %dir %{prefix}/share/%{name}/pix
%files backgrounds -f rpm-Eterm-bg-files %files backgrounds -f rpm-Eterm-bg-files

View File

@ -291,15 +291,15 @@ AC_ARG_WITH(imlib,
USE_IMLIB=1 USE_IMLIB=1
) )
if test $USE_IMLIB -eq 1 ; then if test $USE_IMLIB -eq 1 ; then
AC_CHECK_LIB(m, pow, GRLIBS="-lm", , $SUBLIBS $X_LIBS $GRLIBS)
AC_CHECK_LIB(dl, dlopen, GRLIBS="-ldl $GRLIBS", , $SUBLIBS $X_LIBS $GRLIBS)
AC_CHECK_LIB(ttf, TT_Init_FreeType, GRLIBS="-lttf $GRLIBS", , $SUBLIBS $X_LIBS $GRLIBS)
AC_CHECK_LIB(Imlib2, imlib_create_image, AC_CHECK_LIB(Imlib2, imlib_create_image,
GRLIBS="-lImlib2" GRLIBS="-lImlib2 $GRLIBS"
AC_CHECK_LIB(ttf, TT_Init_FreeType, GRLIBS="$GRLIBS -lttf", , $SUBLIBS $X_LIBS)
AC_CHECK_LIB(dl, dlopen, GRLIBS="$GRLIBS -ldl", , $SUBLIBS $X_LIBS)
AC_CHECK_LIB(m, pow, GRLIBS="$GRLIBS -lm", , $SUBLIBS $X_LIBS)
AC_DEFINE(PIXMAP_SUPPORT) AC_DEFINE(PIXMAP_SUPPORT)
AC_DEFINE(BACKING_STORE) AC_DEFINE(BACKING_STORE)
, ,
, $SUBLIBS $X_LIBS) , $SUBLIBS $X_LIBS $GRLIBS)
fi fi

View File

@ -20,4 +20,4 @@ Eterm_DEPENDENCIES = libEterm.la
Eterm_LDFLAGS = -rpath $(libdir):$(pkglibdir) Eterm_LDFLAGS = -rpath $(libdir):$(pkglibdir)
INCLUDES = -I. -I$(top_srcdir) -I$(top_srcdir)/libmej -I.. -I$(includedir) -I$(prefix)/include $(X_CFLAGS) INCLUDES = -I. -I$(top_srcdir) -I$(top_srcdir)/libmej -I.. -I$(includedir) -I$(prefix)/include $(X_CFLAGS)
LDADD = libEterm.la $(top_builddir)/libmej/libmej.la -L$(libdir) -L$(prefix)/lib $(LIBS) $(GRLIBS) $(X_LIBS) LDADD = libEterm.la $(top_builddir)/libmej/libmej.la -L$(libdir) -L$(prefix)/lib $(X_LIBS) $(GRLIBS) $(LIBS)