Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 2014 12:25:56 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r343483 - in head/audio/cdparanoia: . files
Message-ID:  <201402091225.s19CPu0l006041@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Sun Feb  9 12:25:56 2014
New Revision: 343483
URL: http://svnweb.freebsd.org/changeset/ports/343483
QAT: https://qat.redports.org/buildarchive/r343483/

Log:
  - Support staging
  - Add LICENSE
  - Strip binaries

Modified:
  head/audio/cdparanoia/Makefile
  head/audio/cdparanoia/files/patch-Makefile.in
  head/audio/cdparanoia/pkg-plist

Modified: head/audio/cdparanoia/Makefile
==============================================================================
--- head/audio/cdparanoia/Makefile	Sun Feb  9 12:25:12 2014	(r343482)
+++ head/audio/cdparanoia/Makefile	Sun Feb  9 12:25:56 2014	(r343483)
@@ -12,14 +12,17 @@ EXTRACT_SUFX=	.src.tgz
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	A CDDA extraction tool (also known as ripper)
 
+LICENSE=	GPLv2
+
 GNU_CONFIGURE=	yes
-NO_STAGE=	yes
 USES=		gmake
 USE_LDCONFIG=	yes
 
-MAN1=		cdparanoia.1
-
 post-patch:
-	@${REINPLACE_CMD} -e 's/\(^ *default:\)/\1break;/' ${WRKSRC}/interface/utils.h
+	@${REINPLACE_CMD} -e 's/\(^ *default:\)/\1break;/' \
+		${WRKSRC}/interface/utils.h
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcdda_*
 
 .include <bsd.port.mk>

Modified: head/audio/cdparanoia/files/patch-Makefile.in
==============================================================================
--- head/audio/cdparanoia/files/patch-Makefile.in	Sun Feb  9 12:25:12 2014	(r343482)
+++ head/audio/cdparanoia/files/patch-Makefile.in	Sun Feb  9 12:25:56 2014	(r343483)
@@ -1,5 +1,5 @@
---- Makefile.in.orig	Wed Mar 28 07:46:58 2001
-+++ Makefile.in	Mon Jul  7 06:24:17 2003
+--- Makefile.in.orig	2001-03-28 00:46:58.000000000 +0200
++++ Makefile.in	2014-02-09 13:21:39.449603274 +0100
 @@ -8,7 +8,7 @@
  srcdir=@srcdir@
  
@@ -18,11 +18,49 @@
  	LIBDEP = interface/libcdda_interface.a paranoia/libcdda_paranoia.a
  else
  	LIBS = -lcdda_interface -lcdda_paranoia -lm
-@@ -77,7 +77,6 @@
- 	$(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(INCLUDEDIR)
- 	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(LIBDIR)
- 	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(LIBDIR)
+@@ -64,28 +64,27 @@
+ 	cd paranoia && $(MAKE) slib
+ 
+ install:
+-	$(INSTALL) -d -m 0755 $(BINDIR)
+-	$(INSTALL) -m 0755 $(srcdir)/cdparanoia $(BINDIR)
+-	$(INSTALL) -d -m 0755 $(MANDIR)
+-	$(INSTALL) -d -m 0755 $(MANDIR)/man1
+-	$(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(MANDIR)/man1
+-	$(INSTALL) -d -m 0755 $(INCLUDEDIR)
+-	$(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(INCLUDEDIR)
+-	$(INSTALL) -d -m 0755 $(LIBDIR)
+-	$(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(LIBDIR)
+-	$(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(LIBDIR)
+-	$(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(INCLUDEDIR)
+-	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(LIBDIR)
+-	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(LIBDIR)
 -	$(INSTALL) -m 0644 $(srcdir)/utils.h $(INCLUDEDIR)
++	$(INSTALL) -d -m 0755 $(DESTDIR)$(BINDIR)
++	$(INSTALL) -m 0755 $(srcdir)/cdparanoia $(DESTDIR)$(BINDIR)
++	$(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR)
++	$(INSTALL) -d -m 0755 $(DESTDIR)$(MANDIR)/man1
++	$(INSTALL) -m 0644 $(srcdir)/cdparanoia.1 $(DESTDIR)$(MANDIR)/man1
++	$(INSTALL) -d -m 0755 $(DESTDIR)$(INCLUDEDIR)
++	$(INSTALL) -m 0644 $(srcdir)/paranoia/cdda_paranoia.h $(DESTDIR)$(INCLUDEDIR)
++	$(INSTALL) -d -m 0755 $(DESTDIR)$(LIBDIR)
++	$(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.so.0.$(VERSION) $(DESTDIR)$(LIBDIR)
++	$(INSTALL) -m 0644 $(srcdir)/paranoia/libcdda_paranoia.a $(DESTDIR)$(LIBDIR)
++	$(INSTALL) -m 0644 $(srcdir)/interface/cdda_interface.h $(DESTDIR)$(INCLUDEDIR)
++	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.so.0.$(VERSION) $(DESTDIR)$(LIBDIR)
++	$(INSTALL) -m 0644 $(srcdir)/interface/libcdda_interface.a $(DESTDIR)$(LIBDIR)
  	ln -fs libcdda_interface.so.0.$(VERSION) \
- 		$(LIBDIR)/libcdda_interface.so.0
+-		$(LIBDIR)/libcdda_interface.so.0
++		$(DESTDIR)$(LIBDIR)/libcdda_interface.so.0
  	ln -fs libcdda_interface.so.0.$(VERSION) \
+-		$(LIBDIR)/libcdda_interface.so
++		$(DESTDIR)$(LIBDIR)/libcdda_interface.so
+ 	ln -fs libcdda_paranoia.so.0.$(VERSION) \
+-		$(LIBDIR)/libcdda_paranoia.so.0
++		$(DESTDIR)$(LIBDIR)/libcdda_paranoia.so.0
+ 	ln -fs libcdda_paranoia.so.0.$(VERSION) \
+-		$(LIBDIR)/libcdda_paranoia.so
++		$(DESTDIR)$(LIBDIR)/libcdda_paranoia.so
+ 
+ cdparanoia:	$(OFILES) $(LIBDEP)
+ 		$(LD) $(CFLAGS) $(LDFLAGS) $(OFILES) \

Modified: head/audio/cdparanoia/pkg-plist
==============================================================================
--- head/audio/cdparanoia/pkg-plist	Sun Feb  9 12:25:12 2014	(r343482)
+++ head/audio/cdparanoia/pkg-plist	Sun Feb  9 12:25:56 2014	(r343483)
@@ -9,3 +9,4 @@ lib/libcdda_paranoia.a
 lib/libcdda_paranoia.so
 lib/libcdda_paranoia.so.0
 lib/libcdda_paranoia.so.0.9.8
+man/man1/cdparanoia.1.gz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402091225.s19CPu0l006041>