--- Makefile.orig 2011-11-28 19:34:31.000000000 +0100 +++ Makefile 2011-11-28 19:33:47.000000000 +0100 @@ -18,13 +18,16 @@ GNU_CONFIGURE= yes USE_GMAKE= yes -USE_XORG= ice sm x11 xmu MAN1= pwsafe.1 PLIST_FILES= bin/pwsafe .include +.if exists(${LOCALBASE}/lib/libX11.so) +USE_XORG= ice sm x11 xmu +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pwsafe ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/pwsafe.1 ${PREFIX}/man/man1