1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/graphics/pqiv/Makefile
Danilo Egea Gondolfo d69c1f49df graphics/pqiv: Update to 2.13.2
- Move USES to a better place (portlint).
- Convert the BACKENDS option GROUP to MULTI as pqiv needs at least one
  backend to compile.
- Enable more formats by default to make the package more useful.
  LIBARCHIVE, LIBAV (for video), POPPLER (for PDF) and WEBP were added
  to the list. In the Debian package, whose pqiv developer is the
  package maintainer, all the backends seem to be enabled by default.
- Default to GTK3. This is the default in the Debian package too.
- Update pkg-descr according to the current README.markdown from the
  upstream project.

Changelog: https://github.com/phillipberndt/pqiv/releases/tag/2.13.2
2024-11-04 17:22:47 +00:00

86 lines
2.0 KiB
Makefile

PORTNAME= pqiv
PORTVERSION= 2.13.2
CATEGORIES= graphics
MAINTAINER= danilo@FreeBSD.org
COMMENT= Pretty Quick Image Viewer
WWW= https://github.com/phillipberndt/pqiv
LICENSE= GPLv2
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
libfreetype.so:print/freetype2
BUILD_DEPENDS= bash:shells/bash
USES= compiler gettext-runtime gmake gnome pkgconfig xorg
USE_GITHUB= yes
GH_ACCOUNT= phillipberndt
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= GTK
OPTIONS_SINGLE_GTK= GTK2 GTK3
OPTIONS_MULTI= BACKENDS
OPTIONS_MULTI_BACKENDS= LIBARCHIVE LIBAV PIXBUF POPPLER SPECTRE WAND WEBP
LIBARCHIVE_DESC= Libarchive formats support
LIBAV_DESC= Video support
SPECTRE_DESC= PS/EPS support
WAND_DESC= ImageMagick image processing support
OPTIONS_DEFAULT= GTK3 LIBARCHIVE LIBAV PIXBUF POPPLER WEBP
USE_XORG= x11
USE_GNOME= cairo gdkpixbuf2
HAS_CONFIGURE= yes
LIBARCHIVE_CONFIGURE_WITH= archive archive_cbx
LIBARCHIVE_USES= libarchive
LIBAV_CONFIGURE_WITH= libav
LIBAV_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
PIXBUF_CONFIGURE_WITH= gdkpixbuf
POPPLER_CONFIGURE_WITH= poppler
POPPLER_LIB_DEPENDS= libpoppler-glib.so:graphics/poppler-glib
SPECTRE_CONFIGURE_WITH= spectre
SPECTRE_LIB_DEPENDS= libspectre.so:print/libspectre
WAND_CONFIGURE_WITH= wand
WAND_USES= magick:6
WEBP_CONFIGURE_WITH= webp
WEBP_LIB_DEPENDS= libwebp.so:graphics/webp
GTK2_CONFIGURE_ON= --gtk-version=2
GTK2_USE= GNOME=gtk20
GTK3_CONFIGURE_ON= --gtk-version=3
GTK3_USE= GNOME=gtk30
MAKEFILE= GNUmakefile
PORTDOCS= README.markdown
PLIST_FILES= bin/pqiv share/man/man1/pqiv.1.gz
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
post-patch:
@${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \
-e '/PQIV_DISABLE_PEDANTIC/d' \
-e '/PQIV_ENABLE_PEDANTIC/d' \
${WRKSRC}/pqiv.c
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pqiv ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/pqiv.1 ${STAGEDIR}${PREFIX}/share/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>