Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / iulib / Makefile
1 # Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       iulib
5 PORTVERSION=    0.4
6 PORTREVISION=   17
7 CATEGORIES=     graphics
8 MASTER_SITES=   GOOGLE_CODE
9
10 MAINTAINER=     hiroto.kagotani@gmail.com
11 COMMENT=        Library of image understanding-related algorithms
12
13 LICENSE=        APACHE20
14
15 LIB_DEPENDS=    libpng.so:graphics/png \
16                 libtiff.so:graphics/tiff
17
18 OPTIONS_DEFINE= SDL VIDIO
19 SDL_DESC=       Enable SDL for graphical debugging
20 VIDIO_DESC=     Enable Video Input/Output (using ffmpeg)
21
22 USES=           autoreconf jpeg libtool python:build tar:tgz
23 GNU_CONFIGURE=  yes
24 USE_LDCONFIG=   yes
25 CPPFLAGS+=      -I${LOCALBASE}/include
26 LIBS+=          -L${LOCALBASE}/lib
27 INSTALL_TARGET= install-strip
28
29 .include <bsd.port.options.mk>
30
31 .if ${PORT_OPTIONS:MSDL}
32 USE_SDL=        sdl gfx
33 PLIST_SUB+=     SDL=""
34 .else
35 CONFIGURE_ARGS+=--without-SDL
36 PLIST_SUB+=     SDL="@comment "
37 .endif
38
39 .if ${PORT_OPTIONS:MVIDIO}
40 LIB_DEPENDS+=   libavcodec.so:multimedia/ffmpeg
41 .endif
42
43 post-patch:
44 .if ! ${PORT_OPTIONS:MVIDIO}
45         @${REINPLACE_CMD} -e 's/novidio, 0/novidio, 1/' ${WRKSRC}/configure.ac
46 .endif
47         @${REINPLACE_CMD} -e 's/nov4l2, 0/nov4l2, 1/' ${WRKSRC}/configure.ac
48
49 pre-configure:
50         @(cd ${CONFIGURE_WRKSRC} \
51           && ${SETENV} ${PYTHON_CMD} genAM.py > Makefile.am)
52
53 .include <bsd.port.mk>