2013-05-06 10:31:29 +02:00
|
|
|
# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
|
2009-05-31 22:24:14 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= iulib
|
2009-06-11 16:46:44 +02:00
|
|
|
PORTVERSION= 0.4
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 11
|
2009-05-31 22:24:14 +02:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= GOOGLE_CODE
|
2009-06-11 16:46:44 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
2009-05-31 22:24:14 +02:00
|
|
|
|
|
|
|
MAINTAINER= hiroto.kagotani@gmail.com
|
|
|
|
COMMENT= A library of image understanding-related algorithms
|
|
|
|
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
|
2010-02-05 12:46:55 +01:00
|
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
2009-06-11 16:46:44 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
2009-05-31 22:24:14 +02:00
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
OPTIONS_DEFINE= SDL VIDIO
|
|
|
|
SDL_DESC= Enable SDL for graphical debugging
|
|
|
|
VIDIO_DESC= Enable Video Input/Output (using ffmpeg)
|
2009-05-31 22:24:14 +02:00
|
|
|
|
2012-10-10 00:12:13 +02:00
|
|
|
USE_GCC= any
|
2009-06-11 16:46:44 +02:00
|
|
|
USE_PYTHON_BUILD= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool aclocal automake autoconf
|
2013-07-16 07:42:36 +02:00
|
|
|
ACLOCAL_ARGS= --automake-acdir=${ACLOCAL_DIR} -I${LOCALBASE}/share/aclocal
|
2009-08-02 21:36:34 +02:00
|
|
|
AUTOMAKE_ARGS= --add-missing
|
2009-05-31 22:24:14 +02:00
|
|
|
USE_LDCONFIG= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2009-05-31 22:24:14 +02:00
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2009-05-31 22:24:14 +02:00
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2009-06-18 00:31:37 +02:00
|
|
|
USE_SDL= sdl gfx
|
|
|
|
PLIST_SUB+= SDL=""
|
2013-05-06 10:31:29 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-SDL
|
|
|
|
PLIST_SUB+= SDL="@comment "
|
2009-05-31 22:24:14 +02:00
|
|
|
.endif
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ${PORT_OPTIONS:MVIDIO}
|
2009-05-31 22:24:14 +02:00
|
|
|
LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg
|
2010-02-11 13:26:35 +01:00
|
|
|
.endif
|
|
|
|
|
2009-05-31 22:24:14 +02:00
|
|
|
post-patch:
|
2013-05-06 10:31:29 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MVIDIO}
|
2009-05-31 22:24:14 +02:00
|
|
|
@${REINPLACE_CMD} -e 's/novidio, 0/novidio, 1/' ${WRKSRC}/configure.ac
|
|
|
|
.endif
|
2010-02-11 13:26:35 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/nov4l2, 0/nov4l2, 1/' ${WRKSRC}/configure.ac
|
2009-05-31 22:24:14 +02:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
@(cd ${CONFIGURE_WRKSRC} \
|
2009-06-11 16:46:44 +02:00
|
|
|
&& ${SETENV} ${PYTHON_CMD} genAM.py >Makefile.am \
|
2009-05-31 22:24:14 +02:00
|
|
|
&& ${SETENV} ${AUTOTOOLS_ENV} ${LIBTOOLIZE} --automake)
|
|
|
|
|
|
|
|
run-autotools: run-autotools-aclocal run-autotools-automake run-autotools-autoconf
|
|
|
|
|
2013-05-06 10:31:29 +02:00
|
|
|
.include <bsd.port.mk>
|