Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2009 16:49:44 -0600
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Li-Wen Hsu <lwhsu@FreeBSD.org>
Cc:        freebsd-multimedia@FreeBSD.org, John Hein <jhein@timing.com>
Subject:   Re: gpac-libgpac needs libglut now
Message-ID:  <790a9fff0902181449k4226ea4fo65636f28b2a886@mail.gmail.com>

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

[-- Attachment #1 --]
> Li-Wen Hsu wrote at 06:52 +0800 on Feb 18, 2009:
> > Thanks, I am looking into this issue there days, but currently I just
> > don't know why I cannot reproduce this error, and testing in the
> > tinderbox just works fine.  I'll commit the patch if others test this
> > OK.
>
> gpac-libgpac's configure script points to /usr/X11R6 by default.
> Possibly it works for some who have a /usr/X11R6 -> /usr/local link.

I have this link, and it doesn't build for me.

The reason it builds on the some system and the tinderbox is due to
missing dependancies.

gpac-libgpac is detecting that I have the following ports installed:

libX11-1.1.99.2,1 (x11/libX11)
xextproto-7.0.5 (x11/xextproto)
videoproto-2.2.2 (x11/videoproto)
libXv-1.0.4,1 (x11/libXv)
sdl-1.2.13_2,2 (devel/sdl12)
libGL-7.3_1 (graphics/libGL)
freetype2-2.3.7 (print/freetype2)

I have solved the build issue with the attached patch.

NOTE:  The patch doesn't add the above dependancies to the Makefile,
it just solves the build problem.

Scot

[-- Attachment #2 --]
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/gpac-libgpac/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	14 Feb 2009 01:55:45 -0000	1.15
+++ Makefile	18 Feb 2009 21:59:35 -0000
@@ -26,11 +26,12 @@
 INSTALL_WRKSRC=	${WRKSRC}/bin/gcc
 LIBVER=	1
 
-CONFIGURE_ARGS=	--cc="${CC}" \
+CONFIGURE_ARGS=	--cc="${CC}" --X11-path="${X11BASE}" \
 		--extra-cflags="${CFLAGS} ${PTHREAD_CFLAGS} -fPIC" \
 		--extra-ldflags="${LDFLAGS} ${PTHREAD_LIBS}"
 
 post-patch:
+	${REINPLACE_CMD} -e "s/lib64/lib/" ${WRKSRC}/configure
 	${CHMOD} +x ${WRKSRC}/configure
 
 do-install:
Index: files/patch-src_Makefile
===================================================================
RCS file: /home/ncvs/ports/multimedia/gpac-libgpac/files/patch-src_Makefile,v
retrieving revision 1.2
diff -u -r1.2 patch-src_Makefile
--- files/patch-src_Makefile	9 Aug 2006 15:10:26 -0000	1.2
+++ files/patch-src_Makefile	18 Feb 2009 22:02:53 -0000
@@ -1,14 +1,23 @@
---- src/Makefile.orig	Tue Jul 11 11:53:44 2006
-+++ src/Makefile	Wed Aug  9 09:57:59 2006
-@@ -35,6 +35,7 @@
+--- /usr/obj/usr/ports/multimedia/gpac-libgpac/work/gpac/src/Makefile.orig	2008-12-02 08:01:08.000000000 -0600
++++ /usr/obj/usr/ports/multimedia/gpac-libgpac/work/gpac/src/Makefile	2009-02-18 16:02:23.000000000 -0600
+@@ -2,7 +2,7 @@
+ 
+ vpath %.c $(SRC_PATH)/src
+ 
+-CFLAGS= $(OPTFLAGS) -I$(SRC_PATH)/include 
++CFLAGS= $(OPTFLAGS) -I$(SRC_PATH)/include -I/usr/local/include
+ 
+ ifeq ($(DEBUGBUILD), yes)
+ CFLAGS+=-g
+@@ -52,6 +52,7 @@
  ifeq ($(DISABLE_SVG), no)
- LIBGPAC_SCENE+=scenegraph/svg_attributes.o scenegraph/svg_nodes.o scenegraph/svg_tools.o scenegraph/svg_types.o scenegraph/svg_smjs.o scenegraph/smil_anim.o scenegraph/smil_timing.o scenegraph/svg_properties.o
+ LIBGPAC_LASER=laser/lsr_enc.o laser/lsr_dec.o laser/lsr_tables.o
  endif
 +EXTRALIBS+=-Wl,-soname,$(LIB)
  
- 
- ## libgpac objects gathering: src/mcrypt
-@@ -137,7 +138,7 @@
+ ## libgpac objects gathering: la totale ...
+ OBJS=$(LIBGPAC_UTILS) $(LIBGPAC_MCRYPT) $(LIBGPAC_SCENE) $(LIBGPAC_IETF) $(LIBGPAC_BIFS) $(LIBGPAC_ISOM) $(LIBGPAC_ODF) $(LIBGPAC_MEDIATOOLS) $(LIBGPAC_SCENEMANAGER) $(LIBGPAC_TERMINAL) $(LIBGPAC_COMPOSITOR) $(LIBGPAC_LASER)
+@@ -163,7 +164,7 @@
  
  
  ##libgpac library output

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0902181449k4226ea4fo65636f28b2a886>