mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
5dc59a82ae
Release 20.09.0: core: * Compability fix for Forms * Fix fetching of Objects failing in some cases * Fix clearing date in Annot setModified/setDate * TextSelectionPainter: support glyphless fonts * Splash: Don't try read past end of image * avoid abort() on large memory allocation * Fix memory leak on broken files * Fix potential invalid memory read * Small code improvements qt5: * Document TextAnnotation::inplaceAlign * Make Annotation::setModification/CreationDate work on existing annots * Be a bit more stubborn converting dates that come from xml * Clean as many null characters from the end as possible when converting strings glib: * Add accessor functions for PopplerAttachment * Deprecate PopplerAttachment GTime fields * Deprecate PopplerDocument date properties utils: * pdftoppm: report error and exit if output file cannot be written * Document that PDF-file can be '-' to read it from stdin build system: * cmake: Modern way to link against libpng, zlib and libtiff * cmake: Remove stray support for lcms1 in pdftocairo PR: 249060 Exp-run by: antoine
65 lines
1.8 KiB
Makefile
65 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cfiles
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.8-6
|
|
DISTVERSIONSUFFIX= -g327d47f
|
|
PORTREVISION= 6
|
|
CATEGORIES= deskutils
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Ncurses file manager written in C with vim-like keybindings
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/w3m/w3mimgdisplay:www/w3m-img \
|
|
atool:archivers/atool \
|
|
bash:shells/bash \
|
|
pdftoppm:graphics/poppler-utils
|
|
|
|
USES= shebangfix
|
|
SHEBANG_FILES= scripts/*
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= mananapr
|
|
|
|
MAKE_ARGS= CC=${CC} NCURSES_CFLAGS=-I/usr/include NCURSES_LIBS=/usr/lib/libncursesw.so
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
man/man1/${PORTNAME}.1.gz \
|
|
${DATADIR}/scripts/clearimg \
|
|
${DATADIR}/scripts/displayimg
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E '\
|
|
s,"(atool|fzf|pdftoppm)","${LOCALBASE}/bin/\1",g; \
|
|
s|"/bin/bash"|"${LOCALBASE}/bin/bash"|; \
|
|
s|CLEARIMG|"${DATADIR}/scripts/clearimg"|g; \
|
|
s|DISPLAYIMG|"${DATADIR}/scripts/displayimg"|g' \
|
|
${WRKSRC}/cf.c
|
|
@${REINPLACE_CMD} -E '\
|
|
s|IMG "/usr/share|IMG "${PREFIX}/share|; \
|
|
s|W3MIMGDISPLAY="/usr/lib/w3m/w3mimgdisplay"|W3MIMGDISPLAY="${LOCALBASE}/libexec/w3m/w3mimgdisplay"|' \
|
|
${WRKSRC}/scripts/displayimg ${WRKSRC}/scripts/clearimg
|
|
@${REINPLACE_CMD} -E '\
|
|
s|IMG "/usr/share|IMG "${PREFIX}/share|' \
|
|
${WRKSRC}/config.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/share/cfiles/scripts
|
|
.for s in clearimg displayimg
|
|
${INSTALL_SCRIPT} ${WRKSRC}/scripts/${s} ${STAGEDIR}${DATADIR}/scripts
|
|
.endfor
|
|
${INSTALL_MAN} ${WRKSRC}/cfiles.1 ${STAGEDIR}${MAN5PREFIX}/man/man1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
GOLANG_ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386
|
|
|
|
.if ${GOLANG_ONLY_FOR_ARCHS:M${ARCH}} # textproc/fzf isn't available on powerpc because go isn't available there
|
|
RUN_DEPENDS+= fzf:textproc/fzf
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|