aboutsummaryrefslogtreecommitdiff
path: root/audio/mp3chew
diff options
context:
space:
mode:
authorVolker Stolz <vs@FreeBSD.org>2005-04-19 14:19:27 +0000
committerVolker Stolz <vs@FreeBSD.org>2005-04-19 14:19:27 +0000
commitdecfe46d606ac13de38e5bc26e219013227638e8 (patch)
tree771170aa0b8a88802368b9931ae11ff0a93cee41 /audio/mp3chew
parent7babccad705ae6ba1be754ad24fd3df43c9abf01 (diff)
downloadports-decfe46d606ac13de38e5bc26e219013227638e8.tar.gz
ports-decfe46d606ac13de38e5bc26e219013227638e8.zip
Use MAKE_ARGS and PLIST_*
Notes
Notes: svn path=/head/; revision=133671
Diffstat (limited to 'audio/mp3chew')
-rw-r--r--audio/mp3chew/Makefile13
-rw-r--r--audio/mp3chew/files/patch-aa13
-rw-r--r--audio/mp3chew/pkg-plist6
3 files changed, 7 insertions, 25 deletions
diff --git a/audio/mp3chew/Makefile b/audio/mp3chew/Makefile
index 07ff87744437..ae1b6c5b986f 100644
--- a/audio/mp3chew/Makefile
+++ b/audio/mp3chew/Makefile
@@ -21,9 +21,12 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= ${PORTNAME}
USE_REINPLACE= yes
-MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
+CFLAGS+= ${PTHREAD_CFLAGS}
+MAKE_ARGS= CC="${CXX}" CXXFLAGS="${CXXFLAGS}" \
+ ARGS="${PTHREAD_LIBS} -lncurses"
-DOCFILES= CHANGELOG INSTALL README TODO
+PLIST_FILES= bin/mp3chew
+PORTDOCS= CHANGELOG INSTALL README TODO
post-patch:
@${REINPLACE_CMD} -e 's, _to, to,g' ${WRKSRC}/CMp3Filter.cc
@@ -31,10 +34,8 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mp3chew ${PREFIX}/bin
.if !defined(NOPORTDOCS)
-.for D in ${DOCFILES}
- ${MKDIR} ${PREFIX}/share/doc/mp3chew
- ${INSTALL_DATA} ${WRKSRC}/docs/$D ${PREFIX}/share/doc/mp3chew
-.endfor
+ ${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/audio/mp3chew/files/patch-aa b/audio/mp3chew/files/patch-aa
deleted file mode 100644
index cf0f5b57eaa4..000000000000
--- a/audio/mp3chew/files/patch-aa
+++ /dev/null
@@ -1,13 +0,0 @@
---- Makefile.orig Sat Nov 11 12:36:32 2000
-+++ Makefile Sun Feb 15 16:25:11 2004
-@@ -1,8 +1,9 @@
- CC = g++
- TARGET = mp3chew
-+CXXFLAGS+= -Wall ${PTHREAD_CFLAGS}
- DEPENDS = main.o CMp3Chew.o CMp3Filter.o CMp3SongList.o CMp3Header.o \
- CMp3Keys.o CMp3Display.o
--ARGS = -Wall -lpthread -lncurses
-+ARGS = ${PTHREAD_LIBS} -lncurses
-
- $(TARGET) : $(DEPENDS)
- $(CC) $(ARGS) -o $(TARGET) $(DEPENDS)
diff --git a/audio/mp3chew/pkg-plist b/audio/mp3chew/pkg-plist
deleted file mode 100644
index 4cd561321368..000000000000
--- a/audio/mp3chew/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-bin/mp3chew
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%@dirrm %%DOCSDIR%%