blob: a27bd17133c29559c543a0c2433d7a2fb43879d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# New ports collection makefile for: playgsf
# Date created: 10 Jul 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= playgsf
PORTVERSION= 0.7.1
CATEGORIES= audio
MASTER_SITES= http://projects.raphnet.net/playgsf/ \
http://critical.ch/distfiles/ \
http://energy.critical.ch/distfiles/
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= A command line player for gsf audio files
LIB_DEPENDS= ao.3:${PORTSDIR}/audio/libao
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_GCC= 3.4+
# disable optimization flags to avoid a possible bug in gcc
# (gcc tries to allocate memory in an endless loop)
CFLAGS+= -O0
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= LIBS="${LDFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ENV+= CC="${CC}" CXX="${CXX}" LDFLAGS="${LDFLAGS}" LIBS="${LDFLAGS}" CFLAGS="${CFLAGS}"
PLIST_FILES= bin/playgsf
# contains x86 assembler
ONLY_FOR_ARCHS= i386
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.mk>
|