1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

audio/xmms-mp3cue: Unbreak and support stage

This port had two major c++ issues.
The first was missing <cstlib> header and using <string> instead of
<cstring>.  The second was the default setting of CC to "g++" which
fails on F10+.

Unbreak and stagify under the "Just fix it" blanket.
This commit is contained in:
John Marino 2014-01-13 17:13:11 +00:00
parent 7cfdf0a7d2
commit 879968af2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339610
3 changed files with 28 additions and 1 deletions

View File

@ -15,12 +15,12 @@ LIB_DEPENDS= libxmms.so:${PORTSDIR}/multimedia/xmms
GNU_CONFIGURE= yes
USES= gmake
NO_STAGE= yes
PLIST_SUB= PORTDOCS=${DISTNAME}
CFLAGS_amd64= -fPIC
CFLAGS_ia64= -fPIC
MAKE_ARGS+= CC="${CXX}"
post-patch:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' ${WRKSRC}/*.c

View File

@ -0,0 +1,12 @@
--- ID3tag.C.orig 2003-10-22 08:23:00.000000000 +0000
+++ ID3tag.C
@@ -27,7 +27,8 @@ Pune 411001
INDIA
*/
-#include <string>
+#include <cstring>
+#include <cstdlib>
#include <iostream>
using namespace std;

View File

@ -0,0 +1,15 @@
--- Makefile.in.orig 2003-10-22 08:23:00.000000000 +0000
+++ Makefile.in
@@ -33,9 +33,9 @@ distclean: clean
rm -rf config.* Makefile tmp *.tar.gz
install: mp3cue
- $(mkinstalldirs) $(INSTALLPATH) $(PREFIX)/share/doc/$(PACKAGE)-$(VERSION)
- $(INSTALL) -s $(TARGET) $(INSTALLPATH)
- $(INSTALL) $(DOCS) $(PREFIX)/share/doc/$(PACKAGE)-$(VERSION)
+ $(mkinstalldirs) $(DESTDIR)$(INSTALLPATH) $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)-$(VERSION)
+ $(INSTALL) -s $(TARGET) $(DESTDIR)$(INSTALLPATH)
+ $(INSTALL) $(DOCS) $(DESTDIR)$(PREFIX)/share/doc/$(PACKAGE)-$(VERSION)
mp3cue: $(OBJS)
$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS)