# $NetBSD: Makefile,v 1.16 2018/12/09 18:52:17 adam Exp $ DISTNAME= klayout-0.25.6 PKGREVISION= 1 CATEGORIES= cad MASTER_SITES= http://www.klayout.org/downloads/source/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.klayout.de/ COMMENT= Simple GDS and OASIS file viewer and Editor LICENSE= gnu-gpl-v2 USE_LANGUAGES= c c++ USE_TOOLS+= gmake bash CFLAGS+= -I${PREFIX}/include/python${PYVERSUFFIX} NO_CONFIGURE= yes SUBST_CLASSES+= rpath SUBST_MESSAGE.rpath= Add COMPILER_RPATH_FLAG and PREFIX to NetBSD specific config file SUBST_FILES.rpath+= config/Makefile.conf.netbsd-32-gcc-release SUBST_STAGE.rpath= post-patch SUBST_VARS.rpath= COMPILER_RPATH_FLAG PREFIX LDFLAGS BUILDLINK_TRANSFORM.NetBSD+= rm:-ldl AUTO_MKDIRS= yes INSTALL_BINDIR= ${DESTDIR}${PREFIX}/bin INSTALL_LIBDIR= ${DESTDIR}${PREFIX}/lib REL_DIR= build-release .include "../../mk/bsd.prefs.mk" .if !empty(MAKE_JOBS) MAKE_JOBS_FLAG= -option -j${MAKE_JOBS} .endif do-build: cd ${WRKSRC} && ${PKGSRC_SETENV} ${MAKE_ENV} ${BASH} build.sh \ -python python${PYVERSSUFFIX} \ -qt5 \ -qmake ${PREFIX}/qt5/bin/qmake \ -ruby ${PREFIX}/bin/${RUBY_NAME} \ ${MAKE_JOBS_FLAG} \ -prefix ${PREFIX} do-install: cd ${WRKSRC} && \ ${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/libklayout_* \ ${DESTDIR}${PREFIX}/lib ${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/strm* \ ${DESTDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/${REL_DIR}/klayout \ ${DESTDIR}${PREFIX}/bin .include "../../lang/python/pyversion.mk" .include "../../lang/ruby/buildlink3.mk" .include "../../x11/qt5-qtbase/buildlink3.mk" .include "../../x11/qt5-qtsvg/buildlink3.mk" .include "../../x11/qt5-qttools/buildlink3.mk" .include "../../mk/bsd.pkg.mk"