diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2015-07-02 17:25:15 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2015-07-02 17:25:15 +0200 |
commit | 595d2593963dfc33e52fb3bf82fc2595dc2c0e37 (patch) | |
tree | a284a943099fabc9782c2959c6da43e2b09078ae /freebsd/dependencies/tqmake/Makefile | |
parent | bb6e8f18c1d80974cd4f7a810267bd9753121f45 (diff) | |
download | tde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.tar.gz tde-packaging-595d2593963dfc33e52fb3bf82fc2595dc2c0e37.zip |
FreeBSD: Initial import
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'freebsd/dependencies/tqmake/Makefile')
-rw-r--r-- | freebsd/dependencies/tqmake/Makefile | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/freebsd/dependencies/tqmake/Makefile b/freebsd/dependencies/tqmake/Makefile new file mode 100644 index 000000000..183848294 --- /dev/null +++ b/freebsd/dependencies/tqmake/Makefile @@ -0,0 +1,73 @@ +# Created by: slavek.banko@axis.cz +# $FreeBSD$ + +.include <../../trinity.port.mk> + +PORTNAME= tqmake +COMMENT= The build utility of the TQt from Trinity +TDE_PREVERSION= ~pre7+6ff4ab89 +MASTER_SITE_SUBDIR= t/tqt-x11-free +DISTNAME= tqt-x11-free_${TDE_VERSION}${TDE_PREVERSION:C/(~(pre|r|s)[0-9]*).*/\1/1} +DISTSRC= tqt3-trinity-${TDE_VERSION}${TDE_PREVERSION} +PORTREVISION= 0 +CATEGORIES= devel +DIST_SUBDIR= TDE/dependencies +PREFIX= ${LOCALBASE} + + +USES+= fmake + +WRKSRC= ${WRKDIR}/${DISTNAME}/qmake +MAKEFILE= ${FILESDIR}/Makefile.bsd +MAKE_ENV+= FILESDIR="${FILESDIR}" +REINPLACE_ARGS= -i "" + +EXTRACT_AFTER_ARGS+= \ + '${EXTRACT_BASE}mkspecs' \ + '${EXTRACT_BASE}src/*/*.h' \ + '${EXTRACT_BASE}qmake' \ + '${EXTRACT_BASE}src/tools' + +OPTIONS_DEFINE= DOCS + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} +EXTRACT_AFTER_ARGS+='${EXTRACT_BASE}doc/html/qmake*' +DOCSDIR= ${PREFIX}/share/doc/tqt3 +PLIST_SUB+= DOCSDIR="${DOCSDIR}" +.endif + +post-patch: + @${RM} -fr ${WRKSRC}/examples ${WRKSRC}/tutorial + @${REINPLACE_CMD} -e 's|-O2|${CXXFLAGS}|' \ + -e 's|gcc|${CC}|' \ + -e 's|g++|${CXX}|' \ + -e 's|/usr/local|${LOCALBASE}|' \ + -e 's|/usr/X11R6|${LOCALBASE}|' \ + -e 's|$$(QTDIR)/bin|${PREFIX}/bin|g' \ + -e 's|$$(QTDIR)/include|${PREFIX}/include/tqt3|g' \ + -e 's|$$(QTDIR)/lib|${PREFIX}/lib|g' \ + -e 's|$$(QTDIR)|${PREFIX}/share/tqt3|' \ + -e 's|release|release thread|' \ + ${WRKSRC}/../mkspecs/freebsd-g++/qmake.conf + ${LN} -s freebsd-g++ ${WRKSRC}/../mkspecs/default + @${REINPLACE_CMD} -e 's|@QMAKE_QTOBJS@||g' ${WRKSRC}/Makefile.unix + +do-configure: + ${SED} -e 's|/usr/local|${PREFIX}|g' \ + < ${FILESDIR}/qconfig.cpp \ + > ${WRKSRC:H}/src/tools/qconfig.cpp + ${ECHO} '/* empty */' > ${WRKSRC}/ntqconfig.h + ${LN} ${WRKSRC}/ntqconfig.h ${WRKSRC}/ntqmodules.h + ${LN} -s . ${WRKDIR}/${DISTNAME}/src/tools/private + +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${CP} -Rp ${WRKSRC:H}/doc/html ${STAGEDIR}${DOCSDIR} +.endif + ${MKDIR} ${STAGEDIR}${PREFIX}/share/tqt3/bin + ${LN} -s ../../../bin/tqmake ${STAGEDIR}${PREFIX}/share/tqt3/bin/ + +.include <bsd.port.mk> |