blob: a539fc7e3d75fe276b74644a234d5bd941c98271 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Created by: janek
# $FreeBSD$
PORTNAME= x3270
PORTVERSION= 3.3.15
PORTREVISION= 1
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
BUILD_DEPENDS= bdftopcf:${PORTSDIR}/x11-fonts/bdftopcf \
mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
# Conflict due to x3270if
CONFLICTS= c3270-*
USES= iconv fonts imake:env
USE_XORG= ice sm x11 xaw xext xmu xt
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-fontdir=${FONTSDIR} \
--disable-dbcs
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
.if defined(WITHOUT_OPENSSL)
CONFIGURE_ARGS+= --disable-ssl
.else
USE_OPENSSL= yes
.endif
MAKE_ARGS+= COMPRESSMANCMD="${DO_NADA}" \
INSTALL="${INSTALL}" INSTALLFLAGS="${COPY}" \
INSTPGMFLAGS="${STRIP} -m ${BINMODE}" \
INSTBINFLAGS="-m ${BINMODE}" \
INSTDATFLAGS="-m ${SHAREMODE}" \
INSTMANFLAGS="-m ${MANMODE}"
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>
|