91a4c28de9
regparm is strictly i386, but clang allows it on amd64. Building on other architectures fails with: In file included from zoom.c:56: In file included from ./zoom.h:30: ./formulas.h:53:63: error: 'regparm' is not valid on this platform int (*calculate) (number_t, number_t, number_t, number_t) REGISTERS(3); ^ ~ ./config.h:42:38: note: expanded from macro 'REGISTERS' GCC builts in just fine.
40 lines
948 B
Makefile
40 lines
948 B
Makefile
# Created by: Andrey Zakhvatov
|
|
|
|
PORTNAME= bb
|
|
DISTVERSION= 1.3rc1
|
|
PORTREVISION= 2
|
|
CATEGORIES= misc
|
|
MASTER_SITES= SF/aa-project/${PORTNAME}/${DISTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= High quality audio-visual demonstration for text terminal
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libaa.so:graphics/aalib \
|
|
libmikmod.so:audio/libmikmod
|
|
|
|
GNU_CONFIGURE= yes
|
|
WRKSRC= ${WRKDIR}/bb-1.3.0
|
|
PORTDOCS= README
|
|
PLIST_FILES= bin/bb man/man1/bb.1.gz share/bb/bb.s3m share/bb/bb2.s3m \
|
|
share/bb/bb3.s3m
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} != amd64 && ${ARCH} != i386
|
|
USES+= compiler:gcc-c++11-lib
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -E -e "s@#include +<malloc.h>@#include <stdlib.h>@g" \
|
|
-e 's, REGISTERS \(3\),,g'
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|