1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/devel/rhtvision/Makefile
Hye-Shik Chang cea6f09f1c o Unbreak package building when system lacks libX11.
o Support WITHOUT_X11 knob.
2002-11-19 17:10:51 +00:00

44 lines
902 B
Makefile

# New ports collection makefile for: rhtvision
# Date created: 18 June 2002
# Whom: Hye-Shik Chang
#
# $FreeBSD$
#
PORTNAME= rhtvision
PORTVERSION= 2.0.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tvision
DISTNAME= rhtvision-${PORTVERSION}.src
MAINTAINER= perky@FreeBSD.org
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
@${REINPLACE_CMD} -e 's,/usr/bin/perl,${PERL5},g' \
-e 's/\(soname.*\)intver/\1extver/g' \
${WRKSRC}/${f}
.endfor
.include <bsd.port.mk>