mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
- Mark ONLY_FOR_ARCHS, uses x86 assembly
- Simplify Makefile PR: 200924 Submitted by: amdmi3 Approved by: maintainer timeout (darcsis@gmail.com, 2 weeks)
This commit is contained in:
parent
582ae618f6
commit
9b0f81f6b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=391081
@ -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}
|
||||
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
|
||||
|
||||
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>
|
||||
|
@ -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/
|
Loading…
Reference in New Issue
Block a user