[PATCH] mpeg4ip vs. obexapp

Panagiotis Astithas past at netmode.ntua.gr
Fri Jul 23 08:43:24 PDT 2004


I discovered a corner case in which comms/obexapp fails to build. In my 
system I have installed multimedia/mpeg4ip which installs 
/usr/local/include/sdp.h. This file shadows the system header 
/usr/include/sdp.h, causing the build of obexapp to fail. I had to 
replace comms/obexapp/files/patch-Makefile with the following one for 
the build to succeed:

--- Makefile.orig       Sat Apr 10 00:09:09 2004
+++ Makefile    Fri Jul 23 16:34:23 2004
@@ -1,8 +1,10 @@
  # $Id: Makefile,v 1.7 2004/04/09 21:09:09 max Exp $
  # $FreeBSD$

-BINDIR=                /usr/local/bin
-MANDIR=                /usr/local/man/man
+PREFIX?=       /usr/local
+BINDIR=                ${PREFIX}/bin
+MANDIR=                ${PREFIX}/man/man
  PROG=          obexapp
  MAN1=          obexapp.1

@@ -13,8 +15,7 @@


-CFLAGS=                -I/usr/local/include \
-               -I/usr/local/include/openobex
+CFLAGS=                -I/usr/local/include/openobex

  LDADD=         -L/usr/lib -L/usr/local/lib \

Nevertheless, I would feel much better if mpeg4ip would install sdp.h in 
something less dangerous, say ${LOCALBASE}/mpeg4ip/sdp.h.


More information about the freebsd-ports mailing list