freebsd-ports/textproc/highlight/Makefile
Kirill Ponomarev 525398f05e - Update to version 2.0.13
PR:		59847
Submitted by:	Ports Fury
2003-12-04 14:41:45 +00:00

59 lines
1.7 KiB
Makefile

# New ports collection makefile for: highlight
# Date created: 05 August 2003
# Whom: Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= highlight
PORTVERSION= 2.0.13
PORTEPOCH= 1
CATEGORIES= textproc
MASTER_SITES= http://www.andre-simon.de/zip/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= Customizable syntax highlighter
WRKSRC= ${WRKDIR}/${DISTNAME}/${PORTNAME}
USE_GETOPT_LONG= yes
USE_REINPLACE= yes
USE_GMAKE= yes
MAKE_ENV= CPPFLAGS="${CPPFLAGS} -DHAVE_DECL_GETOPT" LDFLAGS="${LDFLAGS}"
MAKEFILE= makefile
ALL_TARGET= ${PORTNAME}
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/share/highlight|${DATADIR}|' ${WRKSRC}/datadir.cpp
@${REINPLACE_CMD} -e 's|g++|$$(CXX)|g ; \
s|-O2|$$(CXXFLAGS) $$(CPPFLAGS)|g ; \
s|-L/usr/lib|$$(LDFLAGS)|g' ${WRKSRC}/makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/../man/${MAN1}.gz ${MANPREFIX}/man/man1
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/../langDefs/extensions.conf ${DATADIR}
@${MKDIR} ${DATADIR}/helpmsg
${INSTALL_DATA} ${WRKSRC}/../helpmsg/* ${DATADIR}/helpmsg
@${MKDIR} ${DATADIR}/langDefs
${INSTALL_DATA} ${WRKSRC}/../langDefs/*.lang ${DATADIR}/langDefs
@${MKDIR} ${DATADIR}/themes
${INSTALL_DATA} ${WRKSRC}/../themes/* ${DATADIR}/themes
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in AUTHORS ChangeLog INSTALL README
${INSTALL_DATA} ${WRKSRC}/../${i} ${DOCSDIR}
.endfor
@${MKDIR} ${EXAMPLESDIR}
${TAR} -C ${WRKSRC}/../utils -cf - . | \
${TAR} -C ${EXAMPLESDIR} --unlink -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>