From 78b607c5e49d03c2d2ca58c63ed29cab25abb2ee Mon Sep 17 00:00:00 2001 From: bapt Date: Wed, 30 May 2012 12:38:59 +0000 Subject: Convert to new options framework --- multimedia/gpac-libgpac/Makefile | 20 ++++++++------------ multimedia/iriverter/Makefile | 9 +++++---- multimedia/libfame/Makefile | 14 ++++++++------ 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/multimedia/gpac-libgpac/Makefile b/multimedia/gpac-libgpac/Makefile index abb222824ada..6a9a21f3995c 100644 --- a/multimedia/gpac-libgpac/Makefile +++ b/multimedia/gpac-libgpac/Makefile @@ -27,12 +27,8 @@ BUILD_WRKSRC= ${WRKSRC}/src INSTALL_WRKSRC= ${WRKSRC}/bin/gcc LIBVER= 1 -OPTIONS= IPV6 "IPv6 support" on \ - JPEG "JPEG support" on \ - OPENGL "OpenGL support" off \ - OPENSSL "OpenSSL support" on \ - PNG "PNG support" on \ - XVIDEO "Xvideo support (libXv)" off +OPTIONS_DEFINE= IPV6 JPEG OPENGL SSL PNG XVIDEO +OPTIONS_DEFAULT= IPV6 JPEG SSL PNG CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib @@ -49,19 +45,19 @@ CONFIGURE_ENV+= LIBVER="${LIBVER}" PTHREAD_LIBS="${PTHREAD_LIBS}" .include -.if !defined(WITHOUT_OPENSSL) +.if ${PORT_OPTIONS:MSSL} USE_OPENSSL= yes .else CONFIGURE_ARGS+= --disable-ssl .endif -.if defined(WITH_OPENGL) +.if ${PORT_OPTIONS:MOPENGL} USE_GL= gl glu .else CONFIGURE_ARGS+= --disable-opengl .endif -.if defined(WITH_XVIDEO) +.if ${PORT_OPTIONS:MXVIDEO} LIB_DEPENDS+= Xv.1:${PORTSDIR}/x11/libXv .else CONFIGURE_ARGS+= --disable-x11-xv --disable-x11-shm @@ -69,18 +65,18 @@ CONFIGURE_ARGS+= --disable-x11-xv --disable-x11-shm .include -.if defined(WITHOUT_IPV6) +.if empty(PORT_OPTIONS:MIPV6) CONFIGURE_ARGS+= --disable-ipv6 .endif -.if !defined(WITHOUT_JPEG) +.if ${PORT_OPTIONS:MJPEG} LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg CONFIGURE_ARGS+= --use-jpeg=local .else CONFIGURE_ARGS+= --use-jpeg=no .endif -.if !defined(WITHOUT_PNG) +.if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png CONFIGURE_ARGS+= --use-png=local .else diff --git a/multimedia/iriverter/Makefile b/multimedia/iriverter/Makefile index e03d6fec42bc..72931c4257e0 100644 --- a/multimedia/iriverter/Makefile +++ b/multimedia/iriverter/Makefile @@ -21,13 +21,14 @@ USE_BZIP2= yes GNU_CONFIGURE= yes USE_GMAKE= yes -OPTIONS= SWTDEVEL "Use SWT Development port" off +OPTIONS_DEFINE= SWTDEVEL +SWTDEVEL_DESC= Use SWT Development port CONFIGURE_ARGS= --with-swt="${JAVALIBDIR}/${SWT_JAR}" -.include +.include -.if defined(WITH_SWTDEVEL) +.if ${PORT_OPTIONS:MSWTDEVEL} BUILD_DEPENDS+= \ ${JAVALIBDIR}/swt-devel.jar:${PORTSDIR}/x11-toolkits/swt-devel RUN_DEPENDS+= \ @@ -41,4 +42,4 @@ RUN_DEPENDS+= \ SWT_JAR= swt.jar .endif -.include +.include diff --git a/multimedia/libfame/Makefile b/multimedia/libfame/Makefile index c1bb7bfbf045..89a765c2acec 100644 --- a/multimedia/libfame/Makefile +++ b/multimedia/libfame/Makefile @@ -23,16 +23,18 @@ MAN3= fame_close.3 fame_encode_frame.3 fame_get_object.3 fame_init.3 \ fame_open.3 fame_register.3 fame_unregister.3 fame_encode_slice.3 \ fame_start_frame.3 fame_end_frame.3 -OPTIONS= SSE "SSE optimized routines (no effect in this release)" off \ - MMX "MMX optimized routines" on +OPTIONS_DEFINE= SSE MMX +OPTIONS_DEFAULT= MMX -.include +SSE_DESC= "SSE optimized routines (no effect in this release)" -.if defined(WITH_SSE) +.include + +.if ${PORT_OPTIONS:MSSE} CONFIGURE_ARGS+= --enable-sse .endif -.if defined(WITHOUT_MMX) +.if empty(PORT_OPTIONS:MMMX) CONFIGURE_ARGS+= --disable-mmx .endif @@ -43,4 +45,4 @@ post-patch: -e 's|AC_DEFUN(AM_PATH_LIBFAME|AC_DEFUN([AM_PATH_LIBFAME]|g' \ ${WRKSRC}/libfame.m4 ${WRKSRC}/libfame.m4.in -.include +.include -- cgit