aboutsummaryrefslogtreecommitdiff
path: root/graphics/curtail/Makefile
blob: ef480be38b2255cfdda9b22fc3800076dfb1d4bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PORTNAME=	curtail
DISTVERSION=	1.3.1
CATEGORIES=	graphics print

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Simple & useful image compressor
WWW=		https://github.com/Huluti/Curtail

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	appstream-util:devel/appstream-glib
RUN_DEPENDS=	cwebp:graphics/webp \
		jpegoptim:graphics/jpegoptim \
		optipng:graphics/optipng \
		pngquant:graphics/pngquant

USES=		desktop-file-utils gettext gnome meson pkgconfig python
USE_GNOME=	glib20 gtk30

USE_GITHUB=	yes
GH_ACCOUNT=	Huluti
GH_PROJECT=	Curtail

GLIB_SCHEMAS=	com.github.huluti.Curtail.gschema.xml

NO_ARCH=	yes

BINARY_ALIAS=	python3=${PYTHON_CMD}

post-install: # adjust python path in the executable
	@${REINPLACE_CMD} -i '' -e 's|^#!.*|#!${PYTHON_CMD}|' ${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>