diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-05-06 08:31:29 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-05-06 08:31:29 +0000 |
commit | cda59ea3e25f7188d5070e5a9ee5d0af11627402 (patch) | |
tree | 933a79805e8e74784ee3f4b8399955b260e7b423 /graphics/iulib/Makefile | |
parent | 381250fd12c0b35545d8073b16e86cf0e561e9be (diff) |
Convert to new options framework
Notes
Notes:
svn path=/head/; revision=317482
Diffstat (limited to 'graphics/iulib/Makefile')
-rw-r--r-- | graphics/iulib/Makefile | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/graphics/iulib/Makefile b/graphics/iulib/Makefile index 7ef0163bd1e0..44dbb862867a 100644 --- a/graphics/iulib/Makefile +++ b/graphics/iulib/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: iulib -# Date created: 2009-05-20 -# Whom: Hiroto Kagotani <hiroto.kagotani@gmail.com> -# +# Created by: Hiroto Kagotani <hiroto.kagotani@gmail.com> # $FreeBSD$ -# PORTNAME= iulib PORTVERSION= 0.4 @@ -19,8 +15,9 @@ LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \ jpeg.11:${PORTSDIR}/graphics/jpeg \ tiff.4:${PORTSDIR}/graphics/tiff -OPTIONS= SDL "Enable SDL for graphical debugging" off \ - VIDIO "Enable Video Input/Output (using ffmpeg)" off +OPTIONS_DEFINE= SDL VIDIO +SDL_DESC= Enable SDL for graphical debugging +VIDIO_DESC= Enable Video Input/Output (using ffmpeg) MAKE_JOBS_SAFE= yes USE_GCC= any @@ -32,22 +29,22 @@ USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITH_SDL) -CONFIGURE_ARGS+=--without-SDL -PLIST_SUB+= SDL="@comment " -.else +.if ${PORT_OPTIONS:MSDL} USE_SDL= sdl gfx PLIST_SUB+= SDL="" +.else +CONFIGURE_ARGS+=--without-SDL +PLIST_SUB+= SDL="@comment " .endif -.if defined(WITH_VIDIO) +.if ${PORT_OPTIONS:MVIDIO} LIB_DEPENDS+= avcodec.1:${PORTSDIR}/multimedia/ffmpeg .endif post-patch: -.if !defined(WITH_VIDIO) +.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 @@ -59,4 +56,4 @@ pre-configure: run-autotools: run-autotools-aclocal run-autotools-automake run-autotools-autoconf -.include <bsd.port.post.mk> +.include <bsd.port.mk> |