1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/textproc/highlight/Makefile
2009-01-06 17:43:44 +00:00

69 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.6.12
PORTEPOCH= 1
CATEGORIES= textproc
MASTER_SITES= http://www.andre-simon.de/zip/
MAINTAINER= alexbl@FreeBSD.org
COMMENT= Customizable syntax highlighter
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ARGS= CXX="${CXX}" \
CFLAGS="${CXXFLAGS} ${CPPFLAGS} -DHAVE_DECL_GETOPT" \
LDFLAGS="${LDFLAGS}"
PLIST_FILES= bin/highlight
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog INSTALL README README_DE README_INDENT \
README_LANGLIST README_REGEX TODO
.endif
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e \
's|^PREFIX =|PREFIX ?=|' ${WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/${MAN1}.gz ${MANPREFIX}/man/man1
@${MKDIR} ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/filetypes.conf ${ETCDIR}
@${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}
${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
post-install:
.for dir in ${ETCDIR} ${DATADIR} ${EXAMPLESDIR}
@${FIND} ${dir} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${dir} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endfor
.include <bsd.port.post.mk>