mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
a296b84027
Port changes: * Change MASTER_SITES and WWW to https * Remove USES=dos2unix PR: 226227 Submitted by: Chris Hutchinson <portmaster@bsdforge.com> (maintainer)
40 lines
908 B
Makefile
40 lines
908 B
Makefile
# Created by: Hye-Shik Chang
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= unalz
|
|
DISTVERSION= 0.66
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= https://BSDforge.com/projects/source/archivers/unalz/
|
|
|
|
MAINTAINER= portmaster@BSDforge.com
|
|
COMMENT= Extracts AlZip archives
|
|
|
|
LICENSE= ZLIB
|
|
LICENSE_FILE= ${WRKSRC}/readme.txt
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USES= iconv tar:xz
|
|
MAKE_ARGS+= CPP="${CXX}" CC="${CC}" OBJ="${UNALZ_OBJS}" \
|
|
LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
|
|
ALL_TARGET= posix-utf8
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
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 \
|
|
's/-liconv/${ICONV_LIB}/g' ${WRKSRC}/Makefile
|
|
${REINPLACE_CMD} -e \
|
|
'/<sys\/timeb.h>/d' ${WRKSRC}/main.cpp
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|