1 # Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
8 MASTER_SITES= GOOGLE_CODE
10 MAINTAINER= hiroto.kagotani@gmail.com
11 COMMENT= Library of image understanding-related algorithms
15 LIB_DEPENDS= libpng.so:graphics/png \
16 libtiff.so:graphics/tiff
18 OPTIONS_DEFINE= SDL VIDIO
19 SDL_DESC= Enable SDL for graphical debugging
20 VIDIO_DESC= Enable Video Input/Output (using ffmpeg)
22 USES= autoreconf jpeg libtool python:build tar:tgz
25 CPPFLAGS+= -I${LOCALBASE}/include
26 LIBS+= -L${LOCALBASE}/lib
27 INSTALL_TARGET= install-strip
29 .include <bsd.port.options.mk>
31 .if ${PORT_OPTIONS:MSDL}
35 CONFIGURE_ARGS+=--without-SDL
36 PLIST_SUB+= SDL="@comment "
39 .if ${PORT_OPTIONS:MVIDIO}
40 LIB_DEPENDS+= libavcodec.so:multimedia/ffmpeg
44 .if ! ${PORT_OPTIONS:MVIDIO}
45 @${REINPLACE_CMD} -e 's/novidio, 0/novidio, 1/' ${WRKSRC}/configure.ac
47 @${REINPLACE_CMD} -e 's/nov4l2, 0/nov4l2, 1/' ${WRKSRC}/configure.ac
50 @(cd ${CONFIGURE_WRKSRC} \
51 && ${SETENV} ${PYTHON_CMD} genAM.py > Makefile.am)
53 .include <bsd.port.mk>