2013-08-31 01:01:05 +02:00
|
|
|
# Created by: ijliao
|
2002-06-06 20:47:52 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-04-29 00:54:27 +02:00
|
|
|
PORTNAME= MuSE
|
2006-08-07 05:34:42 +02:00
|
|
|
PORTVERSION= 0.9.2
|
2012-07-19 22:15:37 +02:00
|
|
|
PORTREVISION= 14
|
2002-06-06 20:47:52 +02:00
|
|
|
CATEGORIES= audio
|
2012-06-05 22:38:19 +02:00
|
|
|
MASTER_SITES= http://files.dyne.org/muse/releases/
|
2002-06-06 20:47:52 +02:00
|
|
|
|
2011-10-24 05:33:20 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Multiple Streaming Engine
|
2002-06-06 20:47:52 +02:00
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
|
|
libogg.so:${PORTSDIR}/audio/libogg
|
2002-06-06 20:47:52 +02:00
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
OPTIONS_DEFINE= X11 LAME SNDFILE DOCS
|
|
|
|
OPTIONS_DEFAULT=X11
|
|
|
|
|
2013-08-31 01:01:05 +02:00
|
|
|
USES= gettext gmake
|
2002-06-06 20:47:52 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-08-07 05:34:42 +02:00
|
|
|
CONFIGURE_ARGS= --disable-debug --disable-lubrify --disable-rpath
|
2003-12-22 12:56:46 +01:00
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -DHAVE_SYS_UIO_H ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lintl ${PTHREAD_LIBS}
|
2006-08-07 05:34:42 +02:00
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS KNOWN-BUGS README TODO USAGE
|
2013-12-30 18:00:24 +01:00
|
|
|
PLIST_FILES= bin/muse man/man1/muse.1.gz
|
2012-06-05 22:38:19 +02:00
|
|
|
.for lang in es it
|
|
|
|
PLIST_FILES+= share/locale/${lang}/LC_MESSAGES/muse.mo
|
|
|
|
.endfor
|
2004-04-29 09:43:38 +02:00
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2010-08-22 23:38:19 +02:00
|
|
|
|
2012-06-01 13:56:11 +02:00
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
|
|
USE_GNOME+= gtk20
|
|
|
|
.else
|
2006-08-07 05:34:42 +02:00
|
|
|
CONFIGURE_ARGS+=--without-x --with-rubik
|
2003-12-22 12:56:46 +01:00
|
|
|
.endif
|
2002-12-29 05:39:22 +01:00
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MLAME}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libmp3lame.so:${PORTSDIR}/audio/lame
|
2012-06-05 22:38:19 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_lame_lame_h=no
|
2006-08-07 05:34:42 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MSNDFILE}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libsndfile.so:${PORTSDIR}/audio/libsndfile
|
2006-08-07 05:34:42 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2012-06-05 22:38:19 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|machine/soundcard.h|sys/soundcard.h|' \
|
2006-08-07 05:34:42 +02:00
|
|
|
${WRKSRC}/src/portaudio/pa_unix_oss.c
|
2012-06-05 22:38:19 +02:00
|
|
|
.if empty(PORT_OPTIONS:MSNDFILE)
|
|
|
|
@${REINPLACE_CMD} -e '/sndfile >=/s|$$PKG_CONFIG|${FALSE}|' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2013-12-30 18:00:24 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
2002-06-08 20:21:46 +02:00
|
|
|
.endif
|
2002-06-06 20:47:52 +02:00
|
|
|
|
2012-06-05 22:38:19 +02:00
|
|
|
.include <bsd.port.mk>
|