diff options
Diffstat (limited to 'devel/astyle/Makefile')
-rw-r--r-- | devel/astyle/Makefile | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/devel/astyle/Makefile b/devel/astyle/Makefile index 9f4eafb67c6..540008e8200 100644 --- a/devel/astyle/Makefile +++ b/devel/astyle/Makefile @@ -1,31 +1,25 @@ -# $NetBSD: Makefile,v 1.15 2013/05/25 16:39:39 shattered Exp $ -# +# $NetBSD: Makefile,v 1.16 2014/08/13 20:56:25 wiz Exp $ -DISTNAME= astyle_1.15.3 -PKGNAME= astyle-1.15.3 +DISTNAME= astyle_2.04_linux +PKGNAME= ${DISTNAME:S/_linux//:S/_/-/} CATEGORIES= textproc devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=astyle/} -EXTRACT_SUFX= .zip MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://astyle.sourceforge.net/ -COMMENT= Reindenter and reformatter of C, C++, C# and Java source code -LICENSE= gnu-gpl-v2 - -HTMLDIR= ${PREFIX}/share/doc/html/astyle -INSTALLATION_DIRS= bin ${HTMLDIR} +COMMENT= Free, Fast and Small Automatic Formatter for C, C++, C++/CLI, C#, and Java +LICENSE= gnu-lgpl-v3 +WRKSRC= ${WRKDIR}/astyle +BUILD_DIRS= build/gcc +USE_TOOLS+= gmake USE_LANGUAGES= c++ -WRKSRC= ${WRKDIR} -.include "../../mk/compiler.mk" - -.if !empty(CC_VERSION:Mgcc-2*) -CFLAGS+= -DASTYLE_GCC2 -.endif +HTMLDIR= ${PREFIX}/share/doc/html/astyle +INSTALLATION_DIRS= bin ${HTMLDIR} -post-install: - cd ${WRKSRC} && ${INSTALL_DATA} astyle.html \ - astyle_release_notes.html license.html ${DESTDIR}${HTMLDIR} +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/gcc/bin/astyle ${DESTDIR}${PREFIX}/bin + cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DESTDIR}${HTMLDIR} .include "../../mk/bsd.pkg.mk" |