b9d316ef1d
on i386, build code.o with -O0 to work around a gcc bug.
41 lines
815 B
Makefile
41 lines
815 B
Makefile
# Ports collection makefile for "hoc", the High Order Calculator
|
|
# $OpenBSD: Makefile,v 1.12 2000/04/10 00:40:28 espie Exp $
|
|
|
|
DISTNAME= hoc
|
|
PKGNAME= hoc-1.1
|
|
CATEGORIES= math
|
|
NEED_VERSION= 1.210
|
|
MASTER_SITES= http://cm.bell-labs.com/cm/cs/who/bwk/
|
|
EXTRACT_SUFX= .sh
|
|
|
|
EXTRACT_CMD= ${SH}
|
|
EXTRACT_BEFORE_ARGS= # empty
|
|
EXTRACT_AFTER_ARGS= # empty
|
|
|
|
MAINTAINER= ian@openbsd.org
|
|
|
|
LICENSE_TYPE= BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
FAKE= Yes
|
|
|
|
ALL_TARGET= hoc
|
|
MAKE_FILE= makefile
|
|
|
|
# Bug-fix for gcc 2.95.2
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
pre-build:
|
|
cd ${WRKSRC} && make code.o CFLAGS=-O0
|
|
.endif
|
|
|
|
|
|
WRKDIST= ${WRKDIR}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hoc ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/hoc.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|