mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
7a6cc0e548
Changes since last update: * Unicode fix thanx to agsags * Fixed some compilation warnings * Fix const issues thanx to Harald Gutsche * Fix MINGW issue where it lies about the size of a file * Fixed bug in with -R option * Prevented substitutions in strings in code
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: dparser
|
|
# Date created: Nov 11, 2003
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dparser
|
|
PORTVERSION= 1.26
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/${PORTNAME}/
|
|
DISTNAME= d-${PORTVERSION}-src
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= A simple but powerful tool for parsing
|
|
|
|
WRKSRC= ${WRKDIR}/d
|
|
|
|
USE_GMAKE= yes
|
|
MAKE_ARGS= CC="${CC}" D_OPTIMIZE=
|
|
|
|
MAN1= make_dparser.1
|
|
PORTDOCS= faq.html index.html manual.html
|
|
PLIST_FILES= bin/make_dparser include/dparse.h include/dparse_tables.h \
|
|
include/dparse_tree.h include/dsymtab.h lib/${LIBDPARSE}
|
|
|
|
.if defined(WITH_GC)
|
|
LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc
|
|
MAKE_ARGS+= D_USE_GC=1 \
|
|
GC_CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib"
|
|
LIBDPARSE= libdparse_gc.a
|
|
.else
|
|
LIBDPARSE= libdparse.a
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "ia64"
|
|
BROKEN= Does not build on ia64
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/make_dparser ${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/make_dparser.1 ${MANPREFIX}/man/man1
|
|
${INSTALL_DATA} ${WRKSRC}/dparse.h ${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/dparse_tables.h ${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/dparse_tree.h ${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/dsymtab.h ${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/${LIBDPARSE} ${PREFIX}/lib
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|