freebsd-ports/textproc/xmlppm/Makefile
Kirill Ponomarev ca004b53c6 Update to version 0.98.1
PR:		ports/70635
Submitted by:	Ports Fury
2004-08-18 18:34:33 +00:00

49 lines
1.1 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: xmlppm
# Date created: May 15, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= xmlppm
PORTVERSION= 0.98.1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://www.cs.cornell.edu/People/jcheney/xmlppm/
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= XML-Conscious PPM Compression
LIB_DEPENDS= expat.5:${PORTSDIR}/textproc/expat2
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
USE_ICONV= yes
USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -lexpat -liconv"
PORTDOCS= README
PLIST_FILES= bin/xmlppm bin/xmlunppm
post-patch:
@${REINPLACE_CMD} -e \
's|^CC|#CC|g ; \
s|^CPPFLAGS|#CPPFLAGS|g ; \
s|^CFLAGS|#CFLAGS|g ; \
s|$$(CC)|$$(CXX)|g ; \
s|$$(CFLAGS)|$$(CXXFLAGS)|g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xmlppm ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/xmlunppm ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}
.endif
.include <bsd.port.mk>