1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/x11/x3270/Makefile
Niclas Zeising 4c46ca73d8 Add USES=xorg USES=gl, ports categories x
Add USES=xorg and USES=gl to ports in categories starting with 'x'
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-07 18:36:55 +00:00

68 lines
1.7 KiB
Makefile

# Created by: janek
# $FreeBSD$
PORTNAME= x3270
PORTVERSION= 3.3.15
PORTREVISION= 3
CATEGORIES= x11 net
MASTER_SITES= http://x3270.bgp.nu/download/current/
EXTRACT_SUFX= ga7-src.tgz
MAINTAINER= ecrist@secure-computing.net
COMMENT= 3270 Terminal emulator
BROKEN= unfetchable
BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf \
mkfontscale:x11-fonts/mkfontscale
# Conflict due to x3270if
CONFLICTS= c3270-*
USES= cpe iconv fonts imake:env xorg
USE_XORG= ice sm x11 xaw xext xmu xt
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-fontdir=${FONTSDIR} \
--disable-dbcs \
ac_cv_search_libiconv=${ICONV_LIB}
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
.if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+= --disable-ssl
.else
USES+= ssl
.endif
MAKE_ARGS+= COMPRESSMANCMD="${DO_NADA}" \
INSTALL="${INSTALL}" INSTALLFLAGS="${COPY}" \
INSTPGMFLAGS="${STRIP} -m ${BINMODE}" \
INSTBINFLAGS="-m ${BINMODE}" \
INSTDATFLAGS="-m ${SHAREMODE}" \
INSTMANFLAGS="-m ${MANMODE}"
CPE_VENDOR= paul_mattes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
PORTDOCS= README README.dbcs
PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
${REINPLACE_CMD} -e 's|\$$(INSTALL) -c|$$(INSTALL) $$(INSTALLFLAGS)|g' \
${WRKSRC}/Imakefile.in
post-install:
.for m in x3270-script.man x3270.man x3270if.man
@(cd ${WRKSRC} ; ${INSTALL_MAN} ${m} ${STAGEDIR}${MAN1PREFIX}/man/man1/)
.endfor
${INSTALL_MAN} ${WRKSRC}/ibm_hosts.man ${STAGEDIR}${MAN5PREFIX}/man/man5/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/Examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
@(cd ${WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>