Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= grip |
8 |
PORTNAME= grip |
9 |
PORTVERSION= 3.1.10 |
9 |
PORTVERSION= 3.2.0 |
10 |
CATEGORIES= audio |
10 |
CATEGORIES= audio |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
Lines 21-37
Link Here
|
21 |
USE_GNOME= gnomehack gnomeprefix gnometarget libgnomeui vte |
21 |
USE_GNOME= gnomehack gnomeprefix gnometarget libgnomeui vte |
22 |
USE_GMAKE= yes |
22 |
USE_GMAKE= yes |
23 |
GNU_CONFIGURE= yes |
23 |
GNU_CONFIGURE= yes |
|
|
24 |
USE_REINPLACE= yes |
24 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
25 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
25 |
LDFLAGS="-L${LOCALBASE}/lib" |
26 |
LDFLAGS="-L${LOCALBASE}/lib" |
26 |
CONFIGURE_ARGS+= --disable-cdpar |
27 |
CONFIGURE_ARGS+= --disable-cdpar |
27 |
|
28 |
|
28 |
OPTIONS= CDPARANOIA "Enable cdparanoia support" off |
29 |
OPTIONS= CDPARANOIA "Ripper: Enable cdparanoia support" on \ |
|
|
30 |
CDDA2WAV "Ripper: cdda2wav: Install sysutils/cdrtools" off \ |
31 |
LAME "Encoder: lame: Install audio/lame" on \ |
32 |
BLADEENC "Encoder: bladeenc: Install audio/bladeenc" off \ |
33 |
FLAC "Encoder: flac: Install audio/flac" off \ |
34 |
GOGO "Encoder: gogo: Install audio/gogo" off \ |
35 |
VORBIS "Encoder: oggenc: Install audio/vorbis-tools" off |
29 |
|
36 |
|
30 |
.include <bsd.port.pre.mk> |
37 |
.include <bsd.port.pre.mk> |
31 |
|
38 |
|
|
|
39 |
.if defined(WITH_CDROM_DEVICE) |
40 |
DEFAULT_CDROM_DEVICE=${WITH_CDROM_DEVICE} |
41 |
.else |
42 |
.if ${OSVERSION} < 500000 |
43 |
DEFAULT_CDROM_DEVICE=/dev/acd0c |
44 |
.else |
45 |
DEFAULT_CDROM_DEVICE=/dev/acd0 |
46 |
.endif |
47 |
.endif |
48 |
|
32 |
.if defined(WITH_CDPARANOIA) |
49 |
.if defined(WITH_CDPARANOIA) |
33 |
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia |
50 |
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia |
34 |
CONFIGURE_ARGS+= --enable-cdpar |
51 |
CONFIGURE_ARGS+= --enable-cdpar |
35 |
.endif |
52 |
.endif |
36 |
|
53 |
|
|
|
54 |
.if defined(WITH_CDDA2WAV) |
55 |
RUN_DEPENDS+= cdda2wav:${PORTSDIR}/sysutils/cdrtools |
56 |
.endif |
57 |
|
58 |
.if defined(WITH_BLADEENC) |
59 |
RUN_DEPENDS+= bladeenc:${PORTSDIR}/audio/bladeenc |
60 |
.endif |
61 |
|
62 |
.if defined(WITH_FLAC) |
63 |
RUN_DEPENDS+= flac:${PORTSDIR}/audio/flac |
64 |
.endif |
65 |
|
66 |
.if defined(WITH_GOGO) |
67 |
RUN_DEPENDS+= gogo:${PORTSDIR}/audio/gogo |
68 |
.endif |
69 |
|
70 |
.if defined(WITH_LAME) |
71 |
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame |
72 |
.endif |
73 |
|
74 |
.if defined(WITH_BLADEENC) |
75 |
RUN_DEPENDS+= bladeenc:${PORTSDIR}/audio/bladeenc |
76 |
.endif |
77 |
|
78 |
.if defined(WITH_VORBIS) |
79 |
RUN_DEPENDS+= ogg123:${PORTSDIR}/audio/vorbis-tools |
80 |
.endif |
81 |
|
82 |
pre-everything:: |
83 |
.if !defined(WITH_CDROM_DEVICE) |
84 |
@${ECHO_MSG} "===> The default CDROM device is ${DEFAULT_CDROM_DEVICE}" |
85 |
@${ECHO_MSG} "===> Define WITH_CDROM_DEVICE if you want to change the default" |
86 |
@${ECHO_MSG} "===> For example, 'make WITH_CDROM_DEVICE=\"/dev/somedevice\"'" |
87 |
.endif |
88 |
|
89 |
post-patch: |
90 |
@${REINPLACE_CMD} -e 's|/dev/cdrom|${DEFAULT_CDROM_DEVICE}|' \ |
91 |
${WRKSRC}/src/grip.c |
92 |
|
37 |
.include <bsd.port.post.mk> |
93 |
.include <bsd.port.post.mk> |