aboutsummaryrefslogtreecommitdiffstats
path: root/devel/zziplib/Makefile
blob: 7da923387d4b03a8b8d35b64a9395cbc5df0d1f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Created by: George Reid <greid@ukug.uk.freebsd.org>
#
# $FreeBSD$
#

PORTNAME=   zziplib
PORTVERSION=    0.13.62
CATEGORIES= devel
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}13/${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A library to provide transparent read access to zipped files

LICENSE=    LGPL21 MPL
LICENSE_COMB=   dual

BUILD_DEPENDS=  zip:${PORTSDIR}/archivers/zip

OPTIONS_DEFINE= SDL

USE_BZIP2=  yes
USES=   pathfix pkgconfig
USE_PYTHON_BUILD=   yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ENV=  ac_cv_path_XMLTO=":"
USE_LDCONFIG=   yes

MAN3=       __zzip_fetch_disk_trailer.3 __zzip_parse_root_directory.3 __zzip_try_open.3 \
        zzip_close.3 zzip_closedir.3 zzip_compr_str.3 zzip_dir_alloc.3 \
        zzip_dir_alloc_ext_io.3 zzip_dir_close.3 zzip_dir_fdopen.3 \
        zzip_dir_fdopen_ext_io.3 zzip_dir_free.3 zzip_dir_open.3 \
        zzip_dir_open_ext_io.3 zzip_dir_read.3 zzip_dir_real.3 zzip_dir_stat.3 \
        zzip_dirfd.3 zzip_dirhandle.3 zzip_disk_buffer.3 zzip_disk_close.3 zzip_disk_entry_fopen.3 \
        zzip_disk_entry_strdup_comment.3 zzip_disk_entry_strdup_name.3 \
        zzip_disk_entry_to_data.3 zzip_disk_entry_to_file_header.3 \
        zzip_disk_fclose.3 zzip_disk_feof.3 zzip_disk_findfile.3 \
        zzip_disk_findfirst.3 zzip_disk_findmatch.3 zzip_disk_findnext.3 \
        zzip_disk_fopen.3 zzip_disk_fread.3 zzip_disk_init.3 zzip_disk_mmap.3 \
        zzip_disk_munmap.3 zzip_disk_new.3 zzip_disk_open.3 \
        zzip_entry_data_offset.3 zzip_entry_fclose.3 zzip_entry_feof.3 \
        zzip_entry_ffile.3 zzip_entry_findfile.3 zzip_entry_findfirst.3 \
        zzip_entry_findmatch.3 zzip_entry_findnext.3 zzip_entry_fopen.3 \
        zzip_entry_fread.3 zzip_entry_fread_file_header.3 zzip_entry_free.3 \
        zzip_entry_strdup_name.3 zzip_errno.3 zzip_error.3 zzip_fclose.3 \
        zzip_file_close.3 zzip_file_open.3 zzip_file_read.3 zzip_file_real.3 \
        zzip_file_stat.3 zzip_fopen.3 zzip_fread.3 zzip_freopen.3 zzip_fstat.3 \
        zzip_get_default_io.3 zzip_inflate_init.3 zzip_init_io.3 zzip_open.3 \
        zzip_open_ext_io.3 zzip_open_shared_io.3 zzip_opendir.3 \
        zzip_opendir_ext_io.3 zzip_read.3 zzip_readdir.3 zzip_realdir.3 \
        zzip_realfd.3 zzip_rewind.3 zzip_rewinddir.3 zzip_seek.3 zzip_seek32.3 zzip_seekdir.3 \
        zzip_seekdir32.3 zzip_seterror.3 zzip_strerror.3 zzip_strerror_of.3 zzip_tell.3 \
        zzip_tell32.3 zzip_telldir.3 zzip_telldir32.3

PORTSCOUT=  limit:^0\.

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSDL}
USE_SDL=    sdl
CONFIGURE_ARGS+=--enable-sdl
PLIST_SUB+= SDL=""
.else
PLIST_SUB+= SDL="@comment "
.endif

.include <bsd.port.pre.mk>

test check:
    @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
        ${MAKEFILE} ${MAKE_ARGS} check)

.if !defined(WITHOUT_TESTS)
post-build::    test
.endif

.include <bsd.port.post.mk>