aboutsummaryrefslogtreecommitdiffstats
path: root/devel/rhtvision/Makefile
blob: 3c9681a1f272a95432d705accb176a392312c19f (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
# New ports collection makefile for:    rhtvision
# Date created:     18 June 2002
# Whom:         Hye-Shik Chang
#
# $FreeBSD$
#

PORTNAME=   rhtvision
PORTVERSION=    2.0.1
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tvision
DISTNAME=   rhtvision-${PORTVERSION}.src

MAINTAINER= perky@FreeBSD.org
COMMENT=    Complete C++ Text User Interface (TUI) library

WRKSRC=     ${WRKDIR}/tvision
USE_PERL5=  yes
USE_GMAKE=  yes
USE_REINPLACE=  yes
INSTALLS_SHLIB= yes
HAS_CONFIGURE=  yes
CONFIGURE_ARGS= --prefix=${PREFIX}

.if !defined(WITHOUT_X11)
USE_XLIB=   yes
PLIST_SUB+= X11_ONLY=""
.else
PLIST_SUB+= X11_ONLY="@comment "

pre-configure:
    ${ECHO} "HAVE_X11 => no" > ${WRKSRC}/configure.cache
.endif

post-patch:
.for f in config.pl confignt.pl conflib.pl linux/compress \
    linuxso/makemak.in linuxso/makemak.pl Makefile.in
    @${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL5},g' \
        -e 's/\(soname.*\)intver/\1extver/g' \
        -e 's/\tmake/\t\\$$(MAKE)/g' \
        -e 's/  make/   $$(MAKE)/g' \
        ${WRKSRC}/${f}
.endfor

.include <bsd.port.mk>