Changeset View
Changeset View
Standalone View
Standalone View
head/multimedia/avidemux/Makefile.common
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | |||||
. else | . else | ||||
PLIST_SUB+= QT_NLS="@comment " | PLIST_SUB+= QT_NLS="@comment " | ||||
. endif | . endif | ||||
.else | .else | ||||
CMAKE_ARGS+= -DNO_NLS:BOOL=ON | CMAKE_ARGS+= -DNO_NLS:BOOL=ON | ||||
PLIST_SUB+= NLS="@comment " QT_NLS="@comment " | PLIST_SUB+= NLS="@comment " QT_NLS="@comment " | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | |||||
# is this kosher? the result seems to run tho... (see ports/185997) | |||||
.if $(COMPILER_FEATURES:Mlibc++) | |||||
LDFLAGS+= -lc++ | |||||
.endif | |||||
#.if ${COMPILER_TYPE} == clang | |||||
USE_GCC= yes | |||||
#.endif | |||||
# for libexecinfo: (so that __builtin_frame_address() finds the top | # for libexecinfo: (so that __builtin_frame_address() finds the top | ||||
# of the stack) | # of the stack) | ||||
.if ${ARCH} == "amd64" | .if ${ARCH} == "amd64" | ||||
CFLAGS+= -fno-omit-frame-pointer | CFLAGS+= -fno-omit-frame-pointer | ||||
#MAKE_ENV+= ARCH=x86_64 | #MAKE_ENV+= ARCH=x86_64 | ||||
#CONFIGURE_ENV+= ARCH=x86_64 | #CONFIGURE_ENV+= ARCH=x86_64 | ||||
.endif | .endif | ||||
.if !exists(/usr/lib/libexecinfo.so) | .if !exists(/usr/lib/libexecinfo.so) | ||||
▲ Show 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | |||||
PLIST_SUB+= AMRNB="" | PLIST_SUB+= AMRNB="" | ||||
PLIST_SUB+= AMRWB="" | PLIST_SUB+= AMRWB="" | ||||
.else | .else | ||||
CMAKE_ARGS+= -DOPENCORE_AMRNB:BOOL=OFF | CMAKE_ARGS+= -DOPENCORE_AMRNB:BOOL=OFF | ||||
PLIST_SUB+= AMRNB="@comment " | PLIST_SUB+= AMRNB="@comment " | ||||
CMAKE_ARGS+= -DOPENCORE_AMRWB:BOOL=OFF | CMAKE_ARGS+= -DOPENCORE_AMRWB:BOOL=OFF | ||||
PLIST_SUB+= AMRWB="@comment " | PLIST_SUB+= AMRWB="@comment " | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | |||||
# is this kosher? the result seems to run tho... (see ports/185997) | |||||
.if $(COMPILER_FEATURES:Mlibc++) | |||||
LDFLAGS+= -lc++ | |||||
.endif | |||||
#.if ${COMPILER_TYPE} == clang | |||||
USE_GCC= yes | |||||
#.endif | |||||
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" | .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" | ||||
BROKEN= Does not compile on ia64, powerpc, or sparc64 | BROKEN= Does not compile on ia64, powerpc, or sparc64 | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${MKDIR} ${CONFIGURE_WRKSRC}/config | @${MKDIR} ${CONFIGURE_WRKSRC}/config | ||||
@${LN} -s ${LOCALBASE}/include/iconv.h ${CONFIGURE_WRKSRC}/config | @${LN} -s ${LOCALBASE}/include/iconv.h ${CONFIGURE_WRKSRC}/config | ||||
@${REINPLACE_CMD} 's|-ldl||' ${WRKSRC}/avidemux_core/CMakeLists.txt | @${REINPLACE_CMD} 's|-ldl||' ${WRKSRC}/avidemux_core/CMakeLists.txt | ||||
post-configure-common: | post-configure-common: | ||||
@${FIND} ${CONFIGURE_WRKSRC} -name link.txt -print0 | \ | @${FIND} ${CONFIGURE_WRKSRC} -name link.txt -print0 | \ | ||||
${XARGS} -0 ${REINPLACE_CMD} 's|-ldl||g' | ${XARGS} -0 ${REINPLACE_CMD} 's|-ldl||g' |