Skip to content

Commit

Permalink
graphics/eos-movrec: take a different approach to unbreak the build
Browse files Browse the repository at this point in the history
Fix the bad guard around #include <unistd.h> and drop the `register'
keyword which is no longer accepted as of C++ 17 instead of forcing
the particular (less strict) C++ standard.  Reclaim maintainership.
  • Loading branch information
Alexey Dokuchaev authored and Alexey Dokuchaev committed Aug 4, 2023
1 parent f169218 commit 3dd7571
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions graphics/eos-movrec/Makefile
Expand Up @@ -4,7 +4,7 @@ PORTREVISION= 6
CATEGORIES= graphics multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/

MAINTAINER= ports@FreeBSD.org
MAINTAINER= danfe@FreeBSD.org
COMMENT= Capture short movies with Canon DSLR camera
WWW= https://sourceforge.net/projects/eos-movrec/

Expand All @@ -14,7 +14,6 @@ LIB_DEPENDS= libgphoto2.so:graphics/libgphoto2

USES= cmake compiler:c++11-lang dos2unix pkgconfig qt:5 tar:bzip2
DOS2UNIX_FILES= main.cpp
USE_CXXSTD= c++14
USE_QT= buildtools:build qmake:build core gui widgets

ICON_SIZES= 16x16 32x32 128x128 256x256 512x512
Expand All @@ -23,7 +22,9 @@ DESKTOP_ENTRIES="EOS Camera Movie Recorder" "" "${PORTNAME}" \
"eos_movrec" "Graphics;Photography;Qt;" ""

post-patch:
@${REINPLACE_CMD} -e 's|GLIBC|${OPSYS}|' ${WRKSRC}/os_api.h
@${REINPLACE_CMD} -e 's,GLIBC,${OPSYS},' ${WRKSRC}/mjpegwrt.c \
${WRKSRC}/os_api.h
@${REINPLACE_CMD} -e '/int/s,register ,,' ${WRKSRC}/histogramwnd.cpp
.for s in 16 32 128 256 512
@cd ${WRKSRC}/mac.icons && \
${MV} ${s}.png ${PORTNAME}_${s}x${s}.png
Expand Down

0 comments on commit 3dd7571

Please sign in to comment.