Commit graph

117 commits

Author SHA1 Message Date
wiz
690f1eb317 Unused. 2002-12-24 20:19:55 +00:00
jschauma
3085a1c183 Make this compile and install cleanly on IRIX. 2002-12-24 00:56:53 +00:00
cjep
77c08729ba Whitespace fix 2002-12-23 16:14:38 +00:00
grant
028534a47d mark this NOT_FOR_PLATFORM Darwin, since the earliest version of perl
with Darwin support is perl58 and attempting to build this version
fails.
2002-12-23 16:10:45 +00:00
wiz
aaac5ddb21 Remove support for buildlink.mk -- noone uses it any longer. 2002-12-23 14:36:29 +00:00
grant
c662fe261a correct HOMEPAGE. 2002-10-23 23:33:21 +00:00
seb
fc707a2aeb Introduce target perl5-configure.
Now a package using this file can be configured by the regular
do-configure target if PERL5_CONFIGURE is _not_ set to YES (which is
the default), and then have a the standard perl configuration step
done by say the post-configure target.

Example:
        PERL5_CONFIGURE=        NO
        post-configure: perl5-configure

Usually in such a case PERL5_CONFIGURE_DIRS would have to be
adjusted, as well as other directory variables. See following commit
to graphics/p5-PerlMagick package for a complete example.

The previous behavior is preserved if PERL5_CONFIGURE default
value is left untouched, i.e. the do-configure target does the
standard perl configuration.

Please note that this new feature was made up by Johnny Lam. Thanks again!
2002-09-26 12:31:28 +00:00
wiz
e8817c9088 Complete standardization of messages according to latest pkglint. 2002-09-24 12:29:55 +00:00
jlam
cb9c0e2464 perl5/module.mk is intended to be included by packages that build
and install perl5 modules.

The following targets are provided by this file:

do-configure          runs the standard perl configuration in
                      each of the directories specified in
                      ${PERL5_CONFIGURE_DIRS}.

The following variables may be set prior to including this file:

PERL5_CONFIGURE       if "YES", then run the standard perl
                      configuration assuming Makefile.PL exists;
                      defaults to "YES".

PERL5_CONFIGURE_DIRS  list of directories in which to run the
                      standard perl configuration; defaults to
                      ${CONFIGURE_DIRS}.

PERL5_LDFLAGS         extra linker flags to pass on to the build
                      process.

This file also does the PERL5_PACKLIST handling to generate a PLIST.  When
all p5-* packages have been modified to use module.mk, then the
PERL5_PACKLIST code in bsd.pkg.mk can be removed.
2002-09-23 08:56:13 +00:00
jlam
9fbd525603 Only add a build dependency on perl if USE_PERL5 == "build". 2002-09-05 20:44:44 +00:00
jlam
3bf1875402 If USE_PERL5 is "build", then only set a build dependency on perl. 2002-09-05 20:43:19 +00:00
jlam
49b3a8c326 Respect new USE_PERL5 semantics by pulling over a change from buildlink.mk. 2002-08-25 19:41:18 +00:00
jlam
e2afa97f51 Merge changes in packages from the buildlink2 branch that have
buildlink2.mk files back into the main trunk.  This provides sufficient
buildlink2 infrastructure to start merging other packages from the
buildlink2 branch that have already been converted to use the buildlink2
framework.
2002-08-25 18:38:05 +00:00
jlam
84ec437ca0 Make use of USE_PERL5 and the other perl-related bits in bsd.pkg.mk instead
of duplicating all of the logic in this file.
2002-07-24 19:43:10 +00:00
jlam
a62b4afb0b Correctly build from lang/perl58 if we need perl-5.8.0 on Darwin. 2002-07-22 22:04:33 +00:00
jlam
80743a4834 Adapt to using perl-5.8.0. Perl 5.8.0 removes the need for libperl as
DynaLoader.a is now an archive of PIC objects.
2002-07-22 22:00:49 +00:00
skrll
08bdd44549 mkdir -> ${MKDIR}
rmdir -> ${RMDIR}
rm -> ${RM} (${RM} added to PLIST_SUBST)
chmod -> ${CHMOD}
chown -> ${CHOWN}
2002-02-15 10:12:28 +00:00
wiz
3cef02bae4 Remove patch-ai sha1, since the file doesn't exist. 2002-02-08 09:36:27 +00:00
jlam
acef69cb6b Fix long-standing bug where -R${PREFIX}/lib wasn't being recorded in the
LDDLFLAGS because ${PREFIX} is not defined for the sub-scripts that are
executed by the Configure script.  This resulted in -R/lib.
2002-01-30 22:35:57 +00:00
jlam
01c10a95a2 Move post-patch target that modified files to pre-configure, so that the
result of "make patch" can be used for "mkpatches".
2002-01-30 22:34:15 +00:00
jlam
44ec524e48 Update lang/perl5 to 5.6.1nb7. Changes from version 5.6.1nb6 include
changing the default module/library search path to have site_perl come
before the standard directories.  In other words, the previous search path
on an i386 was:

    /usr/pkg/lib/perl5/5.6.1/i386-netbsd
    /usr/pkg/lib/perl5/5.6.1
    /usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd
    /usr/pkg/lib/perl5/site_perl/5.6.1
    /usr/pkg/lib/perl5/site_perl

but it is now:

    /usr/pkg/lib/perl5/site_perl/5.6.1/i386-netbsd
    /usr/pkg/lib/perl5/site_perl/5.6.1
    /usr/pkg/lib/perl5/site_perl
    /usr/pkg/lib/perl5/5.6.1/i386-netbsd
    /usr/pkg/lib/perl5/5.6.1

The rationale for this is that when we install a module that is newer than
one in the standard library, the new module goes into the site_perl
directory as it's an add-on module.  However, we can't use the newer module
without modifying either the scripts of the perl environment to find the
newer module explicitly because of the order of the library search path:
the site_perl directories come after the standard directories.  The normal
solution is to directly replace the module in the standard library with
the newer module.  However, this isn't really on option when installing
via pkgsrc because the older module files are owned by the perl package.

By placing the the site_perl directories before the standard directories,
newer modules that we install via pkgsrc are simply found before the older
ones in the standard library.
2002-01-28 00:25:27 +00:00
jlam
d71f0b8699 Typo. 2001-12-14 19:26:11 +00:00
jlam
c89586b58b Use 'rm -f' instead of 'rm' in case the files don't already exist. 2001-12-14 19:24:53 +00:00
jlam
b3575da1cb Install perl5.6.1 as statically linked if perl is statically linked. Also
provide a way to avoid building a statically linked perl on platforms
where it doesn't matter.  Currently, by empirical evidence in pkg/14871,
this includes mipsel and probably mipseb.  Other platforms can add
themselves if/when they discover it doesn't matter for them either.
Closes pkg/14871 by John Hawkinson <jhawk@mit.edu>.
2001-12-14 05:32:35 +00:00
jlam
ee80084104 Only replace -L${LOCALBASE}/lib with "-L*" options from ${LDFLAGS} so that
we don't accidentally add options that the linker doesn't understand, such
as "-Wl,-R*".  This should fix pkg/14907 by John Klos john@sixgirls.org
where the a.out linker ld doesn't understand extra flags passed in from
LDFLAGS from the pkgsrc environment when building a perl package.
2001-12-11 06:08:58 +00:00
wiz
0ea2848a64 Move comment to separate line to unconfuse lintpkgsrc. 2001-12-03 17:51:14 +00:00
jlam
801397f4bb Use PKGREVISION to manage package-specific versions numbers that differ
from the distfile version number.  G/C the version number stuff from
perl5/Makefile.common, preserving only PERL5_DIST_VERS as it's still used
by libperl.
2001-12-03 07:55:43 +00:00
jlam
28dc06397c Create ECHO_BUILDLINK_MSG for printing buildlink diagnostics. It's just
set to '${ECHO_MSG} "=>"' for now.
2001-11-30 17:21:54 +00:00
jlam
62bb1dd4b2 Add PERL5OPT to the CONFIGURE_ENV, so that configure scripts that use
perl will use the correct local include and library search paths.
2001-11-28 05:40:18 +00:00
jlam
65b5c46cab Rearrange and separate out code that only pertains to USE_BUILDLINK_ONLY
packages.  This file can now completely replace USE_PERL5.
2001-11-28 05:18:02 +00:00
jlam
acb03b4aaa Use ${BUILDLINK_TARGETS.perl} as the pre-configure requisites so we can
override it's value.
2001-11-28 04:54:24 +00:00
jlam
2d24242885 Complete idea behind previous commit. 2001-11-25 23:18:23 +00:00
jlam
654a754082 Allow passing flags to linker and to compiler via LDFLAGS and CPPFLAGS
settings in the package Makefile.
2001-11-25 23:09:19 +00:00
jlam
3200d221e0 Add buildlink.mk file for use by perl5 module package Makefiles. This
buildlink.mk file can replace the use of USE_PERL5: it defines all of the
same perl variables as bsd.pkg.mk, adds a dependency on perl>=${PERL5_REQD}
and conditionally includes bsd.perl.mk.  It also creates a buildlinkified
Config.pm that makes the local include/library search path include
${BUILDLINK_DIR} instead of hard-coding ${LOCALBASE}.  There's more to be
done to make this more useful in strongly buildlinkifying a package, but
it's useful now as-is in weakly buildlinkifying a package.
2001-11-24 04:40:31 +00:00
zuntum
a437fd43cc Move pkg/ files into package's toplevel directory 2001-11-01 00:20:13 +00:00
jlam
6b56087a7a ftp.digital.com doesn't hold the CPAN mirror any longer. It's at
gatekeeper.dec.com.
2001-10-25 21:15:08 +00:00
veego
b9a10835a2 Add 'dl' to the LIBSWANTED.SunOS line.
Now the perl configure script finds a dlopen on SunOS and builds a shared
libperl, which makes it possible to build mod_perl.
2001-10-21 06:56:30 +00:00
jlam
15c0280d2d Add a patch to the perl package that causes perl modules from CPAN to link
directly against -lperl when built.  Combined with the previous update of
perl to add ${LOCALBASE}/lib to the rpath when creating shared
libraries/modules, these two changes make using mod_perl.so (ap-perl) more
painless.  All perl shared modules now contain interlibrary dependencies to
the shared libraries they need.  Instead of needing (at least on ELF):

        LoadFile !/usr/lib/libm.so
        LoadFile lib/perl5/5.6.1/i386-netbsd/CORE/libperl.so
        ...
        # Any other libraries needed by perl shared modules need to listed
        # with LoadFile here.
        ...
        LoadModule perl_module lib/httpd/mod_perl.so
        AddModule mod_perl.c

you'd need only the last two lines as the mod_perl authors intended.

I've tested this patch for many weeks now, successfully loading and using
the p5-Apache-ASP module as my test bed, and I haven't noticed any problems
with normal perl usage.

Also comment the Makefile slightly better.
2001-10-14 19:55:47 +00:00
jlam
26426041cb The previous change (making ExtUtils recognize -Wl,-R as the prefix for a
linker rpath flag) deserves a bump in the package version number.  Go to
perl-5.6.1nb5.
2001-10-02 06:46:43 +00:00
jlam
f49b05e650 Teach the ExtUtils modules (the ones that create Makefiles for perl
modules) about -Wl,-R.  We cause -Wl,-R/path/to/libdir in LIBS settings
to now get propagated correctly to the link command for shared modules.
The rpath flag is also silently coerced to start with -Wl,-R or -R
depending on the contents of ${LDDLFLAGS} to deal with either cc or ld
being invoked.
2001-10-02 06:37:55 +00:00
jlam
2eea86c397 Update perl to 5.6.1nb4. Changes from version 5.6.1nb3 include:
* Ensure that shared objects/libraries created by perl Makefiles include
  the correct run-time library search path by also including the local
  libraries directories.  For example, shared objects are linked on ELF
  platforms with "cc -Wl,-R/usr/pkg/lib -L/usr/pkg/lib", and not just
  "cc -L/usr/pkg/lib" as before.
2001-10-01 07:05:10 +00:00
jlam
c537c54dcf The perl Configure script has a check for several directories, including
/usr/local/scripts and forces the scripts to be installed there if it
exists.  We override this by explicitly setting "scriptdir" to
"${PREFIX}/bin".  This should fix the problem noted in pkg/14050 by
Brian Stark <bpstark@pacbell.net>.
2001-09-26 03:12:14 +00:00
jlam
2ae2e32a34 Note that if LIBSWANTED.${OPSYS} isn't defined, then the perl defaults for
that OS is used.
2001-09-17 18:11:36 +00:00
tron
95a495ffdf Solve SunOS build problem in a much cleaner way by predefining "libswanted"
for Perl's configuration script as suggested by Johnny C. Lam in private
e-mail.
2001-09-17 18:04:42 +00:00
tron
f2f891d4fb Stop configure from trying to use "libiconv" because "/usr/include/iconv.h"
exists under SunOS.
2001-09-17 11:14:51 +00:00
jlam
71f03aac07 Search for <machine/ieeefp.h> instead of <ieeefp.h>. This fixes the
problem reported in pkg/13663 by John Klos <john@sixgirls.org> where on
older (pre-current) NetBSD/vax, <ieeefp.h> exists but <machine/ieeefp.h>
doesn't, which was broken since <ieeefp.h> included <machine/ieeefp.h>.
2001-09-14 05:00:35 +00:00
jlam
dfe309aab4 Update perl to 5.6.1nb3. User-visible changes from the previous version
include:

- Re-adding ${LOCALBASE}/include and ${LOCALBASE}/lib to the local compiler
  search paths,

Other changes include:

- Migrating the setting to not install man3 pages from patch-ab into the
  package Makefile so that they aren't installed across all pkgsrc platforms.

- Better document SYSLIBPATH.${OPSYS}.
2001-09-12 18:58:57 +00:00
jlam
3c7130fadb Note conflict with perl-base-*, pointed out by David Brownlee
<abs@formula1.com>.
2001-09-06 17:33:50 +00:00
jlam
b56ee42f19 Update perl to 5.6.1nb2. Changes from perl-5.6.1nb1 include undoing the
perl mess I created a year ago and making this a vanilla perl installation
again, and explicitly setting the system library path so that /usr/local/*
doesn't appear anywhere.

The installed perl library now also includes CGI.pm-2.752.  The www/p5-CGI
package installs in to ${PERL5_SITEARCH} so there is no conflict with the
"standard" CGI.pm.
2001-09-05 17:13:40 +00:00
tv
4f6288056f Perl5 needs a "nb1" version bump to make sure everything which depends on
it is updated not to have the perl-mk dependency.

This braindead nature of pkgsrc to register all dependencies recursively
into binary pkgs *will* be fixed.
2001-07-09 17:21:22 +00:00