Prune audio/clementine-player
[dports.git] / audio / penguinsap / Makefile
1 # Created by: Emanuel Haupt <ehaupt@critical.ch>
2 # $FreeBSD$
3
4 PORTNAME=       penguinsap
5 PORTVERSION=    0.1
6 CATEGORIES=     audio
7 MASTER_SITES=   LOCAL/ehaupt
8
9 MAINTAINER=     ehaupt@FreeBSD.org
10 COMMENT=        Command-line Atari(TM) .sap player
11
12 USES=           compiler dos2unix
13
14 SOURCES=        sapPokey pokey1 sapCpu sapEngine main pokey0
15
16 .if defined(WITH_OPTIMIZED_CFLAGS)
17 EXTRAFLAGS=     -ffast-math -malign-double -finline-limit-1000000 \
18                 -funroll-loops -fstrength-reduce -finline-functions
19 .endif
20
21 PLIST_FILES=    bin/sap
22
23 .include <bsd.port.pre.mk>
24
25 # clang can build this without -fno-exceptions
26 .if ${COMPILER_TYPE} == "gcc"
27 CXXFLAGS+=      -fno-exceptions
28 .endif
29
30 post-patch:
31         @${REINPLACE_CMD} -e 's|linux/soundcard\.h|sys/soundcard\.h|' \
32                 ${WRKSRC}/main.cpp
33         @${REINPLACE_CMD} -e 's|--no-exceptions||' ${WRKSRC}/build.inc
34
35 do-build:
36 .for f in ${SOURCES}
37         ${CXX} ${CXXFLAGS} ${EXTRAFLAGS} -c ${WRKSRC}/${f}.cpp \
38                 -o ${WRKSRC}/${f}.o
39 .endfor
40         ${CC} ${CFLAGS} ${EXTRAFLAGS} ${SOURCES:C/(.*)/${WRKSRC}\/\1.o/} \
41                 -o ${WRKSRC}/sap
42
43 do-install:
44         ${INSTALL_PROGRAM} ${WRKSRC}/sap ${STAGEDIR}${PREFIX}/bin
45
46 .include <bsd.port.post.mk>