blob: 84f538f49242a344d184fa58c8ca1c093a682688 (
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
|
# 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>
|