svn commit: r404928 - head/lang/cparser
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Dec 31 10:58:15 UTC 2015
Author: amdmi3
Date: Thu Dec 31 10:58:14 2015
New Revision: 404928
URL: https://svnweb.freebsd.org/changeset/ports/404928
Log:
- Clarify LICENSE
- Add LICENSE_FILE
- Switch to options helpers
Modified:
head/lang/cparser/Makefile
Modified: head/lang/cparser/Makefile
==============================================================================
--- head/lang/cparser/Makefile Thu Dec 31 10:58:14 2015 (r404927)
+++ head/lang/cparser/Makefile Thu Dec 31 10:58:14 2015 (r404928)
@@ -9,11 +9,12 @@ MASTER_SITES= SF
MAINTAINER= ports at FreeBSD.org
COMMENT= C99 compiler using libFIRM as backend
-LICENSE= GPLv2
+LICENSE= GPLv2 # or later
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfirm.so:${PORTSDIR}/devel/libfirm
-USES= pkgconfig gmake tar:bzip2
+USES= gmake pkgconfig tar:bzip2
PLIST_FILES= bin/cparser \
man/man1/cparser.1.gz
@@ -22,15 +23,11 @@ BUILDDIR= optimize
OPTIONS_DEFINE= DEBUG
-.include <bsd.port.options.mk>
+DEBUG_VARS= BUILDDIR=debug
-.if ${PORT_OPTIONS:MDEBUG}
-BUILDDIR= debug
-.else
-post-patch:
+post-patch-DEBUG-off:
@${REINPLACE_CMD} -e 's/^variant ?= debug/variant ?= optimize/' \
${WRKSRC}/Makefile
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/${BUILDDIR}/cparser ${STAGEDIR}${PREFIX}/bin
More information about the svn-ports-all
mailing list