diff options
author | seb <seb> | 2002-10-20 21:48:16 +0000 |
---|---|---|
committer | seb <seb> | 2002-10-20 21:48:16 +0000 |
commit | d57f584e9a4ba5373567eba9f795edff67c33aca (patch) | |
tree | af39028b91410b98a00bf0a9281070e1848e393f /devel/ldapsdk | |
parent | 3479d9e89de982b0c87ed7c44f978fc8133c0ca2 (diff) | |
download | pkgsrc-d57f584e9a4ba5373567eba9f795edff67c33aca.tar.gz |
Use buildlink2. Provide buildlink2.mk. Mark perl5 as build dependency only.
Use GMAKE, BSD_INSTALL_DATA and LN in scripts.
Diffstat (limited to 'devel/ldapsdk')
-rw-r--r-- | devel/ldapsdk/Makefile | 9 | ||||
-rw-r--r-- | devel/ldapsdk/buildlink2.mk | 28 | ||||
-rwxr-xr-x | devel/ldapsdk/scripts/pre-build | 4 | ||||
-rwxr-xr-x | devel/ldapsdk/scripts/pre-install | 28 |
4 files changed, 51 insertions, 18 deletions
diff --git a/devel/ldapsdk/Makefile b/devel/ldapsdk/Makefile index 575bc0d66a4..4ae189b3024 100644 --- a/devel/ldapsdk/Makefile +++ b/devel/ldapsdk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.6 2001/10/26 14:10:00 agc Exp $ +# $NetBSD: Makefile,v 1.7 2002/10/20 21:48:16 seb Exp $ DISTNAME= ldapsdk_12311998 PKGNAME= ldapsdk-12311998 @@ -12,13 +12,18 @@ COMMENT= LDAP C-SDK from the Mozilla project CONFLICTS+= openldap* USE_GMAKE= yes -USE_PERL5= yes +USE_PERL5= build +USE_BUILDLINK2= yes WRKSRC= ${WRKDIR}/mozilla +SCRIPTS_ENV+= GMAKE=${GMAKE} +SCRIPTS_ENV+= LN=${LN} + do-build: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/pre-build do-install: cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/pre-install +.include "../../lang/perl5/buildlink2.mk" .include "../../mk/bsd.pkg.mk" diff --git a/devel/ldapsdk/buildlink2.mk b/devel/ldapsdk/buildlink2.mk new file mode 100644 index 00000000000..336aed65d1f --- /dev/null +++ b/devel/ldapsdk/buildlink2.mk @@ -0,0 +1,28 @@ +# $NetBSD: buildlink2.mk,v 1.1 2002/10/20 21:48:17 seb Exp $ +# +# This Makefile fragment is included by packages that use ldapsdk. +# +# This file was created automatically using createbuildlink 2.2. +# + +.if !defined(LDAPSDK_BUILDLINK2_MK) +LDAPSDK_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= ldapsdk +BUILDLINK_DEPENDS.ldapsdk?= ldapsdk>=12311998 +BUILDLINK_PKGSRCDIR.ldapsdk?= ../../devel/ldapsdk + +EVAL_PREFIX+= BUILDLINK_PREFIX.ldapsdk=ldapsdk +BUILDLINK_PREFIX.ldapsdk_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.ldapsdk+= include/disptmpl.h +BUILDLINK_FILES.ldapsdk+= include/lber.h +BUILDLINK_FILES.ldapsdk+= include/ldap.h +BUILDLINK_FILES.ldapsdk+= include/srchpref.h +BUILDLINK_FILES.ldapsdk+= lib/liblber.* +BUILDLINK_FILES.ldapsdk+= lib/libldap.* + +BUILDLINK_TARGETS+= ldapsdk-buildlink + +ldapsdk-buildlink: _BUILDLINK_USE + +.endif # LDAPSDK_BUILDLINK2_MK diff --git a/devel/ldapsdk/scripts/pre-build b/devel/ldapsdk/scripts/pre-build index 43390a481a3..3281cbf6a7c 100755 --- a/devel/ldapsdk/scripts/pre-build +++ b/devel/ldapsdk/scripts/pre-build @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: pre-build,v 1.2 2000/01/08 04:26:50 wiz Exp $ +# $NetBSD: pre-build,v 1.3 2002/10/20 21:48:18 seb Exp $ cd ${WRKSRC} @@ -12,4 +12,4 @@ unset MOZ_LITE unset MOZ_MEDIUM unset NO_SECURITY -gmake -f directory/ldapsdk.mk build +${GMAKE} -f directory/ldapsdk.mk build diff --git a/devel/ldapsdk/scripts/pre-install b/devel/ldapsdk/scripts/pre-install index b89a7e67951..2796ae2ca4d 100755 --- a/devel/ldapsdk/scripts/pre-install +++ b/devel/ldapsdk/scripts/pre-install @@ -1,25 +1,25 @@ #!/bin/sh -# $NetBSD: pre-install,v 1.3 2001/02/23 12:36:53 wiz Exp $ +# $NetBSD: pre-install,v 1.4 2002/10/20 21:48:18 seb Exp $ cd ${WRKSRC} cd dist for i in disptmpl.h lber.h ldap.h srchpref.h do - cp public/ldap/$i ${LOCALBASE}/include + ${BSD_INSTALL_DATA} public/ldap/$i ${PREFIX}/include done # # XXX kludge # cd NetB* -cp lib/libldap.a ${LOCALBASE}/lib/ -cp lib/liblber.a ${LOCALBASE}/lib/ -cp bin/libldap.so.1.0 ${LOCALBASE}/lib/ -ln -sf libldap.so.1.0 ${LOCALBASE}/lib/libldap.so.1 -ln -sf libldap.so.1.0 ${LOCALBASE}/lib/libldap.so -cp bin/liblber.so.1.0 ${LOCALBASE}/lib/ -ln -sf liblber.so.1.0 ${LOCALBASE}/lib/liblber.so.1 -ln -sf liblber.so.1.0 ${LOCALBASE}/lib/liblber.so -cp etc/ldapfilter.conf ${LOCALBASE}/etc/ -cp etc/ldapsearchprefs.conf ${LOCALBASE}/etc/ -cp etc/ldapfriendly ${LOCALBASE}/etc/ -cp etc/ldaptemplates.conf ${LOCALBASE}/etc/ +${BSD_INSTALL_DATA} lib/libldap.a ${PREFIX}/lib/libldap.a +${BSD_INSTALL_DATA} lib/liblber.a ${PREFIX}/lib/liblber.a +${BSD_INSTALL_DATA} bin/libldap.so.1.0 ${PREFIX}/lib/libldap.so.1.0 +${LN} -sf libldap.so.1.0 ${PREFIX}/lib/libldap.so.1 +${LN} -sf libldap.so.1.0 ${PREFIX}/lib/libldap.so +${BSD_INSTALL_DATA} bin/liblber.so.1.0 ${PREFIX}/lib/liblber.so.1.0 +${LN} -sf liblber.so.1.0 ${PREFIX}/lib/liblber.so.1 +${LN} -sf liblber.so.1.0 ${PREFIX}/lib/liblber.so +${BSD_INSTALL_DATA} etc/ldapfilter.conf ${PREFIX}/etc/ldapfilter.conf +${BSD_INSTALL_DATA} etc/ldapsearchprefs.conf ${PREFIX}/etc/ldapsearchprefs.conf +${BSD_INSTALL_DATA} etc/ldapfriendly ${PREFIX}/etc/ldapfriendly +${BSD_INSTALL_DATA} etc/ldaptemplates.conf ${PREFIX}/etc/ldaptemplates.conf |