aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-07-02 01:23:52 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-07-02 01:23:52 +0800
commita32e0ca42d8f3d210051c186d9b74f98156957a5 (patch)
tree12928261dbae1f205f199b5e76edefc6540e9f67 /audio
parent5e5e0eed74ec919d77f9343732bbf7faf31f700c (diff)
downloadfreebsd-ports-gnome-a32e0ca42d8f3d210051c186d9b74f98156957a5.tar.gz
freebsd-ports-gnome-a32e0ca42d8f3d210051c186d9b74f98156957a5.tar.zst
freebsd-ports-gnome-a32e0ca42d8f3d210051c186d9b74f98156957a5.zip
- Mark ONLY_FOR_ARCHS, uses x86 assembly
- Simplify Makefile PR: 200924 Submitted by: amdmi3 Approved by: maintainer timeout (darcsis@gmail.com, 2 weeks)
Diffstat (limited to 'audio')
-rw-r--r--audio/wavegain/Makefile21
-rw-r--r--audio/wavegain/files/patch-Makefile.linux11
2 files changed, 8 insertions, 24 deletions
diff --git a/audio/wavegain/Makefile b/audio/wavegain/Makefile
index e22a278e0ca9..35e6291c93dd 100644
--- a/audio/wavegain/Makefile
+++ b/audio/wavegain/Makefile
@@ -12,26 +12,21 @@ COMMENT= Program that applies ReplayGain to wave files
LIB_DEPENDS= libsndfile.so:${PORTSDIR}/audio/libsndfile
+ONLY_FOR_ARCHS= i386 amd64
+ONLY_FOR_ARCHS_REASON= uses x86 assembly
+
USES= gmake dos2unix zip
DOS2UNIX_FILES= audio.c wavegain.c
PLIST_FILES= bin/wavegain
-WRKSRC= ${WRKDIR}/WaveGain-${PORTVERSION}
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN= Does not compile on ia64, powerpc, or sparc64
-.endif
-
-post-patch:
- @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/Makefile.linux
+WRKSRC= ${WRKDIR}/WaveGain-${PORTVERSION}
-do-configure:
- @cd ${WRKSRC} && ${CP} Makefile.linux Makefile
+do-build:
+ @cd ${WRKSRC} && ${CC} ${CFLAGS} *.c -o ${PORTNAME} \
+ -DHAVE_CONFIG_H -lm -lsndfile -L${LOCALBASE}/lib
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/audio/wavegain/files/patch-Makefile.linux b/audio/wavegain/files/patch-Makefile.linux
deleted file mode 100644
index 047b9d073750..000000000000
--- a/audio/wavegain/files/patch-Makefile.linux
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.linux.orig 2005-11-30 12:17:14.000000000 +0100
-+++ Makefile.linux 2013-08-28 13:02:43.817494398 +0200
-@@ -1,5 +1,7 @@
-+CC ?= cc
-+
- all:
-- gcc *.c -o wavegain -DHAVE_CONFIG_H -lm -lsndfile
-+ ${CC} *.c -o wavegain -DHAVE_CONFIG_H -lm -lsndfile -L%%LOCALBASE%%/lib
-
- install:
- install -d /usr/bin/