234b8d1088
implementation.
32 lines
946 B
Makefile
32 lines
946 B
Makefile
# $NetBSD: buildlink3.mk,v 1.13 2004/07/10 03:01:38 grant Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
DB3_BUILDLINK3_MK:= ${DB3_BUILDLINK3_MK}+
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= db3
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndb3}
|
|
BUILDLINK_PACKAGES+= db3
|
|
|
|
.if !empty(DB3_BUILDLINK3_MK:M+)
|
|
BUILDLINK_DEPENDS.db3+= db3>=2.9.2
|
|
BUILDLINK_PKGSRCDIR.db3?= ../../databases/db3
|
|
BUILDLINK_INCDIRS.db3?= include/db3
|
|
BUILDLINK_LIBDIRS.db3?= lib
|
|
BUILDLINK_TRANSFORM+= l:db-3:db3
|
|
USE_DB185?= yes
|
|
. if !empty(USE_DB185:M[yY][eE][sS])
|
|
BUILDLINK_TRANSFORM+= l:db:db3
|
|
BUILDLINK_CPPFLAGS.db3= -I${BUILDLINK_PREFIX.db3}/${BUILDLINK_INCDIRS.db3}
|
|
. endif
|
|
BUILDLINK_LDFLAGS.db3= -L${BUILDLINK_PREFIX.db3}/lib -Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.db3}/lib
|
|
BUILDLINK_LIBS.db3= -ldb3
|
|
.endif # DB3_BUILDLINK3_MK
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|