diff --git a/multimedia/lms/Makefile b/multimedia/lms/Makefile index 37949f44a220..e1c02f7a1c65 100644 --- a/multimedia/lms/Makefile +++ b/multimedia/lms/Makefile @@ -1,61 +1,61 @@ PORTNAME= lms DISTVERSIONPREFIX= v -DISTVERSION= 3.39.0 +DISTVERSION= 3.40.0 CATEGORIES= multimedia MAINTAINER= yuri@FreeBSD.org COMMENT= Lightweight Music Server to access music using a web interface WWW= https://github.com/epoupon/lms LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= googletest>0:devel/googletest LIB_DEPENDS= libavformat.so:multimedia/ffmpeg \ libboost_system.so:devel/boost-libs \ libconfig++.so:devel/libconfig \ libtag.so:audio/taglib \ libwthttp.so:www/wt RUN_DEPENDS= ffmpeg:multimedia/ffmpeg -USES= cmake compiler:c++17-lang cpe pkgconfig +USES= cmake compiler:c++17-lang cpe libarchive pkgconfig USE_GITHUB= yes GH_ACCOUNT= epoupon USER= nobody GROUP= nobody SUB_LIST= USER=${USER} USE_RC_SUBR= ${PORTNAME} PLIST_SUB= USER="${USER}" GROUP="${GROUP}" OPTIONS_RADIO= IMAGE_LIB OPTIONS_RADIO_IMAGE_LIB= STB MAGICK OPTIONS_DEFAULT= STB # STB is prefered by the upstream STB_DESC= Use STB as image library (uses less memory) STB_BUILD_DEPENDS= ${LOCALBASE}/include/stb/stb_image.h:devel/stb STB_CMAKE_BOOL= FREEBSD_USE_STB MAGICK_DESC= Use GraphicsMagick++ as image library MAGICK_LIB_DEPENDS= libGraphicsMagick.so:graphics/GraphicsMagick MAGICK_CMAKE_BOOL= FREEBSD_USE_MAGICK post-patch: @${REINPLACE_CMD} -e 's|"/etc/lms.conf"|"${PREFIX}/etc/lms.conf"|' \ ${WRKSRC}/src/lms/main.cpp \ ${WRKSRC}/src/tools/cover/LmsCover.cpp \ ${WRKSRC}/src/tools/recommendation/LmsRecommendation.cpp @${REINPLACE_CMD} -e 's|"/usr/|"${PREFIX}/|; s|"/var/lms/"|"/var/db/lms/"|' \ ${WRKSRC}/conf/lms.conf post-install: # link sample ${RLN} ${STAGEDIR}${DATADIR}/lms.conf ${STAGEDIR}${PREFIX}/etc/lms.conf.sample # create the DB directory ${MKDIR} ${STAGEDIR}/var/db/lms # install the PAM config file # PAM breaks, see https://github.com/epoupon/lms/issues/210 ${RLN} ${STAGEDIR}${DATADIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/pam.d/${PORTNAME} .include diff --git a/multimedia/lms/distinfo b/multimedia/lms/distinfo index 71906e590f86..d615435b3cf0 100644 --- a/multimedia/lms/distinfo +++ b/multimedia/lms/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1683493287 -SHA256 (epoupon-lms-v3.39.0_GH0.tar.gz) = 276ae24337292dd0893014ff84485697c476bd6322f09c12a07b613885d6cfad -SIZE (epoupon-lms-v3.39.0_GH0.tar.gz) = 369644 +TIMESTAMP = 1688365869 +SHA256 (epoupon-lms-v3.40.0_GH0.tar.gz) = ecdb4e8aefa182b0160afcf9830da041399097a020ba8b912bfb4b6928a36e58 +SIZE (epoupon-lms-v3.40.0_GH0.tar.gz) = 369736 diff --git a/multimedia/lms/files/patch-CMakeLists.txt b/multimedia/lms/files/patch-CMakeLists.txt index afbc6bae0452..921660903616 100644 --- a/multimedia/lms/files/patch-CMakeLists.txt +++ b/multimedia/lms/files/patch-CMakeLists.txt @@ -1,19 +1,20 @@ ---- CMakeLists.txt.orig 2022-12-22 07:55:50 UTC +--- CMakeLists.txt.orig 2023-07-02 19:48:46 UTC +++ CMakeLists.txt -@@ -19,10 +19,14 @@ find_package(Boost REQUIRED COMPONENTS system program_ +@@ -19,11 +19,15 @@ find_package(Boost REQUIRED COMPONENTS system program_ find_package(Wt REQUIRED COMPONENTS Wt Dbo DboSqlite3 HTTP) pkg_check_modules(Taglib REQUIRED IMPORTED_TARGET taglib) pkg_check_modules(Config++ REQUIRED IMPORTED_TARGET libconfig++) -pkg_check_modules(GraphicsMagick++ IMPORTED_TARGET GraphicsMagick++) +if (FREEBSD_USE_MAGICK) + pkg_check_modules(GraphicsMagick++ IMPORTED_TARGET GraphicsMagick++) +endif() pkg_check_modules(LIBAV IMPORTED_TARGET libavcodec libavutil libavformat) + pkg_check_modules(Archive REQUIRED IMPORTED_TARGET libarchive) find_package(PAM) -find_package(STB) +if (FREEBSD_USE_STB) + find_package(STB) +endif() # WT if (NOT Wt_FOUND)