mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
2982da0457
PR: 246874 Submitted by: VVD <vvd@unislabs.com> Approved by: kwm (timeout)
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
# Created by: Adam Weinberger <adamw@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= highlight
|
|
PORTVERSION= 3.43
|
|
PORTREVISION= 8
|
|
PORTEPOCH= 3
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://www.andre-simon.de/zip/
|
|
|
|
MAINTAINER= kwm@FreeBSD.org
|
|
COMMENT= Customizable syntax highlighter
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= boost-libs>0:devel/boost-libs
|
|
|
|
USES= compiler:c++11-lib gmake lua pkgconfig tar:bzip2
|
|
USE_CXXSTD= c++11
|
|
MAKEFILE= makefile
|
|
MAKE_ARGS= CXX="${CXX}" \
|
|
CFLAGS="${CXXFLAGS} ${CPPFLAGS} -DHAVE_DECL_GETOPT" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's|^PREFIX =|PREFIX ?=|' \
|
|
-e 's|^conf_dir =.*|conf_dir = $${PREFIX}/etc/highlight/|' \
|
|
${WRKSRC}/${MAKEFILE}
|
|
@${REINPLACE_CMD} -e 's|^CXX=|CXX?=|' \
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
|
${WRKSRC}/src/${MAKEFILE}
|
|
|
|
post-install:
|
|
@cd ${STAGEDIR}${PREFIX}/etc/highlight && ${MV} filetypes.conf \
|
|
filetypes.conf.sample
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/highlight
|
|
|
|
.include <bsd.port.mk>
|