1 Commits

Author SHA1 Message Date
Jay Larson
9bb8ee8a47 The following changes were made to Makefile:
* Added glibc as dependency
  * corrected Configure step to be based off of config.sh
  * removed modules DB_File and GDBM_File (might spin off later?)
2017-03-29 14:29:59 -05:00

View File

@@ -8,12 +8,12 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
DEPENDS = bzip2,zlib
DEPENDS = bzip2,glibc,zlib
ARCH = x86_64
URL = https://www.perl.org/
BRIEF = Perl programming language
DESC = Perl 5 is a highly capable, feature-rich programming language
SNAPVER = 1
SNAPVER = 2
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
@@ -38,7 +38,7 @@ $(SRCDIR)/Configure: $(ARCHIVE)
fi
@touch $(SRCDIR)/Configure
$(SRCDIR)/config.log: $(SRCDIR)/Configure
$(SRCDIR)/config.sh: $(SRCDIR)/Configure
@cd $(SRCDIR) && for patch in `find $(PATCHDIR) -name \*.patch`; do \
patch --verbose -Np1 -i $$patch; \
done
@@ -54,7 +54,7 @@ $(SRCDIR)/config.log: $(SRCDIR)/Configure
-Duseshrplib \
-Darchname=$(ARCH)
$(SRCDIR)/perl: $(SRCDIR)/config.log
$(SRCDIR)/perl: $(SRCDIR)/config.sh
@cd $(SRCDIR) && BUILD_ZLIB=False BUILD_BZIP2=0 make
$(ROOT): $(SRCDIR)/perl
@@ -68,7 +68,13 @@ $(ROOT): $(SRCDIR)/perl
make install DESTDIR=$(ROOT) && \
rm -v $(ROOT)/usr/share/man/man1/{perlthanks,pstruct}.1 && \
ln -sv c2ph.1 $(ROOT)/usr/share/man/man1/pstruct.1 && \
ln -sv perlbug.1 $(ROOT)/usr/share/man/man1/perlthanks.1
ln -sv perlbug.1 $(ROOT)/usr/share/man/man1/perlthanks.1 && \
rm -rv $(ROOT)/usr/share/man/man3/DB_File* \
$(ROOT)/usr/lib/perl5/5.24.0/x86_64/auto/DB_File \
$(ROOT)/usr/lib/perl5/5.24.0/x86_64/DB_File.pm && \
rm -rv $(ROOT)/usr/share/man/man3/GDBM_File* \
$(ROOT)/usr/lib/perl5/5.24.0/x86_64/auto/GDBM_File \
$(ROOT)/usr/lib/perl5/5.24.0/x86_64/GDBM_File.pm
test: $(ROOT)
@cd $(SRCDIR) && make -k test