2003-06-11 15:24:09 +02:00
|
|
|
# $NetBSD: buildlink2.mk,v 1.7 2003/06/11 13:24:09 wiz Exp $
|
2002-08-25 21:21:43 +02:00
|
|
|
|
|
|
|
.if !defined(FREETDS_BUILDLINK2_MK)
|
|
|
|
FREETDS_BUILDLINK2_MK= # defined
|
|
|
|
|
|
|
|
BUILDLINK_PACKAGES+= freetds
|
2003-06-11 15:24:09 +02:00
|
|
|
BUILDLINK_DEPENDS.freetds?= freetds>=0.61
|
2002-08-25 21:21:43 +02:00
|
|
|
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/*
|
|
|
|
|
2002-09-22 12:06:00 +02:00
|
|
|
BUILDLINK_CPPFLAGS.freetds= -I${BUILDLINK_PREFIX.freetds}/freetds/include
|
|
|
|
BUILDLINK_LDFLAGS.freetds= -L${BUILDLINK_PREFIX.freetds}/freetds/lib
|
2003-03-14 20:37:30 +01:00
|
|
|
BUILDLINK_LDFLAGS.freetds+= -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.freetds}/freetds/lib
|
|
|
|
FIX_RPATH+= BUILDLINK_LDFLAGS.freetds
|
2002-09-22 12:06:00 +02:00
|
|
|
|
2002-08-25 21:21:43 +02:00
|
|
|
BUILDLINK_TARGETS+= freetds-buildlink
|
|
|
|
|
|
|
|
freetds-buildlink: _BUILDLINK_USE
|
|
|
|
|
|
|
|
.endif # FREETDS_BUILDLINK2_MK
|