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