1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/graphics/gphoto2/Makefile
Alexey Dokuchaev 6d18db4593 graphics/gphoto2: the port had been updated to version 2.5.28
- Stop asking for GNU make, switch to smaller .tar.xz distfile
- Add GitHub CDN as alternative (fallback) download location
- GC no longer needed GNU_CONFIGURE_MANPREFIX and CONFIGURE_ENV
- Install some more of those available documentation files
- Hook the test suite to our framework (sadly, requires GNU sed)

PR:		272433
Reported by:	portscout
2024-05-23 03:49:46 +00:00

51 lines
1.2 KiB
Makefile

PORTNAME= gphoto2
PORTVERSION= 2.5.28
CATEGORIES= graphics
MASTER_SITES= SF/gphoto/gphoto/${PORTVERSION} \
https://github.com/gphoto/gphoto2/releases/download/v${PORTVERSION}/
MAINTAINER= danfe@FreeBSD.org
COMMENT= Command-line frontend to libgphoto2
WWW= http://www.gphoto.org/proj/gphoto2/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexif.so:graphics/libexif \
libgphoto2.so:graphics/libgphoto2 \
libpopt.so:devel/popt
TEST_DEPENDS= gsed:textproc/gsed
USES= jpeg pkgconfig tar:xz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-cdk
TEST_TARGET= check
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
OPTIONS_DEFINE= AALIB DOCS NLS READLINE THREADS
OPTIONS_DEFAULT= AALIB READLINE THREADS
OPTIONS_SUB= yes
AALIB_DESC= Text mode capture preview support
AALIB_LIB_DEPENDS= libaa.so:graphics/aalib
AALIB_CONFIGURE_ON= --with-aalib
NLS_USES= gettext
NLS_CONFIGURE_OFF= --disable-nls
READLINE_USES= readline
READLINE_CONFIGURE_OFF= --without-readline
THREADS_CONFIGURE_OFF= --without-pthread
post-patch:
@${REINPLACE_CMD} -e '1s,bash,sh,; /SEDCOMMAND/s,sed,g&,' \
${WRKSRC}/tests/testsuite
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>