pkgsrc/net/libnids/buildlink3.mk

24 lines
640 B
Makefile

# $NetBSD: buildlink3.mk,v 1.7 2009/11/01 16:29:24 tnn Exp $
BUILDLINK_TREE+= libnids
.if !defined(LIBNIDS_BUILDLINK3_MK)
LIBNIDS_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libnids+= libnids>=1.18
BUILDLINK_PKGSRCDIR.libnids?= ../../net/libnids
BUILDLINK_DEPMETHOD.libnids?= build
pkgbase := libnids
.include "../../mk/pkg-build-options.mk"
.if !empty(PKG_BUILD_OPTIONS.libnids:Mglib)
.include "../../devel/glib2/buildlink3.mk"
# This is needed because libnids is a static library
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib \
-lglib-2.0 -lgthread-2.0
.endif
.endif # LIBNIDS_BUILDLINK3_MK
BUILDLINK_TREE+= -libnids