libports: libbz2 (Bzip2)

Issue #1357
This commit is contained in:
Emery Hemingway 2015-01-07 17:23:42 -05:00 committed by Christian Helmuth
parent cfea0ea97d
commit b5f1af6af0
5 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1 @@
INC_DIR += $(call select_from_ports,bzip2)/include/libbz2

View File

@ -0,0 +1,12 @@
LIBBZ2_DIR := $(call select_from_ports,bzip2)/src/lib/libbz2
LIBS += libc
BIGFILES = -D_FILE_OFFSET_BITS=64
CC_DEF += -Winline $(BIGFILES)
SRC_C = blocksort.c huffman.c crctable.c randtable.c \
compress.c decompress.c bzlib.c
vpath %.c $(LIBBZ2_DIR)
# Bzip2 upstream recommends using a static library.

View File

@ -0,0 +1 @@
aac3680adeff7cb60bf7d04f6a17ee4592400a72

View File

@ -0,0 +1,10 @@
LICENSE := BSD
DOWNLOADS := bzip2.archive
VERSION := 1.0.6
URL(bzip2) := http://bzip.org/$(VERSION)/bzip2-$(VERSION).tar.gz
SHA(bzip2) := 3f89f861209ce81a6bab1fd1998c0ef311712002
DIR(bzip2) := src/lib/libbz2
DIRS := include/libbz2
DIR_CONTENT(include/libbz2) := src/lib/libbz2/bzlib.h

View File

@ -0,0 +1,5 @@
TARGET = test-libbz2
LIBS = libbz2
SRC_CC = main.cc
vpath main.cc $(PRG_DIR)/..