# Created by: Emanuel Haupt # $FreeBSD: head/audio/penguinsap/Makefile 376388 2015-01-06 09:36:21Z ehaupt $ PORTNAME= penguinsap PORTVERSION= 0.1 CATEGORIES= audio MASTER_SITES= LOCAL/ehaupt MAINTAINER= ehaupt@FreeBSD.org COMMENT= Command-line Atari(TM) .sap player USES= compiler dos2unix SOURCES= sapPokey pokey1 sapCpu sapEngine main pokey0 .if defined(WITH_OPTIMIZED_CFLAGS) EXTRAFLAGS= -ffast-math -malign-double -finline-limit-1000000 \ -funroll-loops -fstrength-reduce -finline-functions .endif PLIST_FILES= bin/sap .include # clang can build this without -fno-exceptions .if ${COMPILER_TYPE} == "gcc" CXXFLAGS+= -fno-exceptions .endif post-patch: @${REINPLACE_CMD} -e 's|linux/soundcard\.h|sys/soundcard\.h|' \ ${WRKSRC}/main.cpp @${REINPLACE_CMD} -e 's|--no-exceptions||' ${WRKSRC}/build.inc do-build: .for f in ${SOURCES} ${CXX} ${CXXFLAGS} ${EXTRAFLAGS} -c ${WRKSRC}/${f}.cpp \ -o ${WRKSRC}/${f}.o .endfor ${CC} ${CFLAGS} ${EXTRAFLAGS} ${SOURCES:C/(.*)/${WRKSRC}\/\1.o/} \ -o ${WRKSRC}/sap do-install: ${INSTALL_PROGRAM} ${WRKSRC}/sap ${STAGEDIR}${PREFIX}/bin .include