blob: 6134d32af54c62f3a644f745586d8ef6c1f0ac0b (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
# New ports collection makefile for: gbsplay
# Date created: 25 Jun 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= gbsplay
PORTVERSION= 0.0.8
PORTREVISION= 4
CATEGORIES= audio
MASTER_SITES= http://www.cgarbs.de/stuff/ \
http://download.berlios.de/gbsplay/ \
CRITICAL
PKGNAMEPREFIX?=
MAINTAINER= ehaupt@FreeBSD.org
COMMENT?= Emulates the sound hardware of the Nintendo Game Boy(TM)
HAS_CONFIGURE= yes
USE_GMAKE= yes
USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX}
.if ${PKGNAMEPREFIX} == ""
CONFIGURE_ARGS+= --without-xmmsplugin
MAN1= gbsplay.1 gbsinfo.1
MAN5= gbsplayrc.5
PORTDOCS= COPYRIGHT HISTORY README
OPTIONS= NAS "NAS sound output" on
.endif
.include <bsd.port.pre.mk>
.if ${PKGNAMEPREFIX} == ""
.if defined(WITH_NAS)
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
.else
CONFIGURE_ARGS+= --disable-nas
.endif
.endif
post-patch: gbsplay-post-patch
@${REINPLACE_CMD} -e 's|^\(default.*\)test|\1|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e \
's|/usr/local/include|${LOCALBASE}/include|; \
s|/usr/local/lib|${LOCALBASE}/lib|; \
s|/usr/X11R6/include||; \
s|/usr/X11R6/lib||; \
s|/usr/X11/lib|${LOCALBASE}/lib|; \
s|/usr/lib/X11|${LOCALBASE}/lib/X11|; \
s|-Os||; s|-pipe||; s|-fomit-frame-pointer||; \
s|-march=$$ARCH||' ${WRKSRC}/configure
.if ${PKGNAMEPREFIX} == ""
gbsplay-post-patch:
@${REINPLACE_CMD} -e 's|/\(etc/gbsplayrc\)|${PREFIX}/\1|' \
${WRKSRC}/gbsplay.c \
${WRKSRC}/gbsplay.in.1 \
${WRKSRC}/gbsplayrc.in.5
do-install:
.for f in ${PORTNAME} gbsinfo
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
.for f in ${MAN1} ${MAN5}
${INSTALL_MAN} ${WRKSRC}/${f} ${MAN${f:E}PREFIX}/man/man${f:E}
.endfor
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/nightmode.gbs ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample ${PREFIX}/etc/gbsplayrc.default
.if !exists(${PREFIX}/etc/gbsplayrc)
${INSTALL_DATA} ${WRKSRC}/examples/gbsplayrc_sample ${PREFIX}/etc/gbsplayrc
.endif
.for l in de en
${INSTALL_DATA} ${WRKSRC}/po/${l}.mo ${PREFIX}/share/locale/${l}/LC_MESSAGES/gbsplay.mo
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.endif
.include <bsd.port.post.mk>
|