- Fix the build with GCC 4.2 [1]

- Drop old-school USE_GETOPT_LONG
- Tidy up Makefile and pkg-descr

Reported by:	pointyhat (logs) [1]
This commit is contained in:
Alexey Dokuchaev 2007-07-02 15:41:11 +00:00
parent 1995c66e00
commit 3bd162063c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=194659
2 changed files with 8 additions and 9 deletions

View file

@ -1,6 +1,6 @@
# New ports collection makefile for: rioutil # New ports collection makefile for: rioutil
# Date created: 01 July 2001 # Date created: 01 July 2001
# Whom: greid # Whom: George Reid <greid@FreeBSD.org>
# #
# $FreeBSD$ # $FreeBSD$
# #
@ -13,12 +13,11 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME} MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= A program to inferface with the Rio600, Rio800 and psa[play devices COMMENT= A program to inferface with the Rio600, Rio800, and psa[play devices
LIB_DEPENDS= usb-0.1.8:${PORTSDIR}/devel/libusb LIB_DEPENDS= usb-0.1.8:${PORTSDIR}/devel/libusb
USE_AUTOTOOLS= libtool:15 USE_AUTOTOOLS= libtool:15
USE_GETOPT_LONG= yes
USE_GMAKE= yes USE_GMAKE= yes
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
@ -32,5 +31,8 @@ LDFLAGS= -L${LOCALBASE}/lib
post-extract: post-extract:
@${RM} -f ${WRKSRC}/src/getopt* @${RM} -f ${WRKSRC}/src/getopt*
# Fix for GCC 4.2
@${REINPLACE_CMD} -e 's,read_buffer = .*),(&),' \
${WRKSRC}/librioutil/rio.c
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -4,7 +4,4 @@ Blue/dnna's third, fourth, and fifth generations of flash MP3 players
On many players, it goes beyond the packaged software by providing On many players, it goes beyond the packaged software by providing
downloading. downloading.
WWW: http://rioutil.sourceforge.net/ WWW: http://rioutil.sourceforge.net/
- George Reid
greid@FreeBSD.org