svn commit: r317806 - in head/archivers/unalz: . files
Martin Wilke
miwi at FreeBSD.org
Fri May 10 14:31:15 UTC 2013
Author: miwi
Date: Fri May 10 14:31:14 2013
New Revision: 317806
URL: http://svnweb.freebsd.org/changeset/ports/317806
Log:
- Fix build
PR: 178154
Submitted by: Ports Fury
Added:
head/archivers/unalz/files/
head/archivers/unalz/files/patch-UnAlz.cpp (contents, props changed)
Modified:
head/archivers/unalz/Makefile
head/archivers/unalz/pkg-descr (contents, props changed)
Modified: head/archivers/unalz/Makefile
==============================================================================
--- head/archivers/unalz/Makefile Fri May 10 14:29:29 2013 (r317805)
+++ head/archivers/unalz/Makefile Fri May 10 14:31:14 2013 (r317806)
@@ -5,8 +5,7 @@ PORTNAME= unalz
PORTVERSION= 0.65
PORTREVISION= 1
CATEGORIES= archivers
-MASTER_SITES= http://www.kipple.pe.kr/win/unalz/ \
- http://www.c-s.li/ports/
+MASTER_SITES= http://www.kipple.pe.kr/win/unalz/
EXTRACT_SUFX= .tgz
MAINTAINER= ports at FreeBSD.org
@@ -14,14 +13,28 @@ COMMENT= Extracts AlZip archives
LICENSE_FILE= ${WRKSRC}/readme.txt
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
USES= iconv
-PLIST_FILES= bin/unalz
-MAKEFILE= Makefile.freebsd
+USE_DOS2UNIX= yes
+MAKE_ARGS= CPP="${CXX}" CC="${CC}" OBJ="${UNALZ_OBJS}" \
+ LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
+ALL_TARGET= posix-utf8
+MAKE_JOBS_SAFE= yes
+
CFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib
-WRKSRC= ${WRKDIR}/unalz
+LDFLAGS+= -L${LOCALBASE}/lib -lz -lbz2
+
+PLIST_FILES= bin/${PORTNAME}
+
+UNALZ_OBJS= main.o UnAlz.o UnAlzUtils.o UnAlzBz2decompress.o \
+ UnAlzBzip2.o UnAlzbzlib.o
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/<sys\/timeb.h>/d' ${WRKSRC}/main.cpp
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/unalz ${PREFIX}/bin
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
.include <bsd.port.mk>
Added: head/archivers/unalz/files/patch-UnAlz.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/unalz/files/patch-UnAlz.cpp Fri May 10 14:31:14 2013 (r317806)
@@ -0,0 +1,14 @@
+--- UnAlz.cpp.orig
++++ UnAlz.cpp
+@@ -1907,7 +1907,11 @@
+ ////////////////////////////////////////////////////////////////////////////////////////////////////
+ UINT32 CUnAlz::CRC32(UINT32 l, BYTE c)
+ {
++#ifndef Z_U4
+ const unsigned long *CRC_TABLE = get_crc_table();
++#else
++ const Z_U4 *CRC_TABLE = get_crc_table();
++#endif
+ return CRC_TABLE[(l ^ c) & 0xff] ^ (l >> 8);
+ }
+
Modified: head/archivers/unalz/pkg-descr
==============================================================================
--- head/archivers/unalz/pkg-descr Fri May 10 14:29:29 2013 (r317805)
+++ head/archivers/unalz/pkg-descr Fri May 10 14:31:14 2013 (r317806)
@@ -1,4 +1,4 @@
-Unalz is a BSD-licensed unarchiver for AlZip format which requires proprietary
-and win32-only software but widely used in Korea.
+Unalz is a BSD-licensed unarchiver for AlZip format which requires
+proprietary and win32-only software but widely used in Korea.
WWW: http://www.kipple.pe.kr/win/unalz/
More information about the svn-ports-head
mailing list