1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/emulators/simh-hp3000/Makefile
Kyle Evans 834586c272 emulators/simh-hp3000: fix the build with LLVM 11.
Similar to the patch for emulators/simh-hp2100, drop an -fcommon in to fix
the build in the face of GCC 10 / LLVM 11 switching the default to
-fno-common.

Minor cleanup while we're here, remove USES= compiler and just use ${CC} for
the compiler.

PR:		248872
MFH:		2020Q3 (-fno-common build fix)
2020-08-29 02:23:58 +00:00

47 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= hp3000
DISTVERSION= 3.11-0.8
CATEGORIES= emulators
MASTER_SITES= http://simh.trailing-edge.com/hp/releases/:src \
http://simh.trailing-edge.com/hp/docs/:app \
http://www.ml1.org.uk/distfiles/:src \
http://www.ml1.org.uk/distfiles/:app
PKGNAMEPREFIX= simh-
DISTFILES= HP3000-source-release-${DISTVERSION:E}.zip:src
DIST_SUBDIR= simh-hp
EXTRACT_ONLY= HP3000-source-release-${DISTVERSION:E}.zip
MAINTAINER= bob@eager.cx
COMMENT= Emulates classic HP 3000 computers
LICENSE= SIMHv1
LICENSE_NAME= SIMH License
LICENSE_FILE= ${FILESDIR}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
RUN_DEPENDS= ${LOCALBASE}/share/doc/hpdoc/simh_doc.pdf:emulators/simh-hpdoc
USES= gmake dos2unix zip
NO_WRKSUBDIR= yes
CONFLICTS_INSTALL= simh-3.[789]*
DOS2UNIX_GLOB= *.c *.h *.txt *.mak makefile
SUB_FILES= hp3000.1
.include <bsd.port.pre.mk>
do-build:
(cd ${WRKSRC}; GCC=${CC} ${GMAKE} -C SCP hp3000)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hp3000 ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKDIR}/hp3000.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/SCP/doc/*.txt ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/SCP/doc/hp3000_guide.pdf ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>