From 9bef5896cf6285abc1fd84f0ab218473b8c31456 Mon Sep 17 00:00:00 2001 From: mezz Date: Tue, 17 Aug 2004 05:23:07 +0000 Subject: - Respect the esd.conf and add est.conf.default. [1] - Remove the patch-configure; it's no longer need. - Make the portlint a happy man. PR: ports/69175 [1] Reported by: Torfinn Ingolfsen [1] --- audio/esound/Makefile | 20 +++++++++++++++++--- audio/esound/files/patch-configure | 13 ------------- audio/esound/pkg-plist | 4 +++- 3 files changed, 20 insertions(+), 17 deletions(-) delete mode 100644 audio/esound/files/patch-configure diff --git a/audio/esound/Makefile b/audio/esound/Makefile index 8c09f9fafb37..d94f8666d479 100644 --- a/audio/esound/Makefile +++ b/audio/esound/Makefile @@ -7,6 +7,7 @@ PORTNAME= esound PORTVERSION= 0.2.35 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.2 @@ -17,15 +18,28 @@ COMMENT= A sound library for enlightenment package LIB_DEPENDS= audiofile.0:${PORTSDIR}/audio/libaudiofile -USE_GETOPT_LONG= yes USE_BZIP2= yes -INSTALLS_SHLIB= yes USE_GNOME= gnometarget gnomehack +USE_REINPLACE= yes +INSTALLS_SHLIB= yes USE_LIBTOOL_VER=15 +USE_GETOPT_LONG=yes -CONFLICTS= py*-ro-* +CONFLICTS= py*-ro-[0-9]* MAN1= esd-config.1 esd.1 esdcat.1 esdctl.1 esddsp.1 esdfilt.1 esdloop.1 \ esdmon.1 esdplay.1 esdrec.1 esdsample.1 +post-patch: + @${REINPLACE_CMD} -e 's|esdconf_DATA = esd.conf|esdconf_DATA = |g' \ + ${WRKSRC}/Makefile.in + +post-install: + if [ ! -f ${PREFIX}/etc/esd.conf ]; then \ + ${INSTALL_DATA} ${WRKSRC}/esd.conf ${PREFIX}/etc/esd.conf; \ + ${INSTALL_DATA} ${WRKSRC}/esd.conf ${PREFIX}/etc/esd.conf.default; \ + else \ + ${INSTALL_DATA} ${WRKSRC}/esd.conf ${PREFIX}/etc/esd.conf.default; \ + fi + .include diff --git a/audio/esound/files/patch-configure b/audio/esound/files/patch-configure deleted file mode 100644 index 31b690366f87..000000000000 --- a/audio/esound/files/patch-configure +++ /dev/null @@ -1,13 +0,0 @@ - -$FreeBSD$ - ---- configure 2002/05/07 06:39:43 1.1 -+++ configure 2002/05/07 06:39:55 -@@ -5308,6 +5308,7 @@ - - # This can be used to rebuild libtool when needed - LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" -+$ac_aux_dir/ltconfig $LIBTOOL_DEPS - - # Always use our own libtool. - LIBTOOL='$(SHELL) $(top_builddir)/libtool' diff --git a/audio/esound/pkg-plist b/audio/esound/pkg-plist index 6617f3009ab9..abff241079d2 100644 --- a/audio/esound/pkg-plist +++ b/audio/esound/pkg-plist @@ -9,7 +9,9 @@ bin/esdmon bin/esdplay bin/esdrec bin/esdsample -etc/esd.conf +@unexec if cmp -s %D/etc/esd.conf %D/etc/esd.conf.default; then rm -f %D/etc/esd.conf; fi +etc/esd.conf.default +@exec [ -f %B/esd.conf ] || cp %B/%f %B/esd.conf include/esd.h lib/libesd.a lib/libesd.so -- cgit