aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-13 20:05:28 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-13 20:05:28 +0800
commit468f0b94c1f56b89017d176865eaddd364b6caf4 (patch)
tree732b6f9ed0454b7c4eff6f6a58064f5caca26442 /audio
parent051dda84917efff12e53bb94e277be2f4ffdc892 (diff)
downloadfreebsd-ports-gnome-468f0b94c1f56b89017d176865eaddd364b6caf4.tar.gz
freebsd-ports-gnome-468f0b94c1f56b89017d176865eaddd364b6caf4.tar.zst
freebsd-ports-gnome-468f0b94c1f56b89017d176865eaddd364b6caf4.zip
Fix staging support.
Diffstat (limited to 'audio')
-rw-r--r--audio/cutmp3/Makefile6
-rw-r--r--audio/cutmp3/files/patch-Makefile50
2 files changed, 41 insertions, 15 deletions
diff --git a/audio/cutmp3/Makefile b/audio/cutmp3/Makefile
index eed1a8073646..5374feb7e98d 100644
--- a/audio/cutmp3/Makefile
+++ b/audio/cutmp3/Makefile
@@ -10,7 +10,6 @@ MASTER_SITES= http://www.puchalla-online.de/ \
MAINTAINER= dhn@FreeBSD.org
COMMENT= A small and fast command line MP3 editor
-NO_STAGE= yes
USE_BZIP2= yes
PLIST_FILES= bin/cutmp3 man/man1/cutmp3.1.gz
@@ -19,13 +18,12 @@ PORTDOCS= README README.timetable USAGE
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/Makefile
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/audio/cutmp3/files/patch-Makefile b/audio/cutmp3/files/patch-Makefile
index c10146da4238..5fe1226f406d 100644
--- a/audio/cutmp3/files/patch-Makefile
+++ b/audio/cutmp3/files/patch-Makefile
@@ -1,8 +1,8 @@
---- ./Makefile.orig 2010-05-16 10:59:44.000000000 +0200
-+++ ./Makefile 2010-06-01 20:18:57.000000000 +0200
-@@ -1,13 +1,12 @@
+--- ./Makefile.orig 2011-05-07 16:02:38.000000000 +0200
++++ ./Makefile 2014-02-13 13:02:59.627899989 +0100
+@@ -1,42 +1,37 @@
NAME=cutmp3
- VERSION=2.0.2
+ VERSION=2.0.3
-PREFIX=/usr
+PREFIX?=/usr/local
BINDIR=${PREFIX}/bin
@@ -14,19 +14,47 @@
all:
- @echo -e "\n\n*** You need readline-devel, ncurses-devel or similar to compile ${NAME} ***\n*** Maybe you want to try the binary on compile failures? ***\n\n"
- gcc -O ${CFLAGS} -c mpglib.c
- gcc -O ${CFLAGS} -c main.c
- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
-@@ -25,12 +24,8 @@
- install -d ${BINDIR}
- install ${NAME} ${BINDIR}
+- gcc -O ${CFLAGS} -c mpglib.c
+- gcc -O ${CFLAGS} -c main.c
+- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
++ cc -O ${CFLAGS} -c mpglib.c
++ cc -O ${CFLAGS} -c main.c
++ cc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
+
+ i386:
+- gcc -Wall -O -c mpglib.c
+- gcc -Wall -O -c main.c
+- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
++ cc -Wall -O -c mpglib.c
++ cc -Wall -O -c main.c
++ cc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
+
+ clean:
+ rm -f *.o
+ rm -f ${NAME}
+
+ install:
+- install -d ${BINDIR}
+- install ${NAME} ${BINDIR}
++ install -d $(DESTDIR)${BINDIR}
++ install ${NAME} $(DESTDIR)${BINDIR}
if [ ! -z "${KDEDIR}" ]; then install -m 644 ${NAME}.desktop ${KDEDIR}/share/apps/konqueror/servicemenus; elif [ -d /usr/share/apps/konqueror/servicemenus ]; then install -m 644 ${NAME}.desktop /usr/share/apps/konqueror/servicemenus; elif [ -d /opt/kde/share/apps/konqueror/servicemenus ]; then install -m 644 ${NAME}.desktop /opt/kde/share/apps/konqueror/servicemenus; elif [ -d /opt/kde3/share/apps/konqueror/servicemenus ]; then install -m 644 ${NAME}.desktop /opt/kde3/share/apps/konqueror/servicemenus; fi
- install -d ${DOCDIR}/${NAME}
- install -m 644 README* USAGE ${DOCDIR}/${NAME}
- install -d ${MANDIR}
gzip ${NAME}.1
- install -m 644 ${NAME}.1.gz ${MANDIR}
+- install -m 644 ${NAME}.1.gz ${MANDIR}
- gunzip ${NAME}.1.gz
++ install -m 644 ${NAME}.1.gz $(DESTDIR)${MANDIR}
uninstall:
rm -f ${BINDIR}/${NAME}
+ rm -f ${KDEDIR}/share/apps/konqueror/servicemenus/${NAME}.desktop
+
+ debug:
+- gcc -g -Wall -O -c mpglib.c
+- gcc -g -Wall -O -c main.c
+- gcc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses
++ cc -g -Wall -O -c mpglib.c
++ cc -g -Wall -O -c main.c
++ cc main.o mpglib.o -o ${NAME} -lm -lreadline -lncurses