diff options
author | sperber <sperber@FreeBSD.org> | 2013-05-01 01:48:36 +0800 |
---|---|---|
committer | sperber <sperber@FreeBSD.org> | 2013-05-01 01:48:36 +0800 |
commit | fe05d70f13561e0b3bf8940c337ff902fda5c071 (patch) | |
tree | 66925d2e09fc04a4edae9213275fffd71f3a0bfa /lang/cparser/Makefile | |
parent | 38a6e456e5f04fc2cd1b5320a3411df223658097 (diff) | |
download | freebsd-ports-gnome-fe05d70f13561e0b3bf8940c337ff902fda5c071.tar.gz freebsd-ports-gnome-fe05d70f13561e0b3bf8940c337ff902fda5c071.tar.zst freebsd-ports-gnome-fe05d70f13561e0b3bf8940c337ff902fda5c071.zip |
- Update to 0.9.14
- Switch to OptionsNG
- Add Options for DEBUG
- Update pkg-descr and WWW:
- Trim Makefile headers
- Add USES= pkgconfig
- Remove shlib versions
- Update MAINTAINER to my FreeBSD address
PR: ports/175920
Submitted by: Po-Chien Lin <linpc _AT_ cs.nctu.edu.tw>
Approved by: beat (mentor)
Diffstat (limited to 'lang/cparser/Makefile')
-rw-r--r-- | lang/cparser/Makefile | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/lang/cparser/Makefile b/lang/cparser/Makefile index 7fa482c95be3..04c2f95b06a8 100644 --- a/lang/cparser/Makefile +++ b/lang/cparser/Makefile @@ -1,33 +1,44 @@ -# New ports collection makefile for: libFIRM -# Date created: 22 Nov 2008 -# Whom: Christoph Mallon <christoph.mallon@gmx.de> -# +# Created by: Christoph Mallon <christoph.mallon@gmx.de> # $FreeBSD$ -# PORTNAME= cparser -PORTVERSION= 0.9.13 +PORTVERSION= 0.9.14 CATEGORIES= lang devel MASTER_SITES= SF -MAINTAINER= armin@frozen-zone.org +MAINTAINER= sperber@FreeBSD.org COMMENT= A C99 compiler using libFIRM as backend LICENSE= GPLv2 -LIB_DEPENDS= firm.1:${PORTSDIR}/devel/libfirm +LIB_DEPENDS= firm:${PORTSDIR}/devel/libfirm USE_BZIP2= yes USE_GMAKE= yes +USES= pkgconfig PLIST_FILES= bin/cparser +MAN1= cparser.1 + +BUILDDIR= optimize +INSTALL_CMD= ${INSTALL_PROGRAM} + +OPTIONS_DEFINE= DEBUG + .include <bsd.port.pre.mk> -MAN1= cparser.1 +.if ${PORT_OPTIONS:MDEBUG} +BUILDDIR= debug +INSTALL_CMD= ${INSTALL_PROGRAM:S,-s,,} +.else +post-patch: + @${REINPLACE_CMD} -e 's/^variant ?= debug/variant ?= optimize/' \ + ${WRKSRC}/Makefile +.endif do-install: - @${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/cparser ${PREFIX}/bin - @${INSTALL_MAN} ${INSTALL_WRKSRC}/cparser.1 ${MAN1PREFIX}/man/man1 + @${INSTALL_CMD} ${WRKSRC}/build/${BUILDDIR}/cparser ${PREFIX}/bin + @${INSTALL_MAN} ${WRKSRC}/cparser.1 ${MAN1PREFIX}/man/man1 .include <bsd.port.post.mk> |