diff options
-rw-r--r-- | net/ssvnc/Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/net/ssvnc/Makefile b/net/ssvnc/Makefile index d04dfc303a48..14c32ee2ea07 100644 --- a/net/ssvnc/Makefile +++ b/net/ssvnc/Makefile @@ -20,13 +20,13 @@ RUN_DEPENDS= stunnel:${PORTSDIR}/security/stunnel \ OPTIONS_DEFINE= ULTRAFTP DOCS ULTRAFTP_DESC= UltraVNC File Transfer support (Java required) -USES= imake:env +USES= imake:env gmake USE_XORG= xi xmu xt xaw ice xpm xext sm USE_TK_WRAPPER= yes USE_PERL5_RUN= yes -USE_GMAKE= yes -MAN1= ssvnc-gui.1 ssvncviewer.1 +MAN1= ssvnc.1 ssvncviewer.1 +NO_INSTALL_MANPAGES= yes .include <bsd.port.options.mk> @@ -37,7 +37,7 @@ PLIST_SUB+= ULTRAFTP="" PLIST_SUB+= ULTRAFTP="@comment " .endif -.if empty(PORT_OPTIONS:MDOCS) +.if ! ${PORT_OPTIONS:MDOCS} MAKE_ARGS+= DOCS="" .endif @@ -46,7 +46,7 @@ post-patch: @${REINPLACE_CMD} -e 's|[[:<:]]ssvnc[[:>:]]|ssvnc-gui|' ${WRKSRC}/man/man1/ssvnc.1 @${REINPLACE_CMD} -e 's|/usr/local/bin|${LOCALBASE}/bin|' \ -e 's|^CC =|CC ?=|' ${WRKSRC}/vncstorepw/Makefile -.if empty(PORT_OPTIONS:MULTRAFTP) +.if ! ${PORT_OPTIONS:MULTRAFTP} @${REINPLACE_CMD} -e "s|sh -c 'type javac'|:|" \ -e "s|sh -c 'type jar'|:|" \ -e 's|cd $$(JSRC);|: |' \ @@ -59,5 +59,11 @@ do-configure: post-install: @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${MAN1PREFIX}/man/man1 +.for man in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/man/man1/${man} ${MAN1PREFIX}/man/man1 +.endfor +.endif .include <bsd.port.mk> |