diff options
Diffstat (limited to 'cad')
-rw-r--r-- | cad/librecad/Makefile | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/cad/librecad/Makefile b/cad/librecad/Makefile index 041d8c343358..1bd86a72f6cd 100644 --- a/cad/librecad/Makefile +++ b/cad/librecad/Makefile @@ -12,6 +12,7 @@ BUILD_DEPENDS= ${LOCALBASE}/lib/libmuparser.a:${PORTSDIR}/math/muparser USE_QT4= help qt3support help-tools_build moc_build qmake_build \ rcc_build uic_build uic3_build +USES= qmake MAKE_ENV= XDG_CONFIG_HOME=/dev/null USE_GITHUB= yes @@ -22,7 +23,6 @@ GH_COMMIT= c1f2eb6 OPTIONS_DEFINE= NLS -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MNLS} @@ -39,9 +39,6 @@ post-patch: '/^Icon/s,librecad,${PREFIX}/share/pixmaps/librecad.png,' \ ${WRKSRC}/desktop/librecad.desktop -do-configure: - @(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS}) - post-build: .if ${PORT_OPTIONS:MNLS} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \ @@ -53,13 +50,13 @@ post-build: ${SH} scripts/postprocess-unix.sh do-install: - ${MKDIR} ${PREFIX}/bin && \ - ${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad ${PREFIX}/bin - cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${DATADIR} - ${MKDIR} ${PREFIX}/share/applications && \ + ${INSTALL_PROGRAM} ${WRKSRC}/unix/librecad ${STAGEDIR}${PREFIX}/bin + cd ${WRKSRC}/unix/resources && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/applications ${INSTALL_DATA} ${WRKSRC}/desktop/librecad.desktop \ - ${PREFIX}/share/applications - ${MKDIR} ${PREFIX}/share/pixmaps && \ - ${INSTALL_DATA} ${WRKSRC}/res/main/librecad.png ${PREFIX}/share/pixmaps + ${STAGEDIR}${PREFIX}/share/applications + @${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKSRC}/res/main/librecad.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps .include <bsd.port.mk> |