1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/audio/playgsf/Makefile
2021-04-14 23:04:01 +00:00

53 lines
1.3 KiB
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
PORTNAME= playgsf
PORTVERSION= 0.7.1
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://projects.raphnet.net/playgsf/ \
LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Command-line player for gsf audio files
LICENSE= GPLv2+ LGPL21 NONE
LICENSE_COMB= multi
LICENSE_FILE_LGPL21= ${WRKSRC}/libresample-0.1.3/LICENSE.txt
LIB_DEPENDS= libao.so:audio/libao
USES= dos2unix gmake localbase:ldflags
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-ccore \
--disable-optimisations
PLIST_FILES= bin/playgsf
ONLY_FOR_ARCHS= i386 amd64 powerpc64le powerpc64 powerpc
PORTSCOUT= skipv:0.7.2
post-extract:
# Don't use accidentally packaged static library
@${RM} ${WRKSRC}/libresample-0.1.3/libresample.a
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>