svn commit: r391081 - in head/audio/wavegain: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Wed Jul 1 17:23:53 UTC 2015


Author: amdmi3
Date: Wed Jul  1 17:23:52 2015
New Revision: 391081
URL: https://svnweb.freebsd.org/changeset/ports/391081

Log:
  - Mark ONLY_FOR_ARCHS, uses x86 assembly
  - Simplify Makefile
  
  PR:		200924
  Submitted by:	amdmi3
  Approved by:	maintainer timeout (darcsis at gmail.com, 2 weeks)

Deleted:
  head/audio/wavegain/files/patch-Makefile.linux
Modified:
  head/audio/wavegain/Makefile

Modified: head/audio/wavegain/Makefile
==============================================================================
--- head/audio/wavegain/Makefile	Wed Jul  1 16:58:06 2015	(r391080)
+++ head/audio/wavegain/Makefile	Wed Jul  1 17:23:52 2015	(r391081)
@@ -12,26 +12,21 @@ COMMENT=	Program that applies ReplayGain
 
 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>


More information about the svn-ports-all mailing list