diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2013-05-10 14:31:14 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2013-05-10 14:31:14 +0000 |
commit | cad29590f3a7c59ee3e0d0b123f54b81655a90d4 (patch) | |
tree | 8cf7f99c73c72643d938cb778cc9baee6ebea43e /archivers/unalz/Makefile | |
parent | 93f9fa988e2b4ee4342d30312cabac4f954f58b7 (diff) | |
download | ports-cad29590f3a7c59ee3e0d0b123f54b81655a90d4.tar.gz ports-cad29590f3a7c59ee3e0d0b123f54b81655a90d4.zip |
Notes
Diffstat (limited to 'archivers/unalz/Makefile')
-rw-r--r-- | archivers/unalz/Makefile | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/archivers/unalz/Makefile b/archivers/unalz/Makefile index 9ee89af2a4d4..5661d22a6b63 100644 --- a/archivers/unalz/Makefile +++ b/archivers/unalz/Makefile @@ -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@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> |