pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/yquake2



Module Name:    pkgsrc
Committed By:   khorben
Date:           Sat Feb 17 00:52:27 UTC 2024

Modified Files:
        pkgsrc/games/yquake2: Makefile PLIST

Log Message:
yquake2: fix the build on macOS

This lets the PLIST use the right filename extension for shared objects.

Tested on NetBSD/amd64 and macOS/amd64.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/games/yquake2/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/games/yquake2/PLIST

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

Modified files:

Index: pkgsrc/games/yquake2/Makefile
diff -u pkgsrc/games/yquake2/Makefile:1.25 pkgsrc/games/yquake2/Makefile:1.26
--- pkgsrc/games/yquake2/Makefile:1.25  Tue Jan 30 14:22:06 2024
+++ pkgsrc/games/yquake2/Makefile       Sat Feb 17 00:52:27 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2024/01/30 14:22:06 ryoon Exp $
+# $NetBSD: Makefile,v 1.26 2024/02/17 00:52:27 khorben Exp $
 
 DISTNAME=      quake2-8.20
 PKGNAME=       y${DISTNAME}
@@ -18,6 +18,15 @@ USE_LANGUAGES=       c99
 MAKE_FLAGS+=   WITH_SYSTEMWIDE=yes
 MAKE_FLAGS+=   WITH_SYSTEMDIR=${PREFIX}/share/yquake2
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${SHLIB_TYPE} == "dylib"
+SOEXT=                 dylib
+.else
+SOEXT=                 so
+.endif
+PLIST_SUBST+=          SOEXT=${SOEXT}
+
 INSTALLATION_DIRS+=    bin
 INSTALLATION_DIRS+=    libexec/yquake2
 INSTALLATION_DIRS+=    share/applications
@@ -36,9 +45,9 @@ do-install:
            ${DESTDIR}${PREFIX}/libexec/yquake2/quake2
        ${INSTALL_PROGRAM} ${WRKSRC}/release/q2ded \
            ${DESTDIR}${PREFIX}/libexec/yquake2/q2ded
-       ${INSTALL_LIB} ${WRKSRC}/release/baseq2/game.so \
+       ${INSTALL_LIB} ${WRKSRC}/release/baseq2/game.${SOEXT} \
            ${DESTDIR}${PREFIX}/share/yquake2/baseq2
-       ${INSTALL_LIB} ${WRKSRC}/release/*.so \
+       ${INSTALL_LIB} ${WRKSRC}/release/*.${SOEXT} \
            ${DESTDIR}${PREFIX}/libexec/yquake2
        ${INSTALL_DATA} ${FILESDIR}/yquake2.desktop \
            ${DESTDIR}${PREFIX}/share/applications

Index: pkgsrc/games/yquake2/PLIST
diff -u pkgsrc/games/yquake2/PLIST:1.3 pkgsrc/games/yquake2/PLIST:1.4
--- pkgsrc/games/yquake2/PLIST:1.3      Sun Sep 10 10:18:44 2023
+++ pkgsrc/games/yquake2/PLIST  Sat Feb 17 00:52:27 2024
@@ -1,12 +1,12 @@
-@comment $NetBSD: PLIST,v 1.3 2023/09/10 10:18:44 yhardy Exp $
+@comment $NetBSD: PLIST,v 1.4 2024/02/17 00:52:27 khorben Exp $
 bin/q2ded
 bin/quake2
 libexec/yquake2/q2ded
 libexec/yquake2/quake2
-libexec/yquake2/ref_gl1.so
-libexec/yquake2/ref_gl3.so
-libexec/yquake2/ref_gles3.so
-libexec/yquake2/ref_soft.so
+libexec/yquake2/ref_gl1.${SOEXT}
+libexec/yquake2/ref_gl3.${SOEXT}
+libexec/yquake2/ref_gles3.${SOEXT}
+libexec/yquake2/ref_soft.${SOEXT}
 share/applications/yquake2.desktop
 share/pixmaps/quake2.png
-share/yquake2/baseq2/game.so
+share/yquake2/baseq2/game.${SOEXT}



Home | Main Index | Thread Index | Old Index