Subject: gphoto2: conflict aalib vs. aalib-x11
To: None <>
From: Berndt Josef Wulf <>
List: tech-pkg
Date: 07/17/2002 11:15:45

There exists a conflict between the aalib vs. aalib-x11 library when
building gphoto2 with aalib-x11 package installed as they are mutually
exclusive. Building gphoto2 with the aalib-x11 package installed will
cause a runtime error due to missing path to the X11 libraries.

gphoto2 will build and run fine with both aalib-x11 and aalib. Currently,
the build process will fail if the aalib-x11 package is required and
installed by another package. There are only 3 packages that make use
of the aalib* libraries - namely,

	devel/SDL		- aalib-x11
	graphics/aview		- aalib-x11
	graphics/gphoto2 	- aalib

One possible solution to this problem is to let gphoto2 probe
for the aalib package, autoconfigure and include the correct files - see patch below:

--- Makefile.orig	Mon Jul 15 11:03:56 2002
+++ Makefile	Thu Jul 18 02:37:03 2002
@@ -31,12 +31,24 @@
 BUILDLINK_DEPENDS.libusb=   libusb>=0.1.5
+# Use aalib-x11 if installed by another package
+# else use standard aalib package. 
+AALIB=           pkg_info -e aalib-x11
+.if (!${AALIB:C/-.*$$//} == aalib-x11)
+.include "../../graphics/aalib-x11/"
+.include "../../mk/"
+.include "../../graphics/aalib/"
 .include "../../converters/libiconv/"
 .include "../../devel/cdk/"
 .include "../../devel/gettext-lib/"
 .include "../../devel/libusb/"
 .include "../../devel/readline/"
-.include "../../graphics/aalib/"
 .include "../../graphics/libexif/"
 .include "../../graphics/jpeg/"
 .include "../../mk/"

The alternative is to have aalib probe for X11 and autoconfigure
itself to either include or exclude X11 support.

Any comments?

Many thanks in advance

cheerio Berndt
Name    : Berndt Josef Wulf            | +++ With BSD on Packet Radio +++
E-Mail  :             |    tfkiss, tnt, dpbox, wampes
ICQ     : 18196098                     |  VK5ABN, Nairne, South Australia 
URL     : | MBOX :
Sysinfo : DEC AXPpci33+, NetBSD-1.5    | BBS  : vk5abn.#lmr.#sa.aus.oc