diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-11-23 05:17:21 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-11-23 05:17:21 +0000 |
commit | 3487fc3e63e28658fc0291ad8653d2d23b1faa94 (patch) | |
tree | b46948594d1c284efe0cd7de5d0a4be069b76d5d /gnu/usr.bin | |
parent | b98a0e030f4799d9f1b51ceecc3a90cfcb5d04e6 (diff) |
missed in shared libperl mods due to cvs bug
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/perl/Makefile.bsd-wrapper | 75 | ||||
-rw-r--r-- | gnu/usr.bin/perl/installperl | 5 |
2 files changed, 56 insertions, 24 deletions
diff --git a/gnu/usr.bin/perl/Makefile.bsd-wrapper b/gnu/usr.bin/perl/Makefile.bsd-wrapper index 4aff427dee9..06ba12e1fcc 100644 --- a/gnu/usr.bin/perl/Makefile.bsd-wrapper +++ b/gnu/usr.bin/perl/Makefile.bsd-wrapper @@ -1,8 +1,11 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.27 1999/08/27 13:58:58 millert Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.28 1999/11/23 05:17:20 millert Exp $ # # Build wrapper for Perl 5.005_03. # +# For ``NOMAN'' +.include <bsd.own.mk> + # Our lndir is hacked; specify a full path to avoid potential conflicts # with the one installed with X11. LNDIR= /usr/bin/lndir @@ -11,8 +14,6 @@ LNDIR= /usr/bin/lndir H2PH= /usr/bin/h2ph POD2MAN= /usr/bin/pod2man -.include <bsd.own.mk> - .ifndef NOMAN MANALL= perl.cat1 perlapio.cat1 perlbook.cat1 perlbot.cat1 perlcall.cat1 \ perldata.cat1 perldebug.cat1 perldelta.cat1 perldiag.cat1 \ @@ -79,6 +80,14 @@ MANALL= MANLOCALBUILD= yes +LIB= perl + +SRCS= gv.c toke.c perly.c op.c regcomp.c dump.c util.c mg.c byterun.c hv.c \ + av.c run.c pp_hot.c sv.c pp.c scope.c pp_ctl.c pp_sys.c doop.c doio.c \ + regexec.c taint.c deb.c universal.c globals.c perl.c perlio.c + +CFLAGS+= -DPERL_CORE -I. + .if defined (INSTALL_STRIP) && ${INSTALL_STRIP} == "-s" INST_PROG='/usr/bin/install -cs' .else @@ -99,7 +108,7 @@ CLEANFILES= config.sh Policy.sh ${MANALL} all: perl.build ${MANALL} -perl.build: ${GENERATED} +perl.build: perl.lib (cd ${.OBJDIR}; ${MAKE}) config.sh: @@ -593,7 +602,7 @@ maninstall: @echo NOMAN is set .endif -install: install.perl maninstall +install: install.lib install.perl maninstall -mkdir -p ${DESTDIR}/usr/libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd (cd ${DESTDIR}/usr/include; ${H2PH} \ -d ${DESTDIR}/usr/libdata/perl5/site_perl/${MACHINE_ARCH}-openbsd \ @@ -602,7 +611,7 @@ install: install.perl maninstall install.perl: (cd ${.OBJDIR}; INSTALL=${INSTALL} INSTALL_COPY=${INSTALL_COPY} \ - INSTALL_STRIP=${INSTALL_STRIP} ${MAKE} install.perl) + INSTALL_STRIP=${INSTALL_STRIP} NOLIBINSTALL=1 ${MAKE} install.perl) test: -@if [ -e Makefile ]; then ${MAKE} test; fi @@ -611,20 +620,42 @@ clean: -@if [ -e Makefile ]; then ${MAKE} realclean; fi cleandir: - -@if [ -e Makefile ]; then ${MAKE} distclean; fi - -@rm -f ${CLEANFILES} - -depend: - # Nothing here so far... - -lint: - # Nothing here so far... - -tags: - # Nothing here so far... - -.include <bsd.obj.mk> -.include <bsd.subdir.mk> -.ifndef NOMAN -.include <bsd.man.mk> + -@if [ ${.CURDIR} != ${.OBJDIR} ]; then \ + rm -rf *; \ + else \ + test -e Makefile && ${MAKE} distclean; \ + rm -f ${CLEANFILES}; \ + fi + +.include <bsd.lib.mk> + +# These have to come after the inclusion of <bsd.lib.mk> +perl.lib: ${GENERATED} ${_LIBS} + +install.lib: + ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 lib${LIB}.a \ + ${DESTDIR}${LIBDIR} +.if (${INSTALL_COPY} != "-p") + ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}.a +.endif + chmod ${LIBMODE} ${DESTDIR}${LIBDIR}/lib${LIB}.a +.if !defined(NOPROFILE) + ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 \ + lib${LIB}_p.a ${DESTDIR}${LIBDIR} +.if (${INSTALL_COPY} != "-p") + ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_p.a +.endif + chmod ${LIBMODE} ${DESTDIR}${LIBDIR}/lib${LIB}_p.a +.endif +.if !defined(NOPIC) && (${MACHINE_ARCH} != "mips") + ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 \ + lib${LIB}_pic.a ${DESTDIR}${LIBDIR} +.if (${INSTALL_COPY} != "-p") + ${RANLIB} -t ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a +.endif + chmod ${LIBMODE} ${DESTDIR}${LIBDIR}/lib${LIB}_pic.a +.endif +.if !defined(NOPIC) && defined(SHLIB_MAJOR) && defined(SHLIB_MINOR) + ${INSTALL} ${INSTALL_COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \ + lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${DESTDIR}${LIBDIR} .endif diff --git a/gnu/usr.bin/perl/installperl b/gnu/usr.bin/perl/installperl index f3ca6b182b0..491971ab1b8 100644 --- a/gnu/usr.bin/perl/installperl +++ b/gnu/usr.bin/perl/installperl @@ -1,5 +1,5 @@ #!./perl -# $OpenBSD: installperl,v 1.7 1997/11/30 07:48:39 millert Exp $ +# $OpenBSD: installperl,v 1.9 1999/04/29 22:56:02 millert Exp $ # # This is hacked up, in order to support DESTDIR and INSTALL_STRIP. # @@ -255,7 +255,8 @@ if ($Is_VMS) { # We did core file selection during build @corefiles = <$coredir/*.*>; } else { - @corefiles = <*.h libperl*.*>; + @corefiles = <*.h>; + push(@corefiles,<libperl*.*>) unless defined($ENV{"NOLIBINSTALL"}); # AIX needs perl.exp installed as well. push(@corefiles,'perl.exp') if $^O eq 'aix'; if ($^O eq 'mpeix') { |