076885f7f6
Approved by: portmgr blanket
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# Created by: Emanuel Haupt <ehaupt@critical.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= playgsf
|
|
PORTVERSION= 0.7.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://projects.raphnet.net/playgsf/ \
|
|
LOCAL/ehaupt
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= Command-line player for gsf audio files
|
|
|
|
LIB_DEPENDS= libao.so:${PORTSDIR}/audio/libao
|
|
|
|
USES= gmake dos2unix
|
|
GNU_CONFIGURE= yes
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+= --enable-ccore --disable-optimisations
|
|
|
|
PLIST_FILES= bin/playgsf
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
PORTSCOUT= skipv:0.7.2
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's|\([[:space:]]*\).*configure.*|\1@true|' \
|
|
${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} \
|
|
-e '/^CFLAGS="-DLINUX/s|"$$| ${CFLAGS}"|' \
|
|
-e '/^LDFLAGS="-lz/s|"$$| ${LDFLAGS}"|' \
|
|
${WRKSRC}/configure
|
|
|
|
post-configure:
|
|
@(cd ${WRKSRC}/libresample-0.1.3 && ${SETENV} \
|
|
CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
|
|
CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
|
|
${CONFIGURE_ENV} ./configure)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|