diff options
author | makc <makc@FreeBSD.org> | 2013-10-09 18:08:04 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2013-10-09 18:08:04 +0800 |
commit | b007c6bbe5b8c1944952df8b20c8b5aa2498fc1d (patch) | |
tree | 783ac82dca4d834a26ba06cd6c31ec4c55c74099 /cad/librecad | |
parent | e56aeb69d6b9543f6719c7da94faf66f60caa342 (diff) | |
download | freebsd-ports-gnome-b007c6bbe5b8c1944952df8b20c8b5aa2498fc1d.tar.gz freebsd-ports-gnome-b007c6bbe5b8c1944952df8b20c8b5aa2498fc1d.tar.zst freebsd-ports-gnome-b007c6bbe5b8c1944952df8b20c8b5aa2498fc1d.zip |
- Convert to USES= qmake
- Bring stage support
- Adjust DESKTOP_ENTRIES
- Use options helpers
- Use new LIB_DEPENDS syntax
Diffstat (limited to 'cad/librecad')
-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> |