Makefile for audio/mp3blaster not working correctly, changes included...

mailing lists at MacTutor lists at mactutor.biz
Fri Sep 17 14:04:14 PDT 2004


/usr/ports/audio/mp3blaster/Makefile appears to be wrong. I've written  
a correction that I hope is correct. It defaults to all values ON. The  
default behavior turns lirc, sidplay, and vorbis ON. I'm running this  
under 4.10-STABLE (i386).

Of course, my apologies for not supplying a patch. Instead, I've cut  
and pasted the Makefile for mp3blaster (audio/mp3blaster) from OS X.

What I did:

1. LIRC, SIDPLAY, and VORBIS default to ON.
2. -D{WITHOUT_SIDPLAY, WITHOUT_LIRC, WITHOUT_VORBIS} to turn OFF.
3. updated pre-everything:: to reflect changes.

Alex(ander Sendzimir)

----------------------------------------------------------
start /usr/ports/audio/mp3blaster/Makefile
----------------------------------------------------------

# New ports collection makefile for:    mp3blaster
# Date created:         5 January 2000
# Whom:                 Michael Vasilenko <acid at stu.cn.ua>
#
# $FreeBSD: ports/audio/mp3blaster/Makefile,v 1.21 2004/03/22 13:40:31  
clement Exp $
#

PORTNAME=       mp3blaster
PORTVERSION=    3.2.0
PORTREVISION=   2
CATEGORIES=     audio
MASTER_SITES=   http://www.stack.nl/~brama/mp3blaster/src/

MAINTAINER=     ports at FreeBSD.org
COMMENT=        MP3 console ncurses-based player

USE_GETOPT_LONG=        yes
USE_REINPLACE=  yes
USE_GMAKE=      yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-cxxflags="${CXXFLAGS}"

MAN1=           mp3blaster.1 nmixer.1 splay.1

CPPFLAGS=       -I${LOCALBASE}/include -DHAVE_DECL_GETOPT  
${PTHREAD_CFLAGS}
LDFLAGS=        -L${LOCALBASE}/lib ${PTHREAD_LIBS}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400010
LIB_DEPENDS+=   ncurses.5:${PORTSDIR}/devel/ncurses
.endif

.if defined(WITHOUT_LIRC)
CONFIGURE_ARGS+=        --with-lirc
.else
LIB_DEPENDS+=   lirc_client.0:${PORTSDIR}/comms/lirc
.endif

.if defined(WITHOUT_SIDPLAY)
CONFIGURE_ARGS+=        --without-sidplay
.else
LIB_DEPENDS+=   sidplay.1:${PORTSDIR}/audio/libsidplay
.endif

.if defined(WITHOUT_VORBIS)
CONFIGURE_ARGS+=        --without-oggvorbis
.else
LIB_DEPENDS+=   vorbisfile.4:${PORTSDIR}/audio/libvorbis
.endif

pre-everything::
         @${ECHO_MSG} ""
         @${ECHO_MSG} "MP3Blaster has the following tunable option(s):"
         @${ECHO_MSG} ""
         @${ECHO_MSG} "  WITHOUT_LIRC          Turns off LIRC support"
         @${ECHO_MSG} "  WITHOUT_SIDPLAY       Turns off Sidplayer  
support"
         @${ECHO_MSG} "  WITHOUT_VORBIS        Turns off Ogg Vorbis  
support"
         @${ECHO_MSG} ""

post-extract:
         @${FIND} ${WRKSRC} -name "getopt*" -delete

post-patch:
         @${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g'  
${WRKSRC}/configure
         @${REINPLACE_CMD} -e  
's|/usr/local/share/mp3blaster/win2koi.tbl|${DATADIR}/charmap/ 
win2koi.tbl|' \
                                 ${WRKSRC}/doc/sample.mp3blasterrc

.include <bsd.port.post.mk>

----------------------------------------------------------
end /usr/ports/audio/mp3blaster/Makefile
----------------------------------------------------------

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Alexander Sendzimir (owner)                    802 863 5502
  MacTutor: Apple Mac OS X Consulting       info at mactutor.biz



More information about the freebsd-ports mailing list