You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.0 KiB
74 lines
2.0 KiB
# Created by: slavek.banko@axis.cz
|
|
# $FreeBSD$
|
|
|
|
.include <../../trinity.port.mk>
|
|
|
|
PORTNAME= tqmake
|
|
COMMENT= The build utility of the TQt from Trinity
|
|
TDE_PREVERSION=
|
|
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>
|