Subject: graphics/gd with/without X11 support.
To: None <tech-pkg@netbsd.org>
From: Juan RP <juan@xtraeme.unixbsd.org>
List: tech-pkg
Date: 06/10/2004 09:06:05
--Signature=_Thu__10_Jun_2004_09_06_05_+0200_zi1zqQ1WJkrCo+id
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit


Yesterday I imported the new gd packages into pkgsrc-wip, with
or without X11 support, and I would like to commit them after the freeze.

------ gd.mk ------

# $NetBSD$
#
# Makefile fragment to choose the correct gd package.
#

.if !defined(GD_MK)
GD_MK=          1

.include "../../mk/bsd.prefs.mk"

GD_NOX11_INSTALLED!=    \
        if ${PKG_INFO} -qe gd-nox11; then       \
                ${ECHO} "yes";                  \
        else                                    \
                ${ECHO} "no";                   \
        fi

.if (${GD_NOX11_INSTALLED} == "yes" || (defined(PKG_GD_DEFAULT) && \
        !empty(PKG_GD_DEFAULT:Mgd-nox11)))
.  include "../../wip/gd-nox11/buildlink3.mk"
.else
.  include "../../wip/gd/buildlink3.mk"
.endif

.endif # GD_MK

------ gd.mk ------

So, we could use PKG_GD_DEFAULT to choose the default gd package or otherwise
check if we have gd-nox11 and use it, we'll have to modify all packages
requiring graphics/gd/buildlink3.mk to use this file (there are 10 packages more
or less).

Is there any objection?

-- 
	Juan RP <juan@xtraeme.unixbsd.org>

--Signature=_Thu__10_Jun_2004_09_06_05_+0200_zi1zqQ1WJkrCo+id
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAyAhdypkLYVDran0RAm0NAKCa8xQqCkD5gvJlTBQozTYybJnBnwCgjGmH
oWWw8QAQ8QFkDDNuRta5aDg=
=PxKh
-----END PGP SIGNATURE-----

--Signature=_Thu__10_Jun_2004_09_06_05_+0200_zi1zqQ1WJkrCo+id--