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