# Created by: Aldis Berjoza # $FreeBSD$ PORTNAME= shairport PORTVERSION= 0.05 PORTREVISION= 1 CATEGORIES= audio MAINTAINER= miks.mikelsons@gmail.com COMMENT= Airtunes emulator LIB_DEPENDS= libao.so:audio/libao RUN_DEPENDS= p5-MIME-Base64>=0:converters/p5-MIME-Base64 \ p5-Getopt-Long>=0:devel/p5-Getopt-Long \ p5-URI>=0:net/p5-URI \ p5-Crypt-OpenSSL-RSA>=0:security/p5-Crypt-OpenSSL-RSA \ p5-Digest-MD5>=0:security/p5-Digest-MD5 \ p5-HTTP-Message>=0:www/p5-HTTP-Message \ avahi-publish-service:net/avahi-app USES= gmake perl5 pkgconfig USE_PERL5= run USE_OPENSSL= yes USE_GITHUB= yes GH_ACCOUNT= miks GH_TAGNAME= b1cb9ea USE_RC_SUBR= ${PORTNAME} SUB_LIST= PERL=${PERL} PLIST_FILES= bin/${PORTNAME} bin/hairtunes bin/${PORTNAME}.pl PORTDOCS= README.md OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e 's|avahi-|${LOCALBASE}/bin/avahi-|g' \ -e 's|$$FindBin.*|"${PREFIX}/bin/hairtunes";|' \ -e '/use FindBin;/d;s|/usr/bin/env perl|${PERL}|' \ ${WRKSRC}/shairport.c ${WRKSRC}/shairport.pl @${REINPLACE_CMD} 's/-lssl/-lcrypto/' ${WRKSRC}/Makefile do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin .for file in ${PORTNAME} hairtunes ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/bin .endfor do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} ${INSTALL_DATA} -p ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .include