pkgsrc/databases/freetds/buildlink2.mk

25 lines
814 B
Makefile
Raw Normal View History

# $NetBSD: buildlink2.mk,v 1.7 2003/06/11 13:24:09 wiz Exp $
.if !defined(FREETDS_BUILDLINK2_MK)
FREETDS_BUILDLINK2_MK= # defined
BUILDLINK_PACKAGES+= freetds
BUILDLINK_DEPENDS.freetds?= freetds>=0.61
BUILDLINK_PKGSRCDIR.freetds?= ../../databases/freetds
EVAL_PREFIX+= BUILDLINK_PREFIX.freetds=freetds
BUILDLINK_PREFIX.freetds_DEFAULT= ${LOCALBASE}
BUILDLINK_FILES.freetds= freetds/include/*
BUILDLINK_FILES.freetds+= freetds/lib/*
BUILDLINK_CPPFLAGS.freetds= -I${BUILDLINK_PREFIX.freetds}/freetds/include
BUILDLINK_LDFLAGS.freetds= -L${BUILDLINK_PREFIX.freetds}/freetds/lib
BUILDLINK_LDFLAGS.freetds+= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.freetds}/freetds/lib
FIX_RPATH+= BUILDLINK_LDFLAGS.freetds
BUILDLINK_TARGETS+= freetds-buildlink
freetds-buildlink: _BUILDLINK_USE
.endif # FREETDS_BUILDLINK2_MK