Changeset View
Changeset View
Standalone View
Standalone View
www/libresonic-standalone/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Created by: Jeremie Le Hen <jlh@FreeBSD.org> | |||||
# $FreeBSD$ | |||||
PORTNAME= libresonic-standalone | |||||
PORTVERSION= 6.2 | |||||
CATEGORIES= www java | |||||
mat: missing tab after = | |||||
MASTER_SITES= https://github.com/Libresonic/libresonic/releases/download/v${PORTVERSION}/ | |||||
DISTNAME= libresonic-v${PORTVERSION} | |||||
EXTRACT_SUFX= .war | |||||
# We don't want to extract the .war file, just copy it. | |||||
Done Inline ActionsPORTNAME= libresonic DISTVERSIONPREFIX= v DISTVERSION= 6.2 CATEGORIES= www java MASTER_SITES= https://github.com/Libresonic/libresonic/releases/download/v${DISTVERSION}/ PKGNAMESUFFIX= -standalone EXTRACT_SUFX= .war mat: ```
PORTNAME= libresonic
DISTVERSIONPREFIX= v
DISTVERSION= 6.2
CATEGORIES=… | |||||
Done Inline ActionsThanks :-). I wanted to stick to what there's in www/madsonic-standalone actually. jlh: Thanks :-). I wanted to stick to what there's in www/madsonic-standalone actually. | |||||
EXTRACT_CMD= ${CP} | |||||
EXTRACT_BEFORE_ARGS= | |||||
Done Inline Actionsmissing empty line before. mat: missing empty line before. | |||||
EXTRACT_AFTER_ARGS= libresonic.war | |||||
Done Inline ActionsThis should happen way way later. mat: This should happen way way later. | |||||
Done Inline ActionsMove it below options. jlh: Move it below options. | |||||
Done Inline ActionsMissing empty line before. mat: Missing empty line before. | |||||
MAINTAINER= jlh@FreeBSD.org | |||||
COMMENT= Subsonic streaming media server, standalone version | |||||
LICENSE= GPLv3 | |||||
OPTIONS_GROUP= TRANSCODING | |||||
TRANSCODING_DESC= Transcoding support | |||||
OPTIONS_GROUP_TRANSCODING= FFMPEG FLAC LAME VORBIS FAAC FAAD XMP MPC APE | |||||
FFMPEG_DESC= Depend on FFmpeg for audio and video transcoding | |||||
FLAC_DESC= Depend on FLAC for transcoding | |||||
LAME_DESC= Depend on LAME for MP3 transcoding | |||||
VORBIS_DESC= Depend on oggenc/oggdec for Vorbis transcoding | |||||
FAAC_DESC= Depend on FAAD for AAC/M4A transcoding | |||||
FAAD_DESC= Depend on FAAC for AAC/M4A transcoding | |||||
XMP_DESC= Depend on XMP for module file transcoding | |||||
MPC_DESC= Depend on mpcdec for MPC transcoding | |||||
APE_DESC= Depend on mac for Monkey's Audio transcoding #' | |||||
Done Inline ActionsOut of order. mat: Out of order. | |||||
OPTIONS_DEFAULT= FFMPEG | |||||
OPTIONS_SUB= yes | |||||
FFMPEG_RUN_DEPENDS= ffmpeg:multimedia/ffmpeg | |||||
FLAC_RUN_DEPENDS= flac:audio/flac | |||||
LAME_RUN_DEPENDS= lame:audio/lame | |||||
VORBIS_RUN_DEPENDS= oggenc:audio/vorbis-tools | |||||
FAAC_RUN_DEPENDS= faac:audio/faac | |||||
FAAD_RUN_DEPENDS= faad:audio/faad | |||||
XMP_RUN_DEPENDS= xmp:audio/xmp | |||||
MPC_RUN_DEPENDS= mpcdec:audio/musepack | |||||
APE_RUN_DEPENDS= mac:audio/mac | |||||
.include <bsd.port.options.mk> | |||||
Done Inline ActionsNot needed. mat: Not needed. | |||||
NO_WRKSUBDIR= yes | |||||
NO_BUILD= yes | |||||
USE_JAVA= yes | |||||
USE_RC_SUBR= libresonic | |||||
JAVA_VERSION= 1.8+ | |||||
Done Inline ActionsHappen too late. mat: Happen too late. | |||||
Done Inline ActionsI lifted up next to the first block. I don't know where it's supposed to go. Why is it important, BTW? jlh: I lifted up next to the first block. I don't know where it's supposed to go. Why is it… | |||||
Done Inline ActionsTo make it easier for anyone to work on any port, there is a standardized way to write things in a Makefile: Chapter 14. Order of Variables in Port Makefiles. mat: To make it easier for anyone to work on any port, there is a standardized way to write things… | |||||
JAVA_RUN= yes | |||||
# Don't waste UID/GID and reuse Subsonic's user. | |||||
USERS= subsonic | |||||
GROUPS= subsonic | |||||
LIBRESONIC_HOME=/var/libresonic | |||||
PLIST_SUB+= LIBRESONIC_HOME="${LIBRESONIC_HOME}" \ | |||||
USER="${USERS}" \ | |||||
Done Inline ActionsWhy += ? mat: Why += ? | |||||
Done Inline Actionsmissing tab after = mat: missing tab after = | |||||
GROUP="${GROUPS}" | |||||
SUB_FILES= pkg-message \ | |||||
message-transcoding | |||||
SUB_LIST= LIBRESONIC_HOME="${LIBRESONIC_HOME}" \ | |||||
USER="${USERS}" \ | |||||
GROUP="${GROUPS}" \ | |||||
JAVA="${JAVA}" | |||||
do-install: | |||||
@${CAT} ${PKGDIR}/pkg-message-spacer >> ${PKGMESSAGE} | |||||
@${CAT} ${WRKDIR}/message-transcoding >> ${PKGMESSAGE} | |||||
@${CAT} ${PKGDIR}/pkg-message-spacer >> ${PKGMESSAGE} | |||||
${MKDIR} ${STAGEDIR}${DATADIR} | |||||
${INSTALL_DATA} ${WRKSRC}/libresonic.war ${STAGEDIR}${DATADIR}/ | |||||
Done Inline ActionsWhen using a do-install target, don't use a post-install one, put everything in do-install. mat: When using a do-install target, don't use a post-install one, put everything in do-install. | |||||
post-install: | |||||
${MKDIR} ${STAGEDIR}${LIBRESONIC_HOME}/transcode | |||||
post-install-FFMPEG-on: | |||||
${LN} -sf ${PREFIX}/bin/ffmpeg ${STAGEDIR}${LIBRESONIC_HOME}/transcode/ffmpeg | |||||
post-install-FLAC-on: | |||||
${LN} -sf ${PREFIX}/bin/flac ${STAGEDIR}${LIBRESONIC_HOME}/transcode/flac | |||||
post-install-LAME-on: | |||||
${LN} -sf ${PREFIX}/bin/lame ${STAGEDIR}${LIBRESONIC_HOME}/transcode/lame | |||||
Done Inline Actionsmat: [[ https://www.freebsd.org/doc/en/books/porters-handbook/special.html#staging-ex1 | Use ${RLN}… | |||||
.include <bsd.port.mk> |
missing tab after =