1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/graphics/fotoxx/Makefile
Alexey Dokuchaev 790a53bad2 graphics/fotoxx: update the port to version 23.1
When disabling needless CXXFLAGS pollution, simply guard the
Makefile part with an unset variable instead of removing all
the code, this simplifies the patch and (hopefully) makes it
more robust against future changes.

Reported by:	portscout
2023-02-01 18:50:08 +00:00

45 lines
1.1 KiB
Makefile

PORTNAME= fotoxx
PORTVERSION= 23.1
CATEGORIES= graphics
MASTER_SITES= https://kornelix.net/downloads/downloads/
MAINTAINER= danfe@FreeBSD.org
COMMENT= Image editing and collection management program
WWW= https://kornelix.net/fotoxx/fotoxx.html
LICENSE= GPLv3+
LIB_DEPENDS= libchamplain-gtk-0.12.so:graphics/libchamplain \
libclutter-gtk-1.0.so:graphics/clutter-gtk3 \
liblcms2.so:graphics/lcms2 \
libpng.so:graphics/png \
libtiff.so:graphics/tiff
RUN_DEPENDS= xdg-open:devel/xdg-utils \
exiftool:graphics/p5-Image-ExifTool \
ufraw-batch:graphics/ufraw
USES= desktop-file-utils gmake gnome jpeg pkgconfig
USE_GNOME= cairo glib20 gdkpixbuf2 gtk30
ALL_TARGET= fotoxx
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e \
'/#include <sys\/prctl\.h>/d' ${WRKSRC}/f.meta.cc
@${REINPLACE_CMD} -e \
's,pidof,pgrep -d\\\\ ,' ${WRKSRC}/fotoxx.cc
@${REINPLACE_CMD} -e \
'/#include/s,wait\.h,sys/&,' ${WRKSRC}/fotoxx.h
@${REINPLACE_CMD} -e \
's|/usr/share/fotoxx|${DATADIR}|' ${WRKSRC}/fotoxx.desktop
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fotoxx
.include <bsd.port.mk>