2012-12-17 20:00:53 +00:00
|
|
|
# Created by: Mark Foster <mark@foster.cc>
|
2008-10-19 15:59:16 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= firefly
|
|
|
|
PORTVERSION= 1696
|
2014-07-01 03:37:29 +00:00
|
|
|
PORTREVISION= 10
|
2008-10-19 15:59:16 +00:00
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= http://nightlies.fireflymediaserver.org/nightlies/svn-${PORTVERSION}/ \
|
|
|
|
http://www.magnesium.net/~mdf/distfiles/
|
|
|
|
DISTNAME= mt-daapd-svn-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= mark@foster.cc
|
|
|
|
COMMENT= Open-source media server for the Roku SoundBridge and iTunes
|
|
|
|
|
2011-12-31 16:27:49 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2008-10-19 15:59:16 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/vorbis/codec.h:${PORTSDIR}/audio/libvorbis \
|
|
|
|
${LOCALBASE}/include/FLAC/metadata.h:${PORTSDIR}/audio/flac
|
|
|
|
RUN_DEPENDS= oggdec:${PORTSDIR}/audio/vorbis-tools \
|
|
|
|
flac:${PORTSDIR}/audio/flac
|
2013-12-11 14:35:36 +00:00
|
|
|
LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg \
|
|
|
|
libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
|
|
|
|
libid3tag.so:${PORTSDIR}/audio/libid3tag
|
2008-10-19 15:59:16 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-06-11 14:49:59 +00:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
2008-10-19 15:59:16 +00:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2010-11-26 23:07:50 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --with-id3tag=${PREFIX} \
|
|
|
|
--enable-sqlite3 --enable-oggvorbis --enable-flac
|
2014-07-01 03:37:29 +00:00
|
|
|
USES= libtool
|
2008-10-19 15:59:16 +00:00
|
|
|
|
|
|
|
DAAPD_USER?= daapd
|
|
|
|
DAAPD_GROUP?= daapd
|
|
|
|
DAAPD_DBDIR?= ${PREFIX}/var/db/${PORTNAME}
|
|
|
|
USE_RC_SUBR= mt-daapd
|
2011-06-21 20:44:12 +00:00
|
|
|
USERS= ${DAAPD_USER}
|
|
|
|
GROUPS= ${DAAPD_GROUP}
|
2008-10-19 15:59:16 +00:00
|
|
|
|
2014-06-27 15:55:12 +00:00
|
|
|
PLIST_SUB+= DAAPD_DBDIR=${DAAPD_DBDIR} \
|
|
|
|
DAAPD_USER=${DAAPD_USER} \
|
|
|
|
DAAPD_GROUP=${DAAPD_GROUP} \
|
|
|
|
DATADIR=${DATADIR}
|
2008-10-19 15:59:16 +00:00
|
|
|
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
2012-11-28 03:04:22 +00:00
|
|
|
USE_GCC= any
|
|
|
|
|
2014-07-15 14:41:47 +00:00
|
|
|
OPTIONS_DEFINE= JAPANESE DOCS
|
2012-12-17 20:00:53 +00:00
|
|
|
JAPANESE_DESC= Japanese support in ID3 tags
|
2011-12-31 16:27:49 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-12-17 20:00:53 +00:00
|
|
|
.if ${PORT_OPTIONS:MJAPANESE}
|
2011-12-31 16:27:49 +00:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_scan-mp3.c
|
2014-07-01 03:37:29 +00:00
|
|
|
USES+= iconv
|
2011-12-31 16:27:49 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-iconv
|
|
|
|
.endif
|
|
|
|
|
2008-10-19 15:59:16 +00:00
|
|
|
pre-everything::
|
2011-12-31 16:27:49 +00:00
|
|
|
@${ECHO_CMD} "Define vars below if you need:"
|
2008-10-19 15:59:16 +00:00
|
|
|
@${ECHO_CMD} "DAAPD_USER=${DAAPD_USER} (default: daapd)"
|
|
|
|
@${ECHO_CMD} "DAAPD_GROUP=${DAAPD_GROUP} (default: daapd)"
|
|
|
|
@${ECHO_CMD} "DAAPD_DBDIR=${DAAPD_DBDIR} (default: ${PREFIX}/var/db/${PORTNAME})"
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' \
|
2011-12-31 16:27:49 +00:00
|
|
|
${WRKSRC}/configure
|
2008-10-19 15:59:16 +00:00
|
|
|
|
|
|
|
post-install:
|
2014-01-03 15:26:06 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2014-06-27 15:55:12 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2008-10-19 15:59:16 +00:00
|
|
|
.for i in README AUTHORS COPYING CREDITS \
|
|
|
|
ChangeLog INSTALL NEWS TODO
|
2014-06-27 15:55:12 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2008-10-19 15:59:16 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2014-06-27 15:55:12 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/mt-daapd.conf.sample
|
|
|
|
@${MKDIR} ${STAGEDIR}${DAAPD_DBDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@${CHMOD} 0755 ${STAGEDIR}${DAAPD_DBDIR}
|
|
|
|
@${CHMOD} 0755 ${STAGEDIR}${DATADIR}
|
2008-10-19 15:59:16 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|