summaryrefslogtreecommitdiff
path: root/graphics/iulib/Makefile
blob: 42e570dd61a673c7373cb5f24e3b61cd9c8c5aed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com>
# $FreeBSD$

PORTNAME=	iulib
PORTVERSION=	0.4
PORTREVISION=	18
CATEGORIES=	graphics
MASTER_SITES=	GOOGLE_CODE

MAINTAINER=	hiroto.kagotani@gmail.com
COMMENT=	Library of image understanding-related algorithms

LICENSE=	APACHE20

BROKEN=		Unfetchable (google code has gone away)
DEPRECATED=	Unfetchable for more than six months (google code has gone away)
EXPIRATION_DATE=	2017-04-30

LIB_DEPENDS=	libpng.so:graphics/png \
		libtiff.so:graphics/tiff

OPTIONS_DEFINE=	SDL VIDIO
SDL_DESC=	Enable SDL for graphical debugging
VIDIO_DESC=	Enable Video Input/Output (using ffmpeg)

USES=		autoreconf jpeg libtool python:build tar:tgz
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib
INSTALL_TARGET=	install-strip

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSDL}
USE_SDL=	sdl gfx
PLIST_SUB+=	SDL=""
.else
CONFIGURE_ARGS+=--without-SDL
PLIST_SUB+=	SDL="@comment "
.endif

.if ${PORT_OPTIONS:MVIDIO}
LIB_DEPENDS+=	libavcodec.so:multimedia/ffmpeg
.endif

post-patch:
.if ! ${PORT_OPTIONS:MVIDIO}
	@${REINPLACE_CMD} -e 's/novidio, 0/novidio, 1/' ${WRKSRC}/configure.ac
.endif
	@${REINPLACE_CMD} -e 's/nov4l2, 0/nov4l2, 1/' ${WRKSRC}/configure.ac

pre-configure:
	@(cd ${CONFIGURE_WRKSRC} \
	  && ${SETENV} ${PYTHON_CMD} genAM.py > Makefile.am)

.include <bsd.port.mk>