1 # Created by: Emanuel Haupt <ehaupt@critical.ch>
7 MASTER_SITES= LOCAL/ehaupt
9 MAINTAINER= ehaupt@FreeBSD.org
10 COMMENT= Command-line Atari(TM) .sap player
12 USES= compiler dos2unix
14 SOURCES= sapPokey pokey1 sapCpu sapEngine main pokey0
16 .if defined(WITH_OPTIMIZED_CFLAGS)
17 EXTRAFLAGS= -ffast-math -malign-double -finline-limit-1000000 \
18 -funroll-loops -fstrength-reduce -finline-functions
23 .include <bsd.port.pre.mk>
25 # clang can build this without -fno-exceptions
26 .if ${COMPILER_TYPE} == "gcc"
27 CXXFLAGS+= -fno-exceptions
31 @${REINPLACE_CMD} -e 's|linux/soundcard\.h|sys/soundcard\.h|' \
33 @${REINPLACE_CMD} -e 's|--no-exceptions||' ${WRKSRC}/build.inc
37 ${CXX} ${CXXFLAGS} ${EXTRAFLAGS} -c ${WRKSRC}/${f}.cpp \
40 ${CC} ${CFLAGS} ${EXTRAFLAGS} ${SOURCES:C/(.*)/${WRKSRC}\/\1.o/} \
44 ${INSTALL_PROGRAM} ${WRKSRC}/sap ${STAGEDIR}${PREFIX}/bin
46 .include <bsd.port.post.mk>