wip/libmpq: import libmpq-0.4.2 as wip/libmpq

libmpq is a library which can be easily used in own applications
to extract, create or manipulate MoPaQ mpq archives.

MPQ, or MoPaQ, is a proprietary archive format created by Mike
O'Brien, the man hailed as Blizzard's multiplayer engine genius,
back in 1996 as a general purpose archive for use with Diablo.
The archive format is used by many Blizzard titles like Diablo,
Diablo 2, Starcraft, Warcraft 2: BNE, a newer version in Warcraft
3 and World of Warcraft (WoW).
This commit is contained in:
Yorick Hardy 2019-11-05 23:06:50 +02:00
parent 13986a4827
commit 4c2ab940f2
6 changed files with 92 additions and 0 deletions

View File

@ -1957,6 +1957,7 @@ SUBDIR+= libmesode
SUBDIR+= libmirisdr-git
SUBDIR+= libmobi-git
SUBDIR+= libmpg123
SUBDIR+= libmpq
SUBDIR+= libmusclecard
SUBDIR+= libncl
SUBDIR+= libnestedsums

9
libmpq/DESCR Normal file
View File

@ -0,0 +1,9 @@
libmpq is a library which can be easily used in own applications
to extract, create or manipulate MoPaQ mpq archives.
MPQ, or MoPaQ, is a proprietary archive format created by Mike
O'Brien, the man hailed as Blizzard's multiplayer engine genius,
back in 1996 as a general purpose archive for use with Diablo.
The archive format is used by many Blizzard titles like Diablo,
Diablo 2, Starcraft, Warcraft 2: BNE, a newer version in Warcraft
3 and World of Warcraft (WoW).

26
libmpq/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $NetBSD$
DISTNAME= libmpq-0.4.2
CATEGORIES= devel games
MASTER_SITES= https://libmpq.org/download/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://libmpq.org/download/
COMMENT= Library to extract, create or manipulate mpq archives
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
PKGCONFIG_OVERRIDE+= libmpq.pc.in
PYTHON_VERSIONS_INCOMPATIBLE= 36 37 38
PY_PATCHPLIST= yes
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"

37
libmpq/PLIST Normal file
View File

@ -0,0 +1,37 @@
@comment $NetBSD$
bin/libmpq-config
include/libmpq/mpq.h
lib/libmpq.la
lib/pkgconfig/libmpq.pc
${PYSITELIB}/mpq.py
${PYSITELIB}/mpq.pyc
${PYSITELIB}/mpq.pyo
man/man1/libmpq-config.1
man/man3/libmpq.3
man/man3/libmpq__archive_close.3
man/man3/libmpq__archive_files.3
man/man3/libmpq__archive_offset.3
man/man3/libmpq__archive_open.3
man/man3/libmpq__archive_packed_size.3
man/man3/libmpq__archive_unpacked_size.3
man/man3/libmpq__archive_version.3
man/man3/libmpq__block_close_offset.3
man/man3/libmpq__block_offset.3
man/man3/libmpq__block_open_offset.3
man/man3/libmpq__block_packed_size.3
man/man3/libmpq__block_read.3
man/man3/libmpq__block_seed.3
man/man3/libmpq__block_unpacked_size.3
man/man3/libmpq__file_blocks.3
man/man3/libmpq__file_compressed.3
man/man3/libmpq__file_encrypted.3
man/man3/libmpq__file_imploded.3
man/man3/libmpq__file_name.3
man/man3/libmpq__file_number.3
man/man3/libmpq__file_offset.3
man/man3/libmpq__file_packed_size.3
man/man3/libmpq__file_read.3
man/man3/libmpq__file_unpacked_size.3
man/man3/libmpq__init.3
man/man3/libmpq__shutdown.3
man/man3/libmpq__version.3

13
libmpq/buildlink3.mk Normal file
View File

@ -0,0 +1,13 @@
# $NetBSD$
BUILDLINK_TREE+= libmpq
.if !defined(LIBMPQ_BUILDLINK3_MK)
LIBMPQ_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libmpq+= libmpq>=0.4.2
BUILDLINK_PKGSRCDIR.libmpq?= ../../wip/libmpq
.endif # LIBMPQ_BUILDLINK3_MK
BUILDLINK_TREE+= -libmpq

6
libmpq/distinfo Normal file
View File

@ -0,0 +1,6 @@
$NetBSD$
SHA1 (libmpq-0.4.2.tar.bz2) = 4c9265094370641a687933d33c2ff531451cd5e2
RMD160 (libmpq-0.4.2.tar.bz2) = 3c7c854b5d491baeb8d2c7b338c16b4de772d999
SHA512 (libmpq-0.4.2.tar.bz2) = 6d4431c950b37b628f80c59faa783782745e408156322d2e2ffc9c9bec4f20c602523d647be8269f1a2acdd76b519a694e8eec79f2876bbd42112d5a929d5cfa
Size (libmpq-0.4.2.tar.bz2) = 257615 bytes