diff --git a/net-im/nchat/Makefile b/net-im/nchat/Makefile index f6882ae82149..305462827fbf 100644 --- a/net-im/nchat/Makefile +++ b/net-im/nchat/Makefile @@ -1,36 +1,44 @@ PORTNAME= nchat PORTVERSION= 5.12.21 DISTVERSIONPREFIX= v CATEGORIES= net-im EXTRACT_ONLY= ${GH_ACCOUNT}-${PORTNAME}-v${PORTVERSION}_GH0.tar.gz MAINTAINER= osa@FreeBSD.org COMMENT= Another yet Telegram client WWW= https://github.com/d99kris/nchat LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake gperf localbase:ldflags ncurses:port \ python:run pkgconfig readline shebangfix ssl sqlite USE_GITHUB= yes GH_ACCOUNT= d99kris LDFLAGS+= -lexecinfo CMAKE_ARGS+= -DCLIP_X11_WITH_PNG=OFF \ -DCMAKE_INSTALL_MANDIR=share/man \ -DCURSES_CURSES_LIBRARY="${LOCALBASE}/lib/libncurses.so" \ -DCURSES_FORM_LIBRARY="${LOCALBASE}/lib/libform.so" \ -DCURSES_INCLUDE_PATH="${LOCALBASE}/include/ncurses" \ -DCURSES_NCURSES_LIBRARY="${LOCALBASE}/lib/libncursesw.so" \ -DHAS_DYNAMICLOAD=OFF \ -DHAS_SHARED_LIBS=ON \ -DHAS_WHATSAPP=OFF SHEBANG_FILES= src/compose +.include + +.if ${ARCH} == powerpc || ${ARCH} == powerpc64 +PLIST_SUB+= LITTLE_ENDIAN="@comment " +.else +PLIST_SUB+= LITTLE_ENDIAN="" +.endif + post-install: (cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s libtgchat.so libtgchat) .include diff --git a/net-im/nchat/pkg-plist b/net-im/nchat/pkg-plist index 28787105f055..bec48a956960 100644 --- a/net-im/nchat/pkg-plist +++ b/net-im/nchat/pkg-plist @@ -1,29 +1,29 @@ bin/nchat lib/libduchat.so lib/libncutil.so -lib/libtdclientshared.so +%%LITTLE_ENDIAN%%lib/libtdclientshared.so lib/libtgchat -lib/libtgchat.so +%%LITTLE_ENDIAN%%lib/libtgchat.so libexec/nchat/compose share/man/man1/nchat.1.gz %%DATADIR%%/themes/basic-color/color.conf %%DATADIR%%/themes/basic-color/usercolor.conf %%DATADIR%%/themes/catppuccin-mocha/color.conf %%DATADIR%%/themes/catppuccin-mocha/usercolor.conf %%DATADIR%%/themes/default/color.conf %%DATADIR%%/themes/dracula/color.conf %%DATADIR%%/themes/dracula/usercolor.conf %%DATADIR%%/themes/espresso/color.conf %%DATADIR%%/themes/espresso/usercolor.conf %%DATADIR%%/themes/gruvbox-dark/color.conf %%DATADIR%%/themes/gruvbox-dark/usercolor.conf %%DATADIR%%/themes/solarized-dark-higher-contrast/color.conf %%DATADIR%%/themes/solarized-dark-higher-contrast/usercolor.conf %%DATADIR%%/themes/tokyo-night/color.conf %%DATADIR%%/themes/tokyo-night/usercolor.conf %%DATADIR%%/themes/tomorrow-night/color.conf %%DATADIR%%/themes/tomorrow-night/usercolor.conf %%DATADIR%%/themes/zenbones-dark/color.conf %%DATADIR%%/themes/zenbones-dark/usercolor.conf %%DATADIR%%/themes/zenburned/color.conf %%DATADIR%%/themes/zenburned/usercolor.conf