mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
49bf36d527
Holdout shame list: ruby, perl, python
93 lines
2.7 KiB
Makefile
93 lines
2.7 KiB
Makefile
# Created by: Mark Foster <mark@foster.cc>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= firefly
|
|
PORTVERSION= 1696
|
|
PORTREVISION= 8
|
|
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
|
|
|
|
LICENSE= GPLv2
|
|
|
|
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
|
|
LIB_DEPENDS= libogg.so:${PORTSDIR}/audio/libogg \
|
|
libsqlite3.so:${PORTSDIR}/databases/sqlite3 \
|
|
libid3tag.so:${PORTSDIR}/audio/libid3tag
|
|
|
|
GNU_CONFIGURE= yes
|
|
NO_STAGE= yes
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} --with-id3tag=${PREFIX} \
|
|
--enable-sqlite3 --enable-oggvorbis --enable-flac
|
|
|
|
DAAPD_USER?= daapd
|
|
DAAPD_GROUP?= daapd
|
|
DAAPD_DBDIR?= ${PREFIX}/var/db/${PORTNAME}
|
|
USE_RC_SUBR= mt-daapd
|
|
USERS= ${DAAPD_USER}
|
|
GROUPS= ${DAAPD_GROUP}
|
|
|
|
PLIST_SUB+= DAAPD_DBDIR=${DAAPD_DBDIR}
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GCC= any
|
|
|
|
OPTIONS_DEFINE= JAPANESE
|
|
JAPANESE_DESC= Japanese support in ID3 tags
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MJAPANESE}
|
|
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_scan-mp3.c
|
|
USES= iconv
|
|
CONFIGURE_ARGS+= --enable-iconv
|
|
.endif
|
|
|
|
pre-everything::
|
|
@${ECHO_CMD} "Define vars below if you need:"
|
|
@${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|' \
|
|
${WRKSRC}/configure
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in README AUTHORS COPYING CREDITS \
|
|
ChangeLog INSTALL NEWS TODO
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
@[ -f ${PREFIX}/etc/mt-daapd.conf.sample ] || \
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/mt-daapd.conf \
|
|
${PREFIX}/etc/mt-daapd.conf.sample
|
|
@${MKDIR} ${DAAPD_DBDIR}
|
|
@${MKDIR} ${DATADIR}
|
|
@${CHMOD} 0755 ${DAAPD_DBDIR}
|
|
@${CHMOD} 0755 ${DATADIR}
|
|
@${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DAAPD_DBDIR}
|
|
@${CHOWN} ${DAAPD_USER}:${DAAPD_GROUP} ${DATADIR}
|
|
|
|
@${ECHO_MSG} "This port installs a sample configuration file in"
|
|
@${ECHO_MSG} "${LOCALBASE}/etc/mt-daapd.conf.sample"
|
|
@${ECHO_MSG} "You probably should move/copy this file to mt-daapd.conf"
|
|
@${ECHO_MSG} "and customize to fit your needs."
|
|
|
|
.include <bsd.port.mk>
|