diff options
-rw-r--r-- | audio/ifp-line/Makefile | 39 | ||||
-rw-r--r-- | audio/ifp-line/distinfo | 4 | ||||
-rw-r--r-- | audio/ifp-line/files/patch-Makefile | 35 |
3 files changed, 27 insertions, 51 deletions
diff --git a/audio/ifp-line/Makefile b/audio/ifp-line/Makefile index 9e618e3821b5..f1bb76cf04cf 100644 --- a/audio/ifp-line/Makefile +++ b/audio/ifp-line/Makefile @@ -1,36 +1,47 @@ -# ex:ts=8 -# New ports collection makefile for: ifp-line -# Date created: Sep 21, 2004 -# Whom: riggs -# +# Created by: riggs # $FreeBSD$ -# PORTNAME= ifp-line -PORTVERSION= 0.2.4.6 +PORTVERSION= 0.3 CATEGORIES= audio MASTER_SITES= SF/ifp-driver/${PORTNAME}/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Command line interface to iRiver music players -MAN1= ifp.1 +LICENSE= GPLv2 + +USE_ICONV= yes +USE_AUTOTOOLS= aclocal autoheader automake autoconf +ACLOCAL_ARGS= -I m4 +MAKE_JOBS_UNSAFE= yes + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +MAN1= ifp.1 +PORTDOCS= NEWS README TIPS nonroot.sh PLIST_FILES+= bin/ifp .include <bsd.port.pre.mk> .if ${OSVERSION} < 800069 LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb +.else +LDFLAGS+= -lusb .endif post-patch: -.if ${OSVERSION} >= 800069 - @${REINPLACE_CMD} -E -e 's,`libusb-config --cflags`,,g' \ - -e 's,`libusb-config --libs`,-lusb,g' ${WRKSRC}/Makefile + @${REINPLACE_CMD} -e \ + '/LIBUSB/s|ERROR|WARN|' ${WRKSRC}/configure.ac + +do-install: + (cd ${WRKSRC} && ${INSTALL_PROGRAM} ifp ${PREFIX}/bin) + (cd ${WRKSRC} && ${INSTALL_MAN} ifp.1 ${MANPREFIX}/man/man1) +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) .endif - -post-install: - @${CAT} ${.CURDIR}/pkg-message + @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/audio/ifp-line/distinfo b/audio/ifp-line/distinfo index 68c3b7a2d7e1..309fd6e31824 100644 --- a/audio/ifp-line/distinfo +++ b/audio/ifp-line/distinfo @@ -1,2 +1,2 @@ -SHA256 (ifp-line-0.2.4.6.tar.gz) = db2851958303b0b67167c1f5ad13dae78af4dd8da95e23fcc15272e90424f776 -SIZE (ifp-line-0.2.4.6.tar.gz) = 24699 +SHA256 (ifp-line-0.3.tar.gz) = 2d44807abbd5d2202d253b550b867dfa3776a71bf6d3f202b0f1254e66325257 +SIZE (ifp-line-0.3.tar.gz) = 138272 diff --git a/audio/ifp-line/files/patch-Makefile b/audio/ifp-line/files/patch-Makefile deleted file mode 100644 index 98c8b7d1e10f..000000000000 --- a/audio/ifp-line/files/patch-Makefile +++ /dev/null @@ -1,35 +0,0 @@ ---- Makefile.orig Mon Oct 10 22:44:32 2005 -+++ Makefile Mon Oct 10 22:49:35 2005 -@@ -1,11 +1,7 @@ - # $Id: Makefile,v 1.9 2004/11/19 07:08:02 yamajun Exp $ - --CFLAGS = `libusb-config --cflags` -Wall -g --LDFLAGS = `libusb-config --libs` --PREFIX ?= /usr/local --BINDIR ?= ${PREFIX}/bin --MANDIR ?= ${PREFIX}/man/man1 --INSTALL ?= /usr/bin/install -+CFLAGS+= `libusb-config --cflags` -+LDFLAGS+= `libusb-config --libs` - - OBJS = ifp.o ifp_routines.o unicodehack.o - -@@ -13,15 +9,9 @@ - ifp: $(OBJS) - $(CC) -o ifp $(OBJS) $(LDFLAGS) - --$(BINDIR): -- mkdir -p $(BINDIR) -- --$(MANDIR): -- mkdir -p $(MANDIR) -- --install: ifp $(BINDIR) $(MANDIR) -- $(INSTALL) -c ifp $(BINDIR) -- $(INSTALL) -c -m 644 ifp.1 $(MANDIR) -+install: ifp -+ @${BSD_INSTALL_PROGRAM} ifp $(PREFIX)/bin -+ @${BSD_INSTALL_MAN} ifp.1 $(PREFIX)/man/man1 - - ifp.o: ifp_routines.h - ifp_routines.o: ifp_routines.h unicodehack.h |