ports/119908: [maintainer] multimedia/handbrake
Jona Joachim
jaj at hcl-club.lu
Fri Jan 25 00:40:04 UTC 2008
The following reply was made to PR ports/119908; it has been noted by GNATS.
From: Jona Joachim <jaj at hcl-club.lu>
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: ports/119908: [maintainer] multimedia/handbrake
Date: Fri, 25 Jan 2008 01:34:08 +0100
The above patch is not very clean and I forgot to remove the BROKEN
section.
Here is a better and cleaner version of the patch.
It was successfully tested on amd64 by elliot.schlegelmilch AT
gmail.com.
--- /usr/ports/multimedia/handbrake/Makefile 2008-01-18
08:32:28.000000000 +0100 +++ Makefile 2008-01-24
21:01:16.000000000 +0100 @@ -7,6 +7,7 @@
PORTNAME= handbrake
PORTVERSION= 0.9.1
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES=
http://saintdevelopment.com/mirror/handbrake/:main \
http://junk.phantomgorilla.com/hb/:main \ @@ -59,15 +60,12 @@
WRKSRC= ${WRKDIR}/HandBrake
PLIST_FILES= bin/handbrake
-JAM?= ${LOCALBASE}/bin/jam
+# -dx: verbose build, -q: quit immediately upon first error
+JAM?= ${LOCALBASE}/bin/jam -dx -q
APPLY?= /usr/bin/apply
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
-BROKEN= Does not compile
-.endif
-
# nasm/yasm needed by x264
.if ${ARCH}=="i386"
BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
@@ -75,6 +73,11 @@
BUILD_DEPENDS+= yasm>=0.6.0:${PORTSDIR}/devel/yasm
.endif
+# needed for amd64, doesn't work with i386
+.if ${ARCH}!="i386"
+CFLAGS+= -fPIC -DPIC
+.endif
+
CONFIGURE_ENV+= PKG_CONFIG_PATH=${WRKSRC}/contrib/lib/pkgconfig
MAKE_ENV+= ARCH=${ARCH} MAKE=${GMAKE}
@@ -118,9 +121,8 @@
s|$$PREFIX|${WRKSRC}/contrib|g' \
${WRKSRC}/contrib/ffmpeg/configure
-# jam -dx, it will giving a verbose of build.
do-build:
- @(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${JAM} -dx)
+ @(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${JAM})
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/HandBrakeCLI
${PREFIX}/bin/handbrake
More information about the freebsd-ports-bugs
mailing list