2013-04-26 14:35:50 +02:00
|
|
|
# Created by: Joris Vandalon <joris@vandalon.nl>
|
2003-01-19 13:38:55 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-02-17 03:12:17 +01:00
|
|
|
PORTNAME= mp3c
|
2009-09-13 15:11:16 +02:00
|
|
|
PORTVERSION= 0.31
|
2015-06-17 18:11:47 +02:00
|
|
|
PORTREVISION= 2
|
2003-02-17 03:12:17 +01:00
|
|
|
CATEGORIES= audio
|
2015-06-17 18:11:47 +02:00
|
|
|
MASTER_SITES= ftp://ftp.wspse.de/linux/wspse/
|
2003-01-19 13:38:55 +01:00
|
|
|
|
2003-03-31 03:20:51 +02:00
|
|
|
MAINTAINER= joris@vandalon.nl
|
2014-06-09 13:21:52 +02:00
|
|
|
COMMENT= CD to mp3c converter with a console frontend
|
2003-01-19 13:38:55 +01:00
|
|
|
|
2015-06-17 18:11:47 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
RUN_DEPENDS= mp3info:audio/mp3info \
|
|
|
|
cdrecord:sysutils/cdrtools
|
2003-01-19 13:38:55 +01:00
|
|
|
|
2016-02-07 14:06:59 +01:00
|
|
|
USES= ncurses
|
2003-02-17 03:12:17 +01:00
|
|
|
HAS_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= "--prefix=${PREFIX}"
|
2003-01-19 13:38:55 +01:00
|
|
|
|
2014-02-21 14:35:10 +01:00
|
|
|
OPTIONS_DEFINE= NLS
|
2015-06-17 18:11:47 +02:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2015-06-17 18:11:47 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2013-04-26 14:35:50 +02:00
|
|
|
|
2015-06-17 18:11:47 +02:00
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1000031
|
|
|
|
DEFAULT_CDROM_DEVICE= cd0
|
2013-04-26 14:35:50 +02:00
|
|
|
.else
|
2015-06-17 18:11:47 +02:00
|
|
|
DEFAULT_CDROM_DEVICE= acd0
|
2009-09-13 15:11:16 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2015-06-17 18:11:47 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|rcd0d|${DEFAULT_CDROM_DEVICE}|g' \
|
|
|
|
-e 's|/dev/cdrom|/dev/${DEFAULT_CDROM_DEVICE}|g' \
|
|
|
|
${WRKSRC}/src/conf.c
|
2009-09-13 15:11:16 +02:00
|
|
|
|
2003-01-19 13:38:55 +01:00
|
|
|
post-install:
|
2015-06-17 18:11:47 +02:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/cdrip.sh ${STAGEDIR}${LOCALBASE}/bin
|
2003-01-19 13:38:55 +01:00
|
|
|
|
2015-06-17 18:11:47 +02:00
|
|
|
.include <bsd.port.post.mk>
|