1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

- Unbreak, at least on i386/6.0

Approved by:	green (maintainer)
This commit is contained in:
Pav Lucistnik 2005-10-18 19:28:35 +00:00
parent 0976ed79f6
commit 3c7e71f7a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145793
2 changed files with 14 additions and 9 deletions

View File

@ -10,22 +10,19 @@ PORTVERSION= 1.2a
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMEPREFIX= xmms-
MAINTAINER= green@FreeBSD.org
COMMENT= Automatic, weight-based playlist ordering plugin for XMMS
BUILD_DEPENDS= sox:${PORTSDIR}/audio/sox
BUILD_DEPENDS= sox:${PORTSDIR}/audio/sox \
${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
LIB_DEPENDS= xmms.4:${PORTSDIR}/multimedia/xmms \
sqlite3:${PORTSDIR}/databases/sqlite3 \
pcre.0:${PORTSDIR}/devel/pcre \
fftw3f.3:${PORTSDIR}/math/fftw3-float \
tag.4:${PORTSDIR}/audio/taglib
BROKEN= Does not compile
DEPRECATED= "${BROKEN}"
EXPIRATION_DATE=2005-09-22
tag.5:${PORTSDIR}/audio/taglib
USE_BZIP2= yes
USE_X_PREFIX= yes
@ -40,13 +37,21 @@ CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CONFIGURE_ARGS+=--enable-debug
.endif
INSTALLS_SHLIB= yes
USE_REINPLACE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile"
.endif
.if ${OSVERSION} < 500000
USE_REINPLACE= yes
BROKEN= "Does not compile"
.endif
post-patch:
${REINPLACE_CMD} -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' ${WRKSRC}/vars.mk.in
.if ${OSVERSION} < 500000
@cd ${WRKSRC} && \
${REINPLACE_CMD} 's:#include.<stdint\.h>:#include <sys/types.h>:' \
players/xmms/plugin.h analyzer/spectrum.h analyzer/analyzer.cc

View File

@ -12,7 +12,7 @@
-LDFLAGS = `xmms-config --libs` @LIBS@
+CPPFLAGS = `xmms-config --cflags` @XCPPFLAGS@ @CPPFLAGS@ @CFLAGS@ -Wall -fPIC -D_REENTRANT -I../
+CXXFLAGS = ${CPPFLAGS}
+LDFLAGS = @LDFLAGS@ `xmms-config --libs` -lc -lm @LIBS@
+LDFLAGS = @LDFLAGS@ `xmms-config --libs` -lc -lm -lsqlite3 -lpcre @LIBS@ %%PTHREAD_LIBS%%
ARFLAGS = rs
default: all