1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/lang/cparser/Makefile
Baptiste Daroussin f6b22cc82f Support stage
Stop trying to remove striping from INSTALL_PROGRAM is DEBUG is set, the framework already does that
2014-03-25 08:13:17 +00:00

40 lines
803 B
Makefile

# Created by: Christoph Mallon <christoph.mallon@gmx.de>
# $FreeBSD$
PORTNAME= cparser
PORTVERSION= 0.9.14
CATEGORIES= lang devel
MASTER_SITES= SF
MAINTAINER= sperber@FreeBSD.org
COMMENT= C99 compiler using libFIRM as backend
LICENSE= GPLv2
LIB_DEPENDS= libfirm.so:${PORTSDIR}/devel/libfirm
USES= pkgconfig gmake tar:bzip2
PLIST_FILES= bin/cparser \
man/man1/cparser.1.gz
BUILDDIR= optimize
OPTIONS_DEFINE= DEBUG
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
BUILDDIR= debug
.else
post-patch:
@${REINPLACE_CMD} -e 's/^variant ?= debug/variant ?= optimize/' \
${WRKSRC}/Makefile
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/${BUILDDIR}/cparser ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/cparser.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
.include <bsd.port.mk>