mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
36 lines
760 B
Makefile
36 lines
760 B
Makefile
# Created by: Christoph Mallon <christoph.mallon@gmx.de>
|
|
|
|
PORTNAME= cparser
|
|
PORTVERSION= 0.9.14
|
|
CATEGORIES= lang devel
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= C99 compiler using libFIRM as backend
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libfirm.so:devel/libfirm
|
|
|
|
USES= gmake pkgconfig tar:bzip2
|
|
|
|
PLIST_FILES= bin/cparser \
|
|
man/man1/cparser.1.gz
|
|
|
|
BUILDDIR= optimize
|
|
|
|
OPTIONS_DEFINE= DEBUG
|
|
|
|
DEBUG_VARS= BUILDDIR=debug
|
|
|
|
post-patch-DEBUG-off:
|
|
@${REINPLACE_CMD} -e 's/^variant ?= debug/variant ?= optimize/' \
|
|
${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/build/${BUILDDIR}/cparser ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/cparser.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|