Changeset View
Changeset View
Standalone View
Standalone View
net-im/telegram-desktop/Makefile
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
.if ${PORT_OPTIONS:MGTK} | .if ${PORT_OPTIONS:MGTK} | ||||
USE_GNOME+= gtk30 | USE_GNOME+= gtk30 | ||||
.else | .else | ||||
GYP_DEFINES:= ${GYP_DEFINES},TDESKTOP_DISABLE_GTK_INTEGRATION | GYP_DEFINES:= ${GYP_DEFINES},TDESKTOP_DISABLE_GTK_INTEGRATION | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
# This port needs C++17 libs/compiler. | |||||
# Currently, this is not supported by USES=compiler | |||||
# Using clang does not work: libc++ in base does not support C++17. | |||||
# Using gcc does not work: using both libc++ and libstdc++ causes crashes. | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000 | |||||
IGNORE= need C++17 support in compiler and runtime | |||||
.endif | |||||
# Since 1.3.14, the clang compiler provided in 11.1 (4.0.0) gets a segmentation | |||||
# fault. | |||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1102000 | |||||
CXXFLAGS+= -DGSL_USE_STD_BYTE=0 | |||||
QMAKE_COMPILER= clang | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@cd ${WRKSRC} && \ | @cd ${WRKSRC} && \ | ||||
(${SED} -e " \ | (${SED} -e " \ | ||||
s|%%QT_VERSION%%|${QT5_VERSION}| ; \ | s|%%QT_VERSION%%|${QT5_VERSION}| ; \ | ||||
s|%%LOCALBASE%%|${LOCALBASE}| ; \ | s|%%LOCALBASE%%|${LOCALBASE}| ; \ | ||||
s|%%CFLAGS%%|${CFLAGS:C/(.*)/'\1',/}| ; \ | s|%%CFLAGS%%|${CFLAGS:C/(.*)/'\1',/}| ; \ | ||||
s|%%CXXFLAGS%%|${CXXFLAGS:C/(.*)/'\1',/}| ; \ | s|%%CXXFLAGS%%|${CXXFLAGS:C/(.*)/'\1',/}| ; \ | ||||
s|%%LDFLAGS%%|${LDFLAGS:C/(.*)/'\1',/}| ; \ | s|%%LDFLAGS%%|${LDFLAGS:C/(.*)/'\1',/}| ; \ | ||||
Show All 32 Lines |