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:
parent
7cfdf0a7d2
commit
879968af2d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339610
@ -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
|
||||
|
12
audio/xmms-mp3cue/files/patch-ID3tag.C
Normal file
12
audio/xmms-mp3cue/files/patch-ID3tag.C
Normal 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;
|
||||
|
15
audio/xmms-mp3cue/files/patch-Makefile.in
Normal file
15
audio/xmms-mp3cue/files/patch-Makefile.in
Normal 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)
|
Loading…
Reference in New Issue
Block a user