pkgsrc/devel/astyle/Makefile
schmonz 3d1158c602 Fix build on Darwin (at least 17.4.0) by including the Darwin makefile
from the "macos" source tarball, which differs from the "linux" one used
here only by which build instructions it contains.
2018-03-17 17:16:59 +00:00

30 lines
837 B
Makefile

# $NetBSD: Makefile,v 1.21 2018/03/17 17:16:59 schmonz Exp $
DISTNAME= astyle_3.1_linux
PKGNAME= ${DISTNAME:S/_linux//:S/_/-/}
CATEGORIES= textproc devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=astyle/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://astyle.sourceforge.net/
COMMENT= Free, Fast and Small Automatic Formatter for C, C++, C++/CLI, C\#, and Java
LICENSE= gnu-lgpl-v3
WRKSRC= ${WRKDIR}/astyle
USE_TOOLS+= gmake
USE_LANGUAGES= c++
AUTO_MKDIRS= yes
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
BUILD_DIRS= build/mac
.else
BUILD_DIRS= build/gcc
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BUILD_DIRS}/bin/astyle ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${DESTDIR}${PREFIX}/share/doc/astyle
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"