pkgsrc/lang/qore/Makefile
2016-08-07 10:12:58 +00:00

57 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2016/08/07 10:12:58 nros Exp $
DISTNAME= qore-0.8.12
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GITHUB:=qorelanguage/}
EXTRACT_SUFX= .tar.bz2
GITHUB_RELEASE= release-${PKGVERSION_NOREV}
GITHUB_TYPE= release
MAINTAINER= nros@NetBSD.org
COMMENT= Qore programming language
HOMEPAGE= http://www.qore.org/
LICENSE= gnu-gpl-v2 OR gnu-lgpl-v2.1 OR mit
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= bash bison flex gmake pax
USE_LANGUAGES= c c99 c++
PTHREAD_OPTS+= native
FLEX_REQD= 2.5.31
PKGCONFIG_OVERRIDE+= qore.pc.in
REPLACE_QORE= doxygen/qdx
CONFIGURE_ARGS+=--with-libsuffix=""
#pre-configure:
# set -e; cd ${WRKSRC}; \
# autoheader; autoconf
#This is needed in order to comply the with MIT license and binary distribution
#Install docs
licensedir= share/doc/qore/license
INSTALLATION_DIRS+= ${licensedir}
post-install:
${INSTALL_DATA} ${WRKSRC}/COPYING.GPL ${DESTDIR}${PREFIX}/${licensedir}
${INSTALL_DATA} ${WRKSRC}/COPYING.LGPL ${DESTDIR}${PREFIX}/${licensedir}
${INSTALL_DATA} ${WRKSRC}/COPYING.MIT ${DESTDIR}${PREFIX}/${licensedir}
${INSTALL_DATA} ${WRKSRC}/README-LICENSE ${DESTDIR}${PREFIX}/${licensedir}
cd ${WRKSRC}/docs/ && ${PAX} -wr * ${DESTDIR}${PREFIX}/share/doc/qore
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/doc/qore
.include "application.mk"
.include "options.mk"
_WRAP_EXTRA_ARGS.CXX+= ${CLANG_NO_VALUE_PROPAGATION_PASS}
CWRAPPERS_APPEND.cxx+= ${CLANG_NO_VALUE_PROPAGATION_PASS}
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/pcre/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../math/mpfr/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"