update Sat May 8 12:37:00 PDT 2010
[pkgsrc.git] / devel / libtool / Makefile.common
1 # $NetBSD: Makefile.common,v 1.77 2009/12/15 17:35:36 joerg Exp $
2 # used by devel/libltdl/Makefile
3 # used by devel/libtool-base/Makefile
4 # used by devel/libtool-info/Makefile
5
6 ###########################################################################
7 ###########################################################################
8 #
9 # HEADS UP!  DO NOT CHANGE THE VERSION OR PKGREVISION WITHOUT READING THIS:
10 #
11 ###########################################################################
12 ###########################################################################
13 #
14 # This package is maintained specially in order to preserve pkgsrc
15 # specific OS changes that diverge from the "out of the box" libtool.
16 # In order to keep this package in a maintainable condition, the .m4 files
17 # must be manipulated in order to generate the patch-* files.
18 #
19 # See devel/libtool/patches/manual.README for instructions on how to make
20 # these patch files properly; otherwise your changes WILL be lost on the
21 # next libtool update.
22 #
23 # DO NOT MAKE CHANGES TO patch-ab OR patch-ad WITHOUT FOLLOWING THESE
24 # INSTRUCTIONS.  There are no exceptions to this rule.
25 #
26 ###########################################################################
27 ###########################################################################
28
29 DISTNAME=       libtool-2.2.6b
30 DISTFILES=      ${DISTNAME}${EXTRACT_SUFX}
31 CATEGORIES=     devel pkgtools
32 MASTER_SITES=   ${MASTER_SITE_GNU:=libtool/}
33
34 OWNER=          joerg@NetBSD.org
35 HOMEPAGE=       http://www.gnu.org/software/libtool/libtool.html
36 LICENSE=        gnu-gpl-v2
37
38 CONFLICTS=      glibtool-[0-9]*
39
40 PKG_INSTALLATION_TYPES= overwrite pkgviews
41 PKG_DESTDIR_SUPPORT=    user-destdir
42
43 GNU_CONFIGURE=  yes
44
45 DISTINFO_FILE=  ${.CURDIR}/../libtool/distinfo
46 PATCHDIR=       ${.CURDIR}/../libtool/patches
47
48 AUTOMAKE_OVERRIDE=      NO
49
50 .include "../../mk/bsd.prefs.mk"
51
52 # The configure script persists in trying to find the path to ld, which
53 # always ends up in ${BUILDLINK_DIR}.  Prevent it from caring.
54 #
55 CONFIGURE_ENV+=         lt_cv_path_LD=${LD:Q}
56
57 # The configure script persists in trying to find the path to sed or gsed,
58 # which breaks when SED is nbsed.  Tell it explicitly to use the sed
59 # named by ${SED}.
60 #
61 CONFIGURE_ENV+=         lt_cv_path_SED=${SED:Q}
62
63 # The configure script doesn't seem to be working out the need for -p
64 # or -B, so tell it
65 #
66 .if ${OPSYS} == "SunOS" || ${OPSYS} == "HPUX"
67 CONFIGURE_ENV+=         lt_cv_path_NM="nm -p"
68 .elif ${OPSYS} == "IRIX" || ${OPSYS} == "OSF1"
69 CONFIGURE_ENV+=         lt_cv_path_NM="nm -B"
70 .endif
71
72 CONFIGURE_ENV+=         RANLIB=${RANLIB:Q}