This port did not build with gcc 3.3.1. I also fixed a possible buffer overflow (they used gets() to read from stdin). Please review the patch file ``patch-cftypes.cpp'' with extra care, since I am not sure whether this makes sense (2 positions in the file, marked with ``TODO'' - thanks. Also added some lines in cftypes.cpp to overcome the absence of values.h on -current. PR: ports/55767 Submitted by: Simon Barner <barner@in.tum.de>
31 lines
733 B
Makefile
31 lines
733 B
Makefile
# New ports collection makefile for: libcabinet
|
|
# Date Created: 30 November 2000
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libcabinet
|
|
PORTVERSION= 0.30
|
|
CATEGORIES= archivers
|
|
MASTER_SITES= http://trill.cis.fordham.edu/~barbacha/cabinet_library/ \
|
|
http://www.jian.tv/pub/linux/distfiles/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A portable library and utility to use Microsoft cabinet files (.cab)
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
SRCFILE= ${WRKSRC}/listcab.cpp
|
|
PROGFILE= ${SRCFILE:S/.cpp$//}
|
|
|
|
post-build:
|
|
${CXX} ${CXXFLAGS} -o ${PROGFILE} ${SRCFILE} -L${WRKSRC} -lcabinet
|
|
|
|
pre-install:
|
|
${MKDIR} ${PREFIX}/include/cabinet
|
|
|
|
post-install:
|
|
${INSTALL_PROGRAM} ${PROGFILE} ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|