pkgsrc/x11/openmotif/buildlink3.mk
dholland f0643be3c9 BUILDLINK_TRANSFORM+= rm:-lXp
This works around the Motif imake templates, which unconditionally
provide -lXp for Motif clients. It is not clear to me why imake
material for Motif is shipped as part of the default X imake templates
rather than with Motif; but imake has always had a special (il)logic
of its own.

Dealing with this problem by setting IMAKEOPTS here instead causes
"can't buildlink files" and I don't understand why; but this approach
is maybe better anyway.

Fixes build of audio/xmradio and perhaps other Motif-using packages.
2011-12-11 02:59:34 +00:00

29 lines
917 B
Makefile

# $NetBSD: buildlink3.mk,v 1.21 2011/12/11 02:59:34 dholland Exp $
BUILDLINK_TREE+= openmotif
.if !defined(OPENMOTIF_BUILDLINK3_MK)
OPENMOTIF_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.openmotif+= openmotif>=2.3.1
BUILDLINK_ABI_DEPENDS.openmotif?= openmotif>=2.3.1nb6
BUILDLINK_PKGSRCDIR.openmotif?= ../../x11/openmotif
_MOTIFBASE= ${BUILDLINK_PREFIX.openmotif}
MOTIFLIB= ${COMPILER_RPATH_FLAG}${_MOTIFBASE}/lib \
-L${_MOTIFBASE}/lib -lXm
BUILDLINK_TRANSFORM+= rm:-lXp
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXmu/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/xbitmaps/buildlink3.mk"
.include "../../x11/xextproto/buildlink3.mk"
.endif # OPENMOTIF_BUILDLINK3_MK
BUILDLINK_TREE+= -openmotif