Lines 6-22
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= gsi |
8 |
PORTNAME= gsi |
9 |
PORTVERSION= 0.9.4 |
9 |
PORTVERSION= 0.9.6 |
10 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= gsi |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
|
13 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= GSI - general sound interface |
15 |
COMMENT= General sound interface |
16 |
|
|
|
17 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
18 |
|
16 |
|
|
|
17 |
USE_BZIP2= yes |
18 |
USE_REINPLACE= yes |
19 |
USE_GMAKE= yes |
19 |
USE_GMAKE= yes |
|
|
20 |
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" MYFLAGS="${CFLAGS}" OPTIMIZE="" |
20 |
INSTALLS_SHLIB= yes |
21 |
INSTALLS_SHLIB= yes |
21 |
|
22 |
|
22 |
MANCOMPRESSED= no |
23 |
MANCOMPRESSED= no |
Lines 28-59
Link Here
|
28 |
MAN8= gsi_server.8 |
29 |
MAN8= gsi_server.8 |
29 |
|
30 |
|
30 |
post-patch: |
31 |
post-patch: |
31 |
.for file in lib/gsimixer/api/mixer_oss.c lib/gsimixer/api/mixer_fbsd.c \ |
32 |
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \ |
32 |
lib/gsipcm/api/pcm_oss.c lib/gsipcm/gsipcm.c \ |
33 |
's|/usr/local/lib|\$$\{LOCALBASE\}/lib|g ; \ |
33 |
lib/gsipcm/api/pcm_fbsd.c lib/gsisynth/api/synth_oss_gus.c \ |
34 |
s|= \.0\..|= \.0|g ; \ |
34 |
lib/gsisynth/api/synth_oss_opl.c lib/gsisynth/api/synth_oss.c \ |
35 |
s|= \.2\..|= \.2|g' |
35 |
lib/gsisynth/api/midi_control_oss.c |
36 |
.for file in lib/device/gsimixer/api/mixer_fbsd.c \ |
36 |
@${SED} -e 's,machine/soundcard.h,sys/soundcard.h,' < \ |
37 |
lib/device/gsipcm/api/pcm_fbsd.c |
37 |
${WRKSRC}/${file} > ${WRKSRC}/${file}.new |
38 |
@${REINPLACE_CMD} -e \ |
38 |
@${MV} ${WRKSRC}/${file}.new ${WRKSRC}/${file} |
39 |
's|machine/soundcard.h|sys/soundcard.h|g' ${WRKSRC}/${file} |
|
|
40 |
.endfor |
41 |
.for file in server/FINISH_host_allow.c server/client.c server/conf.c |
42 |
@${REINPLACE_CMD} -e \ |
43 |
's|"/etc/|"${PREFIX}/etc/|g' ${WRKSRC}/${file} |
39 |
.endfor |
44 |
.endfor |
40 |
|
45 |
|
41 |
pre-configure: |
46 |
do-configure: |
42 |
@${SH} ${FILESDIR}/configure.sh ${PREFIX} ${WRKSRC} |
47 |
@${SH} ${FILESDIR}/configure.sh ${PREFIX} ${WRKSRC} |
43 |
|
48 |
|
44 |
post-install: |
49 |
post-install: |
45 |
@${INSTALL_DATA} ${WRKSRC}/server.conf/gsi.conf.fbsd \ |
50 |
@${INSTALL_DATA} ${WRKSRC}/server/conf/gsi.conf.fbsd \ |
46 |
${PREFIX}/etc/gsi.conf.sample |
51 |
${PREFIX}/etc/gsi.conf.sample |
47 |
.for fileNdx in gsi_server gsifile gsiplay |
52 |
.for fileNdx in gsi_server gsifile gsiplay |
48 |
@${STRIP_CMD} ${PREFIX}/bin/${fileNdx} |
53 |
@${STRIP_CMD} ${PREFIX}/bin/${fileNdx} |
49 |
.endfor |
54 |
.endfor |
50 |
.for lib in "" cd f midi_pcm mixer pcm synth |
55 |
@${ECHO_MSG} "A sample configuration file was installed as" \ |
51 |
@${STRIP_CMD} ${PREFIX}/lib/libgsi${lib}.so.[02] |
|
|
52 |
.endfor |
53 |
@${ECHO} "A sample configuration file was installed as" \ |
54 |
${PREFIX}/etc/gsi.conf.sample. |
56 |
${PREFIX}/etc/gsi.conf.sample. |
55 |
@${ECHO} "Copy and edit it to fit the system." |
57 |
@${ECHO_MSG} "Copy and edit it to fit the system." |
56 |
@${ECHO} |
58 |
@${ECHO_MSG} |
57 |
@${CAT} ${PKGMESSAGE} |
59 |
@${CAT} ${PKGMESSAGE} |
58 |
|
60 |
|
59 |
.include <bsd.port.mk> |
61 |
.include <bsd.port.mk> |