1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/audio/penguinsap/Makefile
Emanuel Haupt 4e74162b8b Change MAINTAINER address for my ports.
Approved by:	novel (mentor)
2005-10-06 11:57:11 +00:00

50 lines
1.1 KiB
Makefile

# New ports collection makefile for: penguinsap
# Date created: 16 Jul 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= penguinsap
PORTVERSION= 0.1
CATEGORIES= audio
MASTER_SITES= http://critical.ch/distfiles/
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= A command line Atari(TM) .sap player
USE_REINPLACE= yes
SOURCES= sapPokey pokey1 sapCpu sapEngine main pokey0
CXXFLAGS+= --no-exceptions
.if defined(WITH_OPTIMIZED_CFLAGS)
EXTRAFLAGS= -ffast-math -malign-double -finline-limit-1000000 \
-funroll-loops -fstrength-reduce -finline-functions
.endif
PLIST_FILES= bin/sap
post-patch:
# gcc 2.95.4 does not like CR/LFs
@${FIND} ${WRKSRC} -type f -exec \
${REINPLACE_CMD} -E -e 's|
||' {} \;
@${REINPLACE_CMD} -e 's|linux/soundcard\.h|sys/soundcard\.h|' \
${WRKSRC}/main.cpp
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.mk>