blob: 3a0c18530e37e6a97d60a6b1a6886eb9f2ce2864 (
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
|
# Created by: Hye-Shik Chang
# $FreeBSD$
PORTNAME= unalz
PORTVERSION= 0.65
CATEGORIES= archivers
MASTER_SITES= http://www.kipple.pe.kr/win/unalz/ \
http://www.c-s.li/ports/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Extracts AlZip archives
LICENSE_FILE= ${WRKSRC}/readme.txt
BROKEN= fails to build
USES= iconv
PLIST_FILES= bin/unalz
MAKEFILE= Makefile.freebsd
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
WRKSRC= ${WRKDIR}/unalz
pre-patch:
cd ${WRKSRC} && for f in `find . -name '*.c' -o -name '*.h'`; do \
${TR} -d '\015' < ${WRKSRC}/$$f > ${WRKSRC}/$$f.tmp && \
${MV} -f ${WRKSRC}/$$f.tmp ${WRKSRC}/$$f; \
done
${REINPLACE_CMD} -e 's|CPP = g++|CPP = ${CXX}|' \
-e "s|CC =|CC ?=|" \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/unalz ${PREFIX}/bin
.include <bsd.port.mk>
|