1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/audio/playgsf/Makefile
John Marino 6b0cee2259 audio/playgsf: Remove packaged static library which circumvents Makefile
It appears that the static resample library should not have been part
of the distribution tarball.  It's presence causes libresample.a not to
be built and to be used instead.  It was detected by DF's ar programs
which reported it as malformed.  Fix the distribution issue by removing
the pre-existing library and force it to be rebuilt.

Approved by:	just-fix-it
2016-12-17 17:54:00 +00:00

54 lines
1.3 KiB
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
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
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>