diff options
Diffstat (limited to 'graphics/eos-movrec/Makefile')
-rw-r--r-- | graphics/eos-movrec/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/graphics/eos-movrec/Makefile b/graphics/eos-movrec/Makefile new file mode 100644 index 000000000000..2ec83244c170 --- /dev/null +++ b/graphics/eos-movrec/Makefile @@ -0,0 +1,42 @@ +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= eos-movrec +DISTVERSION= 0.3.2_beta +PORTREVISION= 6 +CATEGORIES= graphics multimedia +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${DISTVERSION}/ + +MAINTAINER= ports@FreeBSD.org +COMMENT= Capture short movies with Canon DSLR camera + +LICENSE= GPLv2 + +LIB_DEPENDS= libgphoto2.so:graphics/libgphoto2 + +USES= cmake dos2unix pkgconfig qt:5 tar:bzip2 +DOS2UNIX_FILES= main.cpp +USE_QT= buildtools_build qmake_build core gui widgets + +ICON_SIZES= 16x16 32x32 128x128 256x256 512x512 + +DESKTOP_ENTRIES="EOS Camera Movie Recorder" "" "${PORTNAME}" \ + "eos_movrec" "Graphics;Photography;Qt;" "" + +post-patch: + @${REINPLACE_CMD} -e 's|GLIBC|${OPSYS}|' ${WRKSRC}/os_api.h +.for s in 16 32 128 256 512 + @cd ${WRKSRC}/mac.icons && \ + ${MV} ${s}.png ${PORTNAME}_${s}x${s}.png +.endfor + +post-install: +.for s in ${ICON_SIZES} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/ + ${INSTALL_DATA} ${WRKSRC}/mac.icons/${PORTNAME}_${s}.png \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png +.endfor + ${LN} -sf ../icons/hicolor/32x32/apps/${PORTNAME}.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/ + +.include <bsd.port.mk> |