ports/multimedia/wlrobs/Makefile
Jan Beich 25d6b84315 multimedia/wlrobs: unbreak build
Looks the framework cannot handle if one of the mirrors returns a
distfile with incorrect checksum.

===========================================================================
=======================<phase: fetch          >============================
=> wlrobs-8b4656a90bc7.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://hg.sr.ht/~scoopta/wlrobs/archive/8b4656a90bc7.tar.gz?dummy=/wlrobs-8b4656a90bc7.tar.gz
fetch: https://hg.sr.ht/~scoopta/wlrobs/archive/8b4656a90bc7.tar.gz?dummy=/wlrobs-8b4656a90bc7.tar.gz: size unknown
fetch:
https://hg.sr.ht/~scoopta/wlrobs/archive/8b4656a90bc7.tar.gz?dummy=/wlrobs-8b4656a90bc7.tar.gz:
size of remote file is not known
wlrobs-8b4656a90bc7.tar.gz                              22 kB   58 MBps    00s
===> Fetching all distfiles required by wlrobs-s20191120 for building
===========================================================================
=======================<phase: checksum       >============================
===> Fetching all distfiles required by wlrobs-s20191120 for building
=> SHA256 Checksum mismatch for wlrobs-8b4656a90bc7.tar.gz.
===>  Refetch for 1 more times files:  wlrobs-8b4656a90bc7.tar.gz
=> wlrobs-8b4656a90bc7.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://hg.sr.ht/~scoopta/wlrobs/archive/8b4656a90bc7.tar.gz?dummy=/wlrobs-8b4656a90bc7.tar.gz
fetch: https://hg.sr.ht/~scoopta/wlrobs/archive/8b4656a90bc7.tar.gz?dummy=/wlrobs-8b4656a90bc7.tar.gz: size unknown
fetch:
https://hg.sr.ht/~scoopta/wlrobs/archive/8b4656a90bc7.tar.gz?dummy=/wlrobs-8b4656a90bc7.tar.gz:
size of remote file is not known
wlrobs-8b4656a90bc7.tar.gz                              22 kB   49 MBps    00s
===> Fetching all distfiles required by wlrobs-s20191120 for building
===> Fetching all distfiles required by wlrobs-s20191120 for building
=> SHA256 Checksum mismatch for wlrobs-8b4656a90bc7.tar.gz.
===>  Giving up on fetching files:  wlrobs-8b4656a90bc7.tar.gz
Make sure the Makefile and distinfo file (/usr/ports/multimedia/wlrobs/distinfo)
are up to date.  If you are absolutely sure you want to override this
check, type "make NO_CHECKSUM=yes [other args]".
*** Error code 1

Reported by:	pkg-fallout
2019-11-21 15:04:12 +00:00

39 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= wlrobs
PORTVERSION= s20191120
DISTVERSIONSUFFIX= -8b4656a90bc7
CATEGORIES= multimedia
#MASTER_SITES= https://hg.sr.ht/~scoopta/${PORTNAME}/archive/${DISTVERSIONSUFFIX:S/^-//}${EXTRACT_SUFX}?dummy=/
MASTER_SITES+= LOCAL/jbeich # https://todo.sr.ht/~sircmpwn/hg.sr.ht/33
DISTNAME= ${PORTNAME}${DISTVERSIONSUFFIX}
MAINTAINER= jbeich@FreeBSD.org
COMMENT= Wayland screen capture plugin for obs-studio
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC:H}/COPYING.md
BUILD_DEPENDS= ${LOCALBASE}/include/obs/obs-module.h:multimedia/obs-studio
LIB_DEPENDS= libwayland-client.so:graphics/wayland
USES= compiler:c11 gmake localbase:ldflags
WRKSRC_SUBDIR= Release
MAKEFILE= makefile
DATADIR= ${PREFIX}/lib/obs-plugins
PORTDATA= ${PORTNAME}.so
post-patch:
@${REINPLACE_CMD} -e 's/ -O3//' \
-e '/-shared/!s/gcc/$$(CC) $$(CFLAGS)/' \
-e '/-shared/s/gcc/$$(CC) $$(LDFLAGS)/' \
${WRKSRC}/makefile \
${WRKSRC}/proto/subdir.mk \
${WRKSRC}/src/subdir.mk
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so \
${STAGEDIR}${DATADIR}/${PORTNAME}.so
.include <bsd.port.mk>