freebsd-ports/audio/playgsf/Makefile
Emanuel Haupt 3ec5fd26a4 - Enable build on amd64
- Fix build on 9.1
- Heed CC, CXX, CPPFLAGS, LDFLAGS in all subdir
- Drop ABI version in LIB_DEPENDS

Approved by:	portmgr (miwi)
2013-04-03 08:37:47 +00:00

57 lines
1.2 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/ \
CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Command-line player for gsf audio files
LIB_DEPENDS= ao:${PORTSDIR}/audio/libao
USE_GMAKE= yes
USE_DOS2UNIX= yes
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= LIBS="${LDFLAGS}"
CONFIGURE_ENV+= LIBS="${LDFLAGS}"
CONFIGURE_ARGS+= --enable-ccore --disable-optimisations
PLIST_FILES= bin/playgsf
ONLY_FOR_ARCHS= i386 amd64
PORTSCOUT= skipv:0.7.2
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 901000
EXTRA_PATCHES= ${FILESDIR}/extrapatch-VBA__Util.cpp
.endif
post-patch:
@${REINPLACE_CMD} \
-e 's|\(@LDFLAGS@\)|\1 ${LDFLAGS}|' \
-e 's|\([[:space:]]*\).*configure.*|\1@true|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|^\(CFLAGS="\)\(-DLINUX\)|\1${CFLAGS} \2|' \
${WRKSRC}/configure
post-configure:
@(cd ${WRKSRC}/libresample-0.1.3; ./configure ${CONFIGURE_ENV})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>