blob: b610f1fe52091598848ed53255fef9c5b41e04a1 (
plain)
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
|
# Created by: Hye-Shik Chang
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= cpe 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>
|