pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xmms2 buildlink3.mk file and the options framework



Hi,

I packaged gxmms2 which needs header files from XMMS2, so a buildlink3.mk
file is necessary for the xmms2 package.  My problem is that I do not know
what dependencies to include in the buildlink3.mk file.
By default, the XMMS2 package is build with all options enabled.
The buildlink3.mk file looks this (using createbuildlink(8)):

BUILDLINK_DEPTH:=       ${BUILDLINK_DEPTH}+
XMMS2_BUILDLINK3_MK:=   ${XMMS2_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=     xmms2
.endif

BUILDLINK_PACKAGES:=    ${BUILDLINK_PACKAGES:Nxmms2}
BUILDLINK_PACKAGES+=    xmms2

.if !empty(XMMS2_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.xmms2+=       xmms2>=0.1DR2.2
BUILDLINK_PKGSRCDIR.xmms2?=     ../../wip/xmms2
.endif  # XMMS2_BUILDLINK3_MK

.include "../../audio/libmad/buildlink3.mk"
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"

.include "../../mk/pthread.buildlink3.mk"

BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}

I get "No valid Python version" when I build gxmms2 without xmms2
being installed (so the buildlink3.mk of xmms2 is used).

Regards

  Leonard

Attachment: pgp3tukplucP6.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index