Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / scale2x / Makefile
1 # Created by: chinsan
2 # $FreeBSD$
3
4 PORTNAME=       scale2x
5 PORTVERSION=    3.1
6 PORTREVISION=   1
7 CATEGORIES=     graphics
8 MASTER_SITES=   SF
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Real-time graphics effect able to increase the size of small bitmaps
12
13 LICENSE=        GPLv2+
14
15 LIB_DEPENDS=    libpng.so:graphics/png
16
17 GNU_CONFIGURE=  yes
18
19 CPPFLAGS+=      $$(libpng-config --I_opts)
20 LDFLAGS+=       $$(libpng-config --L_opts)
21
22 PORTEXAMPLES=   *
23 PLIST_FILES=    bin/scalex bin/scalerx \
24                 man/man1/scalex.1.gz man/man1/scalerx.1.gz
25
26 OPTIONS_DEFINE=         EXAMPLES
27 OPTIONS_DEFINE_i386=    MMX
28
29 MMX_CPPFLAGS=           -DHAVE_MMX
30
31 post-patch:
32         @${REINPLACE_CMD} -e \
33                 '/<malloc.h>/d ; \
34                  s|__i386__|HAVE_MMX| ; \
35                  s|__x86_64__|__amd64__|' ${WRKSRC}/*.[ch]
36
37 post-install:
38         @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
39         (cd ${WRKSRC}/example && ${INSTALL_DATA} *.png \
40                 ${STAGEDIR}${EXAMPLESDIR})
41
42 .include <bsd.port.mk>