pkgsrc-Users archive

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

Patch for net/tightvncviewer, to use other Xaw(s) implementations


I'm using tightvncviewer from PKGSRC-2013Q (I haven't updated the package, but I
don't see much difference in the Makefile since then), I patched the makefile to compile against neXtaw
or whatever's set by ${XAW_TYPE}.

I think it could be included upstream because the files are really nice and smart...
I made such a patch for libotf if anyone's interested (I'm compiling on a machine with static Xfree)

Thank you in advance,


diff -Naur --exclude work --exclude CVS pkgsrc/net/tightvncviewer.orig/Makefile pkgsrc/net/tightvncviewer/Makefile
--- pkgsrc/net/tightvncviewer.orig/Makefile     Tue Oct 23 17:19:13 2012
+++ pkgsrc/net/tightvncviewer/Makefile  Wed Feb 24 21:49:27 2021
@@ -33,8 +33,20 @@
        ${INSTALL_DATA} ${WRKSRC}/vncviewer/README                      \
+.include "../../mk/"
+.if ${XAW_TYPE} == "neXtaw" 
+SUBST_CLASSES+=        nextaw
+SUBST_STAGE.nextaw=    pre-configure
+SUBST_MESSAGE.nextaw=  Must patch c files to include neXtaw, link is automatic
+SUBST_FILES.nextaw=    vncviewer/*.c     #  only 4 files, popup dialogs desktop fullscreen
+SUBST_SED.nextaw=      's,Xaw/,neXtaw/,'
 .include "../../devel/zlib/"
 .include "../../mk/"
-.include "../../x11/libXaw/"
+ # better to include xaw with Xaw-option
+#.include "../../x11/libXaw/"
+.include "../../mk/"
 .include "../../x11/libXt/"
 .include "../../mk/"

Home | Main Index | Thread Index | Old Index