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

Respect PTHREAD_LIBS, fix build on -STABLE.

This commit is contained in:
Michael Nottebrock 2004-08-14 22:03:48 +00:00
parent ef866e788f
commit c843f82c98
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116225
4 changed files with 26 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= libtunepimp
PORTVERSION= 0.3.0
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.musicbrainz.org/pub/musicbrainz/
@ -32,5 +33,7 @@ USE_LIBTOOL_VER=15
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \
s|^CXXFLAGS=|#CXXFLAGS=|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-lthr|${PTHREAD_LIBS}|g' \
${WRKSRC}/lib/threads/posix/Makefile.in
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- lib/mp3_trm.cpp.orig Sat Aug 14 23:35:41 2004
+++ lib/mp3_trm.cpp Sat Aug 14 23:35:55 2004
@@ -82,6 +82,7 @@
#ifdef WIN32
#include <winsock.h>
#else
+#include <sys/types.h>
#include <netinet/in.h>
#endif

View File

@ -7,6 +7,7 @@
PORTNAME= libtunepimp
PORTVERSION= 0.3.0
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.musicbrainz.org/pub/musicbrainz/
@ -32,5 +33,7 @@ USE_LIBTOOL_VER=15
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \
s|^CXXFLAGS=|#CXXFLAGS=|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-lthr|${PTHREAD_LIBS}|g' \
${WRKSRC}/lib/threads/posix/Makefile.in
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- lib/mp3_trm.cpp.orig Sat Aug 14 23:35:41 2004
+++ lib/mp3_trm.cpp Sat Aug 14 23:35:55 2004
@@ -82,6 +82,7 @@
#ifdef WIN32
#include <winsock.h>
#else
+#include <sys/types.h>
#include <netinet/in.h>
#endif