pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/chat/toxic



Module Name:    pkgsrc
Committed By:   ktnb
Date:           Wed Sep  3 17:17:43 UTC 2025

Modified Files:
        pkgsrc/chat/toxic: Makefile

Log Message:
toxic: fixed building on darwin


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/chat/toxic/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/chat/toxic/Makefile
diff -u pkgsrc/chat/toxic/Makefile:1.3 pkgsrc/chat/toxic/Makefile:1.4
--- pkgsrc/chat/toxic/Makefile:1.3      Sat Aug 30 22:44:44 2025
+++ pkgsrc/chat/toxic/Makefile  Wed Sep  3 17:17:43 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2025/08/30 22:44:44 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2025/09/03 17:17:43 ktnb Exp $
 
 DISTNAME=      toxic-0.16.1
 PKGREVISION=   1
@@ -17,8 +17,21 @@ USE_TOOLS+=  gmake pkg-config
 TOOL_DEPENDS+= asciidoc-[0-9]*:../../textproc/asciidoc
 
 MAKE_ENV+=     ENABLE_RELEASE=1
+.include "../../mk/bsd.prefs.mk"
+# on Darwin there are many X11 errors
+.if ${OPSYS} == "Darwin"
+MAKE_ENV+=     DISABLE_X11=1
+.endif
 LDFLAGS+=      ${COMPILER_RPATH_FLAG}${PREFIX}/lib/
 
+SUBST_CLASSES+=                prefix
+SUBST_SED.prefix+=     -e "s,/usr/local/opt/freealut/include,${PREFIX}/include,"
+SUBST_SED.prefix+=     -e "s,/usr/local/opt/glib/include,${PREFIX}/include,"
+SUBST_SED.prefix+=     -e "s,PKG_CONFIG_PATH,\# PKG_CONFIG_PATH,"
+SUBST_FILES.prefix+=   cfg/systems/Darwin.mk
+SUBST_STAGE.prefix=    pre-configure
+SUBST_MESSAGE.prefix=  Adapt hardcoded prefix for pkgsrc.
+
 INSTALLATION_DIRS+=    man/man1 man/man5
 
 post-install:



Home | Main Index | Thread Index | Old Index