aboutsummaryrefslogtreecommitdiffstats
path: root/x11/x3270/Makefile
blob: 4548f6fe442d4975c1a79b6ad5136c99bb70e56a (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
# Created by: janek
# $FreeBSD$

PORTNAME=   x3270
PORTVERSION=    3.3.10
CATEGORIES= x11 net
MASTER_SITES=   http://x3270.bgp.nu/download/
EXTRACT_SUFX=   ga5-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

USES=       iconv imake:env
USE_XORG=   ice sm x11 xaw xext xmu xt
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=    --with-fontdir=${PREFIX}/lib/X11/fonts/local --disable-dbcs
CONFIGURE_ENV=  LIBS="-L${PREFIX}/lib"
CPPFLAGS+=  -I${PREFIX}/include
LDFLAGS+=   -L${PREFIX}/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} ${_BINOWNGRP} -m ${BINMODE}" \
        INSTBINFLAGS="${_BINOWNGRP} -m ${BINMODE}" \
        INSTDATFLAGS="${_SHROWNGRP} -m ${SHAREMODE}" \
        INSTMANFLAGS="${_MANOWNGRP} -m ${MANMODE}"

WRKSRC=     ${WRKDIR}/x3270-${PORTVERSION:R}
MAN1=       x3270.1 x3270if.1 x3270-script.1
MAN5=       ibm_hosts.5
MANCOMPRESSED=  no

NO_STAGE=   yes
post-patch:
    ${REINPLACE_CMD} -e 's|\$$(INSTALL) -c|$$(INSTALL) $$(INSTALLFLAGS)|g' \
        ${WRKSRC}/Imakefile.in

.include <bsd.port.mk>