mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Use MAKE_ARGS and PLIST_*
This commit is contained in:
parent
7babccad70
commit
decfe46d60
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133671
@ -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>
|
||||
|
@ -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)
|
@ -1,6 +0,0 @@
|
||||
bin/mp3chew
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user