b818a1b4ba
non-GCC. DB4 uses its own code if we're using GCC instead of 1003.1 mutexes. Ride the previous PKGREVISION bump.
39 lines
1 KiB
Makefile
39 lines
1 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.23 2004/11/17 18:47:19 jlam Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
DB4_BUILDLINK3_MK:= ${DB4_BUILDLINK3_MK}+
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= db4
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndb4}
|
|
BUILDLINK_PACKAGES+= db4
|
|
|
|
.if !empty(DB4_BUILDLINK3_MK:M+)
|
|
BUILDLINK_DEPENDS.db4+= db4>=4.2.52
|
|
BUILDLINK_RECOMMENDED.db4+= db4>=4.2.52nb7
|
|
BUILDLINK_PKGSRCDIR.db4?= ../../databases/db4
|
|
BUILDLINK_INCDIRS.db4?= include/db4
|
|
BUILDLINK_LDADD.db4= -ldb4
|
|
BUILDLINK_TRANSFORM+= l:db-4:db4
|
|
|
|
. if defined(USE_DB185) && !empty(USE_DB185:M[yY][eE][sS])
|
|
#
|
|
# Older db4 packages didn't enable the db-1.85 compatibility API.
|
|
#
|
|
BUILDLINK_DEPENDS.db4+= db4>=4.2.52nb1
|
|
BUILDLINK_LIBS.db4= ${BUILDLINK_LDADD.db4}
|
|
BUILDLINK_TRANSFORM+= l:db:db4
|
|
. endif
|
|
.endif # DB4_BUILDLINK3_MK
|
|
|
|
.include "../../mk/compiler.mk"
|
|
.if empty(PKGSRC_COMPILER:Mgcc)
|
|
PTHREAD_OPTS+= native
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
.endif
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|