# Created by: $FreeBSD math/hexcalc/Makefile 0 2014-01-30 00:00:00Z jhs $

PORTNAME=	hexcalc
PORTVERSION=	1.11
CATEGORIES=	math

MASTER_SITES=	http://www.berklix.com/~jhs/ftp/FreeBSD/ports/distfiles/ \
	 	ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/
#	Please make a copy to
#	 	ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/hexcalc.tar.Z

MAINTAINER=	jhs_ERASE_@berklix.com
#	"Julian H. Stacey" <jhs_ERASE_@berklix.com>
COMMENT=	A multi-radix calculator for x11

# PORTREVISION=	2

DISTNAME=	${PORTNAME}

# XORG_CAT=	app
#	Maybe later.
#	It would move from ${DISTDIR}/hexcalc..tar.Z
#	to ${DISTDIR}/xorg/app/hexcalc..tar.Z & require change in distinfo

EXTRACT_SUFX=	.tar.Z
#	Old distfile name in 8.2 was hexcalc..tar.Z & EXTRACT_SUFX was ..tar.Z
#	presumably a mistake, now shortened to normality.

# USE_IMAKE=	yes

USE_XORG=	ice sm x11 xaw xext xmu xt

MAN1=		hexcalc.1
PLIST_FILES=	bin/hexcalc man/man1/hexcalc.1.gz

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/hexcalc ${STAGEDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/hexcalc.man \
		${STAGEDIR}${MANPREFIX}/man/man1/hexcalc.1
	@# The manual installed OK on 9.1-RELEASE without do-install,
	@# but manual install failed on 9.2-RELEASE & 10.0-RELEASE,
	@# so I added do-install, that does no harm on 9.1 & 9.2.
	@# Maybe do-install can be discarded if MAN variables are set right ?

# LICENSE=	Dont know ! But its been in FreeBSD ports before.

.include <bsd.port.mk>
