ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/ozone/mgar/pkg/bzip2/Makefile
Revision: 2
Committed: Sat Jun 20 15:48:41 2026 UTC (4 weeks, 3 days ago) by operz
File size: 1362 byte(s)
Log Message:
Add bzip2, gzip, xz, lzip, libarchive, git package recipes

File Contents

# Content
1 # vim: ft=make ts=4 sw=4 noet
2 .DEFAULT_GOAL := all
3 NAME = bzip2
4 VERSION = 1.0.8
5 GARTYPE = v2
6
7 MASTER_SITES = https://sourceware.org/pub/bzip2/
8 DISTFILES += $(DISTNAME).tar.gz
9 LICENSE = LICENSE
10
11 PACKAGES += OZSWbzip2
12 SPKG_DESC_OZSWbzip2 = bzip2 compression utility and library
13 CATALOGNAME_OZSWbzip2 = bzip2
14
15 # bzip2 has no autoconf configure
16 CONFIGURE_SCRIPTS =
17
18 # bzip2 Makefile uses PREFIX= directly; patch in DESTDIR support.
19 # Build with -fPIC so objects can be used for both static and shared library.
20 BUILD_OVERRIDE_VARS += PREFIX CFLAGS
21 BUILD_OVERRIDE_VAR_PREFIX = $(prefix)
22 BUILD_OVERRIDE_VAR_CFLAGS = $(CFLAGS) -fPIC
23
24 INSTALL_OVERRIDE_VARS += PREFIX
25 INSTALL_OVERRIDE_VAR_PREFIX = $(prefix)
26
27 # Keep libbz2.a alongside the shared lib
28 MERGE_EXCLUDE_STATICLIBS =
29
30 post-extract:
31 gsed -i 's|/man/|/share/man/|g' $(WORKSRC)/Makefile
32 gsed -i 's|$$(PREFIX)/|$$(DESTDIR)$$(PREFIX)/|g' $(WORKSRC)/Makefile
33 @$(MAKECOOKIE)
34
35 post-configure:
36 @$(MAKECOOKIE)
37
38 post-build:
39 $(MAKE) -C $(WORKSRC) -f Makefile-libbz2_so \
40 CC="$(CC)" CCFLAGS="$(CFLAGS) -fPIC"
41 @$(MAKECOOKIE)
42
43 post-install:
44 install -m 755 $(WORKSRC)/libbz2.so.$(VERSION) $(DESTDIR)$(libdir)/libbz2.so.$(VERSION)
45 ln -sf libbz2.so.$(VERSION) $(DESTDIR)$(libdir)/libbz2.so.1.0
46 ln -sf libbz2.so.$(VERSION) $(DESTDIR)$(libdir)/libbz2.so
47 @$(MAKECOOKIE)
48
49 include gar/category.mk