32 lines
889 B
Makefile
32 lines
889 B
Makefile
# Makefile - hhl - /usr/src/world/bzip2
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
distname = bzip2
|
|
distext = gz
|
|
no_objdir = 1
|
|
patches = bzip2-1.0.8-consolidated.patch
|
|
include world.mk
|
|
|
|
makeflags += PREFIX=/usr
|
|
|
|
links = ${bindir}/bunzip2 ${bindir}/bzcat
|
|
|
|
config_tgt = ${objdir}/.configured
|
|
define config_cmd
|
|
$(MAKE) -C ${srcdir} -f Makefile-libbz2_so
|
|
$(MAKE) -C ${srcdir} clean
|
|
touch ${config_tgt}
|
|
endef
|
|
|
|
define post_install
|
|
if [ -f ${bindir}/bzip2 ] ; then unlink ${bindir}/bzip2 ; fi
|
|
if [ -f ${bindir}/bunzip2 ] ; then unlink ${bindir}/bunzip2 ; fi
|
|
if [ -f ${bindir}/bzcat ] ; then unlink ${bindir}/bzcat ; fi
|
|
install -m0755 ${srcdir}/bzip2-shared ${bindir}/bzip2
|
|
for l in ${links} ; do ln -s bzip2 $${l} ; done
|
|
cp -a ${srcdir}/libbz2.so* /lib
|
|
ln -s ../../lib/libbz2.so.${bzip2_version} /usr/lib/libbz2.so
|
|
endef
|
|
|
|
include targets.mk
|