On Wed, Nov 16, 2011 at 10:47:19PM +0100, Jeremie Le Hen wrote:
> Hi,
> 
> Pleaese Cc: me when replying, I'm not subscribed.
> 
> I'm using sysutils/pwsafe on a headless server.  My recent upgrade of
> the port pulled in numerous useless X11 libs.
> 
> - The port doesn't seem to agree to issue the password on the terminal
>   anymore;
> - The port compiles cleanly when the Makefile is reverted to rev 1.4.
> 
> Can you please revert your change, or at least provide a WITHOUT_X11
> knob as many other ports?
> 
> Thanks.
> Regards,
> -- 
> Jeremie Le Hen
> 
> Men are born free and equal.  Later on, they're on their own.
>                               Jean Yanne

Hi,

Please test the attached patch. It defaults to not bring in X11 deps.
If it works, I'll submit a PR for it.
Thanks.

Regards,
sunpoet
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/sysutils/pwsafe/Makefile,v
retrieving revision 1.5
diff -u -r1.5 Makefile
--- Makefile    21 Oct 2011 02:28:23 -0000      1.5
+++ Makefile    17 Nov 2011 01:58:46 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=      pwsafe
 PORTVERSION=   0.2.0
-PORTREVISION=  1
+PORTREVISION=  2
 CATEGORIES=    sysutils
 MASTER_SITES=  http://nsd.dyndns.org/pwsafe/releases/
 
@@ -18,19 +18,25 @@
 
 GNU_CONFIGURE= yes
 USE_GMAKE=     yes
-USE_XORG=      ice sm x11 xmu
 
 MAN1=          pwsafe.1
 PLIST_FILES=   bin/pwsafe
 
-.include <bsd.port.pre.mk>
+.if defined(WITH_X11)
+CONFIGURE_ARGS=        --with-x
+USE_XORG=      ice sm x11 xmu
+.else
+CONFIGURE_ARGS=        ac_cv_have_x="have_x=no" \
+               ac_cv_lib_ICE_IceConnectionNumber=no \
+               ac_cv_lib_X11_XOpenDisplay=no \
+               ac_cv_lib_Xmu_XmuInternAtom=no
+.endif
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/pwsafe ${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/pwsafe.1 ${PREFIX}/man/man1
+       ${INSTALL_PROGRAM} ${WRKSRC}/pwsafe ${PREFIX}/bin/
+       ${INSTALL_MAN} ${WRKSRC}/pwsafe.1 ${MAN1PREFIX}/man/man1/
 .if defined(WITH_SETUID)
        ${CHMOD} u+s ${PREFIX}/bin/pwsafe
 .endif
 
-.include <bsd.port.post.mk>
-
+.include <bsd.port.mk>

Attachment: pgpAWHAlOBaOQ.pgp
Description: PGP signature

Reply via email to