mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
18c6e18276
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk Notable changes are. - Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk. - USE_RUBY=yes is replaced with USES=ruby. - USE_RUBY_EXTCONF is replaced with USES=ruby:extconf. - USE_RUBY_RDOC is replaced with USES=ruby:rdoc. - USE_RUBY_SETUP is replaces with USES=ruby:setup. - RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with USES=ruby:{build,none,run}. - RUBY_REQUIRE isn't used anywhere, so removed. - USES=gem now implies USES=ruby. This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863 I have just made some cosmetic changes and ran exp-run to test that the tree is not in a BROKEN state. Approved by: portmgr Differential Revision: https://reviews.freebsd.org/D37925
83 lines
2.6 KiB
Makefile
83 lines
2.6 KiB
Makefile
PORTNAME= klayout
|
|
PORTVERSION= 0.28.3
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= cad
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Qt-based chip mask layout viewing and editing tool
|
|
WWW= http://www.klayout.de/index.html
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BROKEN_i386= type 'hash<long long>' does not provide a call operator
|
|
BROKEN_powerpc= type 'hash<long long>' does not provide a call operator
|
|
BROKEN_sparc64= does not compile on sparc64: gcc bug
|
|
|
|
USES= compiler:c++0x gmake gl python ruby qt:5
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= KLayout
|
|
USE_GL= gl
|
|
USE_QT= core buildtools designer gui multimedia network printsupport \
|
|
qmake sql svg testlib uitools widgets xml xmlpatterns
|
|
USE_LDCONFIG= yes
|
|
|
|
CXXFLAGS+= -fdeclspec -fPIC -I${LOCALBASE}/include/qt5 \
|
|
${QT5MODULES:S,^,-I${LOCALBASE}/include/qt5/Qt,}
|
|
LDFLAGS+= ${LIBS} ${QT5MODULES:S,^,-lQt5,} \
|
|
-L${LOCALBASE}/lib/qt5 -lpthread
|
|
QT5MODULES= Core Designer Gui Multimedia MultimediaWidgets \
|
|
Network PrintSupport Sql Svg Test Widgets Xml XmlPatterns
|
|
MAKE_ENV= INSTALLROOT=${STAGEDIR} \
|
|
PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR}
|
|
BUILD_WRKSRC= ${WRKSRC}/build-release
|
|
INSTALL_WRKSRC= ${WRKSRC}/build-release
|
|
TEST_WRKSRC= ${WRKSRC}/build-release
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION} PORTVERSION_R=${PORTVERSION:R}
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${SH} build.sh \
|
|
-with-qtbinding \
|
|
-rpath "${PREFIX}/lib/klayout" \
|
|
-prefix "${PREFIX}" \
|
|
-python ${PYTHON_CMD} \
|
|
-ruby ${RUBY} \
|
|
-dry-run
|
|
|
|
post-configure:
|
|
${ECHO_CMD} "#define PLUGINS_BASEDIR \"${PREFIX}/lib/klayout\"" \
|
|
> ${WRKSRC}/src/lay/lay/laySystemPathsDefaults.h
|
|
|
|
pre-install:
|
|
for D in lib db tl rdb pya; do \
|
|
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/klayout/$${D}; \
|
|
done
|
|
for D in db_plugins lay_plugins; do \
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/klayout/$${D}; \
|
|
done
|
|
|
|
post-install:
|
|
cd ${INSTALL_WRKSRC} && \
|
|
${STRIP_CMD} `${FIND} libklayout*so* -type f` && \
|
|
${MV} libklayout*so* ${STAGEDIR}${PREFIX}/lib/klayout
|
|
.for D in db_plugins lay_plugins
|
|
cd ${INSTALL_WRKSRC}/$D && \
|
|
${STRIP_CMD} `${FIND} *so* -type f` && \
|
|
${MV} *so* ${STAGEDIR}${PREFIX}/lib/klayout/$D
|
|
.endfor
|
|
cd ${INSTALL_WRKSRC}/pymod && \
|
|
${STRIP_CMD} `${FIND} lib*so* -type f` && \
|
|
${MV} lib*so* ${STAGEDIR}${PREFIX}/lib/klayout
|
|
cd ${STAGEDIR}${PYTHON_SITELIBDIR}/klayout && \
|
|
${STRIP_CMD} `${FIND} *.so -type f`
|
|
cd ${INSTALL_WRKSRC} && \
|
|
${INSTALL_PROGRAM} klayout strm* ${STAGEDIR}${PREFIX}/bin
|
|
|
|
do-test:
|
|
cd ${TEST_WRKSRC} && \
|
|
${SETENV} QT_QPA_PLATFORM=offscreen TESTTMP=testtmp TESTSRC=.. \
|
|
LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib/klayout/db_plugins:${STAGEDIR}${PREFIX}/lib/klayout/lay_plugins \
|
|
./ut_runner
|
|
|
|
.include <bsd.port.mk>
|