summaryrefslogtreecommitdiffstats
path: root/audio/libtunepimp-old
diff options
context:
space:
mode:
authorlofi <lofi@FreeBSD.org>2006-09-12 21:49:38 +0000
committerlofi <lofi@FreeBSD.org>2006-09-12 21:49:38 +0000
commit694ef3d81ef78cec229dadb6b6f4e994b5787de2 (patch)
tree328b62afe0369870f051c7eb8b5e2e5a98d5d714 /audio/libtunepimp-old
parent2ec79100cc53e54a002683c02a1ce7994345767c (diff)
downloadFreeBSD-ports-694ef3d81ef78cec229dadb6b6f4e994b5787de2.zip
FreeBSD-ports-694ef3d81ef78cec229dadb6b6f4e994b5787de2.tar.gz
Prevent libtunepimp and libtunepimp-old from clobbering each other's
libraries and includes and bump PORTREVISION for both. Hack the two remaining users of libtunepimp-old into compiling.
Diffstat (limited to 'audio/libtunepimp-old')
-rw-r--r--audio/libtunepimp-old/Makefile9
-rw-r--r--audio/libtunepimp-old/files/patch-examples-Makefile.in27
-rw-r--r--audio/libtunepimp-old/files/patch-lib-Makefile.in20
-rw-r--r--audio/libtunepimp-old/pkg-plist46
4 files changed, 79 insertions, 23 deletions
diff --git a/audio/libtunepimp-old/Makefile b/audio/libtunepimp-old/Makefile
index 3e817f6..14ad91b 100644
--- a/audio/libtunepimp-old/Makefile
+++ b/audio/libtunepimp-old/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libtunepimp-old
PORTVERSION= 0.4.2
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 2
CATEGORIES= audio
MASTER_SITES= http://ftp.musicbrainz.org/pub/musicbrainz/ \
@@ -30,9 +30,12 @@ CONFLICTS= trm-0* libtunepimp-0*
USE_GMAKE= yes
USE_GNOME= gnomehack gnometarget pkgconfig
USE_AUTOTOOLS= libtool:15
+CONFIGURE_ARGS= --libdir=${PREFIX}/lib/tunepimp-0.4 --includedir=${PREFIX}/include/tunepimp-0.4
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -liconv"
INSTALLS_SHLIB= yes
+LDCONFIG_DIRS= %%PREFIX%%/lib/tunepimp-0.4
+USE_LDCONFIG= ${PREFIX}/lib/tunepimp-0.4
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \
@@ -43,5 +46,9 @@ post-patch:
post-configure:
@${REINPLACE_CMD} -e 's|\(^LDFLAGS =.*\)|\1 ${PTHREAD_LIBS} -liconv|g' \
${WRKSRC}/examples/Makefile
+ @${REINPLACE_CMD} -e \
+ 's|PREFIX"/lib/tunepimp/plugins"|PREFIX"/lib/tunepimp-0.4/tunepimp/plugins"|g' \
+ ${WRKSRC}/lib/tunepimp.cpp
+
.include <bsd.port.mk>
diff --git a/audio/libtunepimp-old/files/patch-examples-Makefile.in b/audio/libtunepimp-old/files/patch-examples-Makefile.in
new file mode 100644
index 0000000..f563be1
--- /dev/null
+++ b/audio/libtunepimp-old/files/patch-examples-Makefile.in
@@ -0,0 +1,27 @@
+--- examples/Makefile.in.orig Tue Sep 12 19:17:31 2006
++++ examples/Makefile.in Tue Sep 12 19:17:56 2006
+@@ -53,10 +53,10 @@
+ PROGRAMS = $(bin_PROGRAMS)
+ am_tp_tagger_OBJECTS = tagger.$(OBJEXT)
+ tp_tagger_OBJECTS = $(am_tp_tagger_OBJECTS)
+-tp_tagger_DEPENDENCIES = $(top_builddir)/lib/libtunepimp.la
++tp_tagger_DEPENDENCIES = $(top_builddir)/lib/libtunepimp-0.4.la
+ am_trm_OBJECTS = trm.$(OBJEXT)
+ trm_OBJECTS = $(am_trm_OBJECTS)
+-trm_DEPENDENCIES = $(top_builddir)/lib/libtunepimp.la
++trm_DEPENDENCIES = $(top_builddir)/lib/libtunepimp-0.4.la
+ DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+@@ -207,9 +207,9 @@
+ #
+ INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib -I$(top_srcdir)/lib/threads/posix
+ tp_tagger_SOURCES = tagger.c
+-tp_tagger_LDADD = $(top_builddir)/lib/libtunepimp.la @READLINE_LIBS@
++tp_tagger_LDADD = $(top_builddir)/lib/libtunepimp-0.4.la @READLINE_LIBS@
+ trm_SOURCES = trm.c
+-trm_LDADD = $(top_builddir)/lib/libtunepimp.la
++trm_LDADD = $(top_builddir)/lib/libtunepimp-0.4.la
+ all: all-am
+
+ .SUFFIXES:
diff --git a/audio/libtunepimp-old/files/patch-lib-Makefile.in b/audio/libtunepimp-old/files/patch-lib-Makefile.in
new file mode 100644
index 0000000..b1f5a607
--- /dev/null
+++ b/audio/libtunepimp-old/files/patch-lib-Makefile.in
@@ -0,0 +1,20 @@
+--- lib/Makefile.in.bak Sat Jan 28 21:54:05 2006
++++ lib/Makefile.in Tue Sep 12 19:11:17 2006
+@@ -240,7 +240,7 @@
+ AUTOMAKE_OPTIONS = foreign
+ SUBDIRS = utf8 threads
+ INCLUDES = -I$(top_srcdir)/include/tunepimp -Ithreads/posix
+-lib_LTLIBRARIES = libtunepimp.la
++lib_LTLIBRARIES = libtunepimp-0.4.la
+ libtunepimp_la_SOURCES = tunepimp.cpp filecache.cpp filelookup.cpp analyzer.cpp dirsearch.cpp metadata.cpp submit.cpp astrcmp.c track.cpp lookup.cpp lookuptools.cpp write.cpp c_wrapper.cpp watchdog.cpp plugins.cpp readmeta.cpp fileio.cpp
+
+ # Here are a set of rules to help you update your library version information:
+@@ -338,7 +338,7 @@
+ done
+ libpluginsupport.la: $(libpluginsupport_la_OBJECTS) $(libpluginsupport_la_DEPENDENCIES)
+ $(CXXLINK) $(libpluginsupport_la_LDFLAGS) $(libpluginsupport_la_OBJECTS) $(libpluginsupport_la_LIBADD) $(LIBS)
+-libtunepimp.la: $(libtunepimp_la_OBJECTS) $(libtunepimp_la_DEPENDENCIES)
++libtunepimp-0.4.la: $(libtunepimp_la_OBJECTS) $(libtunepimp_la_DEPENDENCIES)
+ $(CXXLINK) -rpath $(libdir) $(libtunepimp_la_LDFLAGS) $(libtunepimp_la_OBJECTS) $(libtunepimp_la_LIBADD) $(LIBS)
+
+ mostlyclean-compile:
diff --git a/audio/libtunepimp-old/pkg-plist b/audio/libtunepimp-old/pkg-plist
index dca0bb7..fb92097 100644
--- a/audio/libtunepimp-old/pkg-plist
+++ b/audio/libtunepimp-old/pkg-plist
@@ -1,24 +1,26 @@
bin/tp_tagger
bin/trm
-include/tunepimp/context.h
-include/tunepimp/decode_plugin.h
-include/tunepimp/defs.h
-include/tunepimp/fileio.h
-include/tunepimp/metadata_plugin.h
-include/tunepimp/tp_c.h
-include/tunepimp/track.h
-include/tunepimp/tunepimp.h
-lib/libtunepimp.a
-lib/libtunepimp.la
-lib/libtunepimp.so
-lib/libtunepimp.so.3
-lib/tunepimp/plugins/flac.tpp
-lib/tunepimp/plugins/mp3.tpp
-lib/tunepimp/plugins/mp4.tpp
-lib/tunepimp/plugins/mpc.tpp
-lib/tunepimp/plugins/vorbis.tpp
-lib/tunepimp/plugins/wav.tpp
-lib/tunepimp/plugins/wma.tpp
-@dirrm lib/tunepimp/plugins
-@dirrm lib/tunepimp
-@dirrm include/tunepimp
+include/tunepimp-0.4/tunepimp/context.h
+include/tunepimp-0.4/tunepimp/decode_plugin.h
+include/tunepimp-0.4/tunepimp/defs.h
+include/tunepimp-0.4/tunepimp/fileio.h
+include/tunepimp-0.4/tunepimp/metadata_plugin.h
+include/tunepimp-0.4/tunepimp/tp_c.h
+include/tunepimp-0.4/tunepimp/track.h
+include/tunepimp-0.4/tunepimp/tunepimp.h
+lib/tunepimp-0.4/libtunepimp-0.4.a
+lib/tunepimp-0.4/libtunepimp-0.4.la
+lib/tunepimp-0.4/libtunepimp-0.4.so
+lib/tunepimp-0.4/libtunepimp-0.4.so.3
+lib/tunepimp-0.4/tunepimp/plugins/flac.tpp
+lib/tunepimp-0.4/tunepimp/plugins/mp3.tpp
+lib/tunepimp-0.4/tunepimp/plugins/mp4.tpp
+lib/tunepimp-0.4/tunepimp/plugins/mpc.tpp
+lib/tunepimp-0.4/tunepimp/plugins/vorbis.tpp
+lib/tunepimp-0.4/tunepimp/plugins/wav.tpp
+lib/tunepimp-0.4/tunepimp/plugins/wma.tpp
+@dirrm lib/tunepimp-0.4/tunepimp/plugins
+@dirrm lib/tunepimp-0.4/tunepimp
+@dirrm lib/tunepimp-0.4
+@dirrm include/tunepimp-0.4/tunepimp
+@dirrm include/tunepimp-0.4
OpenPOWER on IntegriCloud