summaryrefslogtreecommitdiffstats
path: root/graphics/scale2x/Makefile
blob: a61502e75d6c425b12498f8d8e339fdb4a6d4156 (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
51
52
# Created by: chinsan
# $FreeBSD$

PORTNAME=	scale2x
PORTVERSION=	3.0
CATEGORIES=	graphics
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Real-time graphics effect able to increase the size of small bitmaps

LICENSE=	GPLv2 # (or later)

LIB_DEPENDS=	png15:${PORTSDIR}/graphics/png

OPTIONS_DEFINE=	DOCS EXAMPLES
OPTIONS_DEFINE_i386=	MMX

GNU_CONFIGURE=	yes
MAKE_JOBS_SAFE=	yes

CPPFLAGS+=	$$(libpng15-config --I_opts)
LDFLAGS+=	$$(libpng15-config --L_opts)

MAN1=		scalex.1 scalerx.1
PORTDOCS=	*
PORTEXAMPLES=	*
PLIST_FILES=	bin/scalex bin/scalerx

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MMMX}
CPPFLAGS+=	-DHAVE_MMX
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		'/<malloc.h>/d ; \
		 s|__i386__|HAVE_MMX| ; \
		 s|__x86_64__|__amd64__|' ${WRKSRC}/*.[ch]

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html ${DOCSDIR})
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	@${MKDIR} ${EXAMPLESDIR}
	(cd ${WRKSRC}/example && ${INSTALL_DATA} *.png ${EXAMPLESDIR})
.endif

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