summaryrefslogtreecommitdiffstats
path: root/graphics/icoutils/Makefile
blob: 11cb4e8a47e80a3ea9f1cfa857bda5a8643c8fd8 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=	icoutils
PORTVERSION=	0.31.0
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	SAVANNAH

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Convert/extract images in Microsoft Windows(R) icon/cursor files

LICENSE=	GPLv3

LIB_DEPENDS=	libpng.so:${PORTSDIR}/graphics/png

USES=		shebangfix tar:bzip2
SHEBANG_FILES=	extresso/*.in
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-nls

CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

PLIST_FILES=	bin/icotool bin/wrestool \
		man/man1/icotool.1.gz man/man1/wrestool.1.gz

OPTIONS_DEFINE=	RESSCRIPTS
RESSCRIPTS_DESC=	Additional resource scripts written in Perl

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MRESSCRIPTS}
RUN_DEPENDS+=	p5-libwww>=0:${PORTSDIR}/www/p5-libwww
USES+=		perl5
USE_PERL5=	run
PLIST_FILES+=	bin/extresso bin/genresscript \
		man/man1/extresso.1.gz man/man1/genresscript.1.gz
.endif

post-patch:
	@${REINPLACE_CMD} -e '/^SUBDIRS/s|extresso||' ${WRKSRC}/Makefile.in

post-install:
.if ${PORT_OPTIONS:MRESSCRIPTS}
	@(cd ${WRKSRC}/extresso && ${SETENV} ${MAKE_ENV} ${MAKE} \
		${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud