mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# Created by: Emanuel Haupt <ehaupt@critical.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= penguinsap
|
|
PORTVERSION= 0.1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= CRITICAL
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= Command-line Atari(TM) .sap player
|
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
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 <bsd.port.pre.mk>
|
|
|
|
_CLANG!= clang --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
|
|
|
|
.if ${CXX:T} != "clang++"
|
|
.if ${_CLANG} < 33
|
|
CXXFLAGS+= --no-exceptions
|
|
.endif
|
|
.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 ${PREFIX}/bin
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|