blob: f8c8fdc1e18634de0ddeee6467489d96eb925b9c (
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
57
58
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= xmms-sapplug
DISTVERSION= 0.3f
PORTREVISION= 5
CATEGORIES= audio
MASTER_SITES= LOCAL/ehaupt
DISTNAME= sapplug-xmms-${DISTVERSION}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= XMMS input plugin for playing 8bit Atari(TM) .sap audio files
LICENSE= GPLv2
BUILD_DEPENDS= xmms:multimedia/xmms
RUN_DEPENDS= xmms:multimedia/xmms
USES= gmake compiler
USE_GNOME= glib12
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
WRKSRC= ${WRKDIR}/sapplug-${DISTVERSION}
PLIST_FILES= lib/xmms/Input/libsap.so
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
CFLAGS_amd64= -fpic -DPIC
CFLAGS_ia64= -fpic -DPIC
.include <bsd.port.pre.mk>
# clang can build this without -fno-exceptions
.if ${COMPILER_TYPE} == "gcc"
CXXFLAGS+= -fno-exceptions
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CXXFLAGS+= -fPIC -fpic -funroll-all-loops -fno-strength-reduce \
-finline-functions -fomit-frame-pointer
CFLAGS+= -fPIC -fpic -funroll-all-loops -fomit-frame-pointer \
-fno-strength-reduce
.endif
post-patch:
@${REINPLACE_CMD} -e 's|^\(}\);\(\ //.*\)|\1\2|' \
${WRKSRC}/saplib/pokeyNamespace.h
@${REINPLACE_CMD} -e 's|^\(C[[:alpha:]]*\)|\1?|' \
${WRKSRC}/saplib/Makefile
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xmms/Input
${INSTALL_LIB} ${WRKSRC}/libsap.so \
${STAGEDIR}${PREFIX}/lib/xmms/Input/libsap.so
.include <bsd.port.post.mk>
|