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
Hello,
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 xaw.mk 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,
Simon
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 \
${DESTDIR}${PREFIX}/share/doc/vncviewer/README
+.include "../../mk/bsd.prefs.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/,'
+.endif
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
-.include "../../x11/libXaw/buildlink3.mk"
+ # better to include xaw with Xaw-option
+#.include "../../x11/libXaw/buildlink3.mk"
+.include "../../mk/xaw.buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index