diff options
author | bapt <bapt@FreeBSD.org> | 2012-05-31 01:13:06 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-05-31 01:13:06 +0800 |
commit | d6d8d77eacf8b905b8439e0baf682093fc2beffc (patch) | |
tree | b982f1cf8e56a25d6b9c179c379877e5dccb0205 /multimedia/mjpegtools | |
parent | 8dc7ec80f902c0c7dc3149a044b0e2ffa368ef06 (diff) | |
download | freebsd-ports-gnome-d6d8d77eacf8b905b8439e0baf682093fc2beffc.tar.gz freebsd-ports-gnome-d6d8d77eacf8b905b8439e0baf682093fc2beffc.tar.zst freebsd-ports-gnome-d6d8d77eacf8b905b8439e0baf682093fc2beffc.zip |
convert to new options framework
Diffstat (limited to 'multimedia/mjpegtools')
-rw-r--r-- | multimedia/mjpegtools/Makefile | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/multimedia/mjpegtools/Makefile b/multimedia/mjpegtools/Makefile index 03c60bff69d1..71f4cd7a7534 100644 --- a/multimedia/mjpegtools/Makefile +++ b/multimedia/mjpegtools/Makefile @@ -16,12 +16,9 @@ COMMENT= Set of tools to record/playback/edit videos in MPEG format LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg -OPTIONS= GTK2 "Build GTK+2 player (needs SDL)" on \ - SDL "Enable SDL support" on \ - PNG "Enable libPNG support" on \ - DV "Enable libDV support" off \ - QUICKTIME "Enable libQuickTime support" off \ - SIMD "Use cpu-specific optimizations if possible" off +OPTIONS_DEFINE= GTK2 SDL PNG DV QUICKTIME SIMD DOCS +OPTIONS_DEFAULT= GTK2 SDL PNG +QUICKTIME_DESC= Enable libQuickTime support CONFLICTS= mplex-[0-9]* @@ -61,45 +58,45 @@ CFLAGS= -O0 BROKEN= Does not build on powerpc-9 .endif -.if !defined(WITHOUT_GTK2) && defined(WITHOUT_SDL) +.if ${PORT_OPTIONS:MGTK2} + +.if empty(${PORT_OPTIONS:MSDL}) IGNORE= GTK+2 player needs SDL .endif # GTK2/SDL -.if defined(WITHOUT_GTK2) -PLIST_SUB+= GTK2:="@comment " -_HAVE_GTK= false -.else USE_GNOME+= gtk20 PLIST_SUB+= GTK2:="" -_HAVE_GTK= true +.else +PLIST_SUB+= GTK2:="@comment " +_HAVE_GTK= false .endif # GTK2 -.if defined(WITHOUT_SDL) +.if ${PORT_OPTIONS:MSDL} +USE_SDL+= gfx sdl +PLIST_SUB+= SDL:="" +.else CONFIGURE_ENV+= ac_cv_path_SDL_CONFIG=no PLIST_SUB+= SDL:="@comment " CONFIGURE_ARGS+= --without-libsdl -.else -USE_SDL+= gfx sdl -PLIST_SUB+= SDL:="" .endif # SDL -.if defined(WITHOUT_PNG) -CONFIGURE_ARGS+=--without-libpng -PLIST_SUB+= PNG:="@comment " -.else +.if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= png.6:${PORTSDIR}/graphics/png CONFIGURE_ARGS+=--with-libpng PLIST_SUB+= PNG:="" +.else +CONFIGURE_ARGS+=--without-libpng +PLIST_SUB+= PNG:="@comment " .endif # PNG -.if defined(WITH_DV) +.if ${PORT_OPTIONS:MDV} LIB_DEPENDS+= dv.4:${PORTSDIR}/multimedia/libdv CONFIGURE_ARGS+=--with-libdv .else CONFIGURE_ARGS+=--without-libdv .endif # DV -.if defined(WITH_QUICKTIME) +.if ${PORT_OPTIONS:MQUICKTIME} PLIST_SUB+= QUICKTIME="" LIB_DEPENDS+= quicktime.0:${PORTSDIR}/multimedia/libquicktime CONFIGURE_ARGS+=--with-libquicktime @@ -108,7 +105,7 @@ PLIST_SUB+= QUICKTIME="@comment " CONFIGURE_ARGS+=--without-libquicktime .endif # QUICKTIME -.if defined(WITH_SIMD) +.if ${PORT_OPTIONS:MSIMD} CONFIGURE_ARGS+=--enable-simd-accel .else CONFIGURE_ARGS+=--disable-simd-accel @@ -120,7 +117,7 @@ post-patch: /^CXXFLAGS=/s|$$ARCHFLAGS||g' ${WRKSRC}/configure post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for i in ${DOC_FILES} @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |