aboutsummaryrefslogtreecommitdiffstats
path: root/net/tn5250/Makefile
blob: 7461d367ce2557496ef530f54f29525c43f71856 (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
# New ports collection makefile for:    tn5250
# Date created:         20 January 2000
# Whom:             Elias Mandouvalos <ocean@compulink.gr>
#
# $FreeBSD$
#

PORTNAME=   tn5250
PORTVERSION=    0.17.3
PORTREVISION=   1
CATEGORIES= net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    5250 Telnet protocol and Terminal

USE_GNOME=  gnomehack gnometarget pkgconfig
USE_OPENSSL=    yes
USE_GETOPT_LONG=    yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --enable-os-dir=no --with-ssl=${OPENSSLBASE}
INSTALLS_SHLIB= yes

MAN1=       lp5250d.1 scs2ascii.1 scs2pdf.1 scs2ps.1 tn5250.1
MAN5=       tn5250rc.5

CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

.if defined(WITH_SLANG)
LIB_DEPENDS+=   slang.1:${PORTSDIR}/devel/libslang
PKGNAMESUFFIX=  -slang
CONFIGURE_ARGS+=    --with-slang=yes
LDFLAGS+=   -lcurses
.else
CONFIGURE_ARGS+=    --with-slang=no
.endif

pre-everything::
.if !defined(WITH_SLANG)
    @${ECHO_MSG}
    @${ECHO_MSG} "If you want to compile with S/Lang support,"
    @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SLANG=yes\""
    @${ECHO_MSG}
.endif

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/freebsd/5250keys ${PREFIX}/bin
.for file in README sample.termcap us.5250.kbd
    ${INSTALL_DATA} ${WRKSRC}/freebsd/${file} ${DATADIR}
.endfor

.include <bsd.port.mk>