Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Sep 2005 14:38:21 -0400
From:      Serge Gagnon <serge.gagnon@b2b2c.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/85715: [PATCH] multimedia/lxdvdrip now build vamps
Message-ID:  <E1EBzNl-0005yf-43@quenix1.dyndns.org>
Resent-Message-ID: <200509041840.j84IeFiS055730@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         85715
>Category:       ports
>Synopsis:       [PATCH] multimedia/lxdvdrip now build vamps
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 04 18:40:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Serge Gagnon
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
me
>Environment:
System: FreeBSD quenix1.dyndns.org 5.4-STABLE FreeBSD 5.4-STABLE #0: Sat Aug 6 12:15:25 EDT 2005 root@quenix1.dyndns.org:/usr/obj/usr/src/sys/OCEAN i386


>Description:
	Now lxdvdrip builds ${WRKDIR}/vamps that is needed if you
	want to run lxdvdrip in partcopy mode.

	New file: files/patch-vamps:Makefile

>How-To-Repeat:
>Fix:


--- patch-lxdvdrip-Makefile begins here ---
--- multimedia/lxdvdrip/Makefile.orig	Sun Sep  4 14:22:35 2005
+++ multimedia/lxdvdrip/Makefile	Sun Sep  4 14:26:31 2005
@@ -27,13 +27,16 @@
 	(cd ${WRKSRC}; \
 	${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
 	-ldvdread -lm -o lxdvdrip lxdvdrip.c; \
-	${CC} ${CFLAGS} -lm -o lxac3scan lxac3scan.c)
+	${CC} ${CFLAGS} -lm -o lxac3scan lxac3scan.c); \
+	(cd ${WRKSRC}/vamps; \
+	${MAKE});
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/lxdvdrip ${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKSRC}/lxac3scan ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/lxdvdrip.1 ${PREFIX}/man/man1
 	${INSTALL_DATA} ${WRKSRC}/doc-pak/lxdvdrip.conf.* ${PREFIX}/etc
+	${INSTALL_PROGRAM} ${WRKSRC}/vamps/vamps ${PREFIX}/bin
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
 	cd ${WRKSRC}/doc-pak && ${CP} Changelog* README.* TODO freebsd.doc ${DOCSDIR}
--- patch-lxdvdrip-Makefile ends here ---

--- patch-vamps:Makefile begins here ---
--- Makefile.orig	Wed Sep 15 15:21:37 2004
+++ Makefile	Sun Sep  4 14:28:22 2005
@@ -14,7 +14,7 @@
 
 CC     = gcc
 CFLAGS = -Wall -O3 -fomit-frame-pointer -fexpensive-optimizations \
-         -funroll-loops -march=i686 -mcpu=i686 -falign-functions=4
+         -funroll-loops -march=$(CPUTYPE)  -falign-functions=4
 STATIC =
 STRIP  = strip
 
@@ -22,7 +22,7 @@
 all:			vamps
 
 vamps:			vamps.o requant.o
-			$(CC) -o $@ $(STATIC) vamps.o requant.o -lpthread
+			$(CC) -o $@ $(STATIC) vamps.o requant.o -lpthread -lm
 			$(STRIP) $@
 
 requant.o:		requant.h putvlc.h getvlc.h
--- patch-vamps:Makefile ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EBzNl-0005yf-43>