From 3657d5cb0d39e774a6a7f4d15f055031c01ff483 Mon Sep 17 00:00:00 2001 From: Jason Helfman Date: Mon, 6 May 2013 09:07:30 +0000 Subject: [PATCH] - convert to USES for gettext Approved by: portmgr (bapt@) --- multimedia/avidemux2/Makefile.common | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/multimedia/avidemux2/Makefile.common b/multimedia/avidemux2/Makefile.common index 5d303b268aff..014bec982cd5 100644 --- a/multimedia/avidemux2/Makefile.common +++ b/multimedia/avidemux2/Makefile.common @@ -41,6 +41,21 @@ OPTIONS_DEFAULT= GTK2 FREETYPE FONTCONFIG OSS XVIDEO VPX XVID SDL FAAD VORBIS OPTIONS_DEFAULT+= LAME FAAC AMR .endif +.include + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +PLIST_SUB+= NLS="" +. if !defined(WITH_QT4) +PLIST_SUB+= QT_NLS="@comment " +. else +PLIST_SUB+= QT_NLS="" +. endif +.else +CMAKE_ARGS+= -DNO_NLS:BOOL=ON +PLIST_SUB+= NLS="@comment " QT_NLS="@comment " +.endif + .include # for libexecinfo: (so that __builtin_frame_address() finds the top @@ -198,19 +213,6 @@ CMAKE_ARGS+= -DOPENCORE_AMRWB:BOOL=OFF PLIST_SUB+= AMRWB="@comment " .endif -.if ${PORT_OPTIONS:MNLS} -USE_GETTEXT= yes -PLIST_SUB+= NLS="" -. if !defined(WITH_QT4) -PLIST_SUB+= QT_NLS="@comment " -. else -PLIST_SUB+= QT_NLS="" -. endif -.else -CMAKE_ARGS+= -DNO_NLS:BOOL=ON -PLIST_SUB+= NLS="@comment " QT_NLS="@comment " -.endif - .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" BROKEN= Does not compile on ia64, powerpc, or sparc64 .endif