From 595d2593963dfc33e52fb3bf82fc2595dc2c0e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Thu, 2 Jul 2015 17:25:15 +0200 Subject: FreeBSD: Initial import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- freebsd/dependencies/tqmake/Makefile | 73 +++++++++++++ freebsd/dependencies/tqmake/distinfo | 2 + freebsd/dependencies/tqmake/files/Makefile.bsd | 43 ++++++++ freebsd/dependencies/tqmake/files/qconfig.cpp | 15 +++ freebsd/dependencies/tqmake/pkg-descr | 8 ++ freebsd/dependencies/tqmake/pkg-plist | 143 +++++++++++++++++++++++++ 6 files changed, 284 insertions(+) create mode 100644 freebsd/dependencies/tqmake/Makefile create mode 100644 freebsd/dependencies/tqmake/distinfo create mode 100644 freebsd/dependencies/tqmake/files/Makefile.bsd create mode 100644 freebsd/dependencies/tqmake/files/qconfig.cpp create mode 100644 freebsd/dependencies/tqmake/pkg-descr create mode 100644 freebsd/dependencies/tqmake/pkg-plist (limited to 'freebsd/dependencies/tqmake') 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 + +.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 diff --git a/freebsd/dependencies/tqmake/distinfo b/freebsd/dependencies/tqmake/distinfo new file mode 100644 index 000000000..7e6dd6e0a --- /dev/null +++ b/freebsd/dependencies/tqmake/distinfo @@ -0,0 +1,2 @@ +SHA256 (TDE/dependencies/tqt-x11-free_14.0.1~pre7.orig.tar.xz) = a0d8738ef9389c91bff65fd2ff8e42787076fdd76f3843f683c088cd9240e05e +SIZE (TDE/dependencies/tqt-x11-free_14.0.1~pre7.orig.tar.xz) = 10889040 diff --git a/freebsd/dependencies/tqmake/files/Makefile.bsd b/freebsd/dependencies/tqmake/files/Makefile.bsd new file mode 100644 index 000000000..7f14700ed --- /dev/null +++ b/freebsd/dependencies/tqmake/files/Makefile.bsd @@ -0,0 +1,43 @@ +# $FreeBSD$ + +_OBJS!= ${MAKE} -f Makefile.unix -V OBJS -V QOBJS +# We'd like to avoid using qconfig.cpp, but can't -- see the comment +# next to -DHAVE_CONFIG_CPP below: +#_OBJS:= ${_OBJS:S/qconfig.o//} +SRCS:= ${_OBJS:.o=.cpp} +NO_MAN= true # qmake.1 anyone? + +.PATH: ${.CURDIR} ${.CURDIR:H}/src/tools +CXXFLAGS+=-I${.CURDIR:H}/mkspecs/freebsd-g++ + +.for s in tools kernel codecs +CXXFLAGS+=-I${.CURDIR:H}/src/$s +.endfor + +.for g in /. /unix /win32 /mac +.PATH: ${.CURDIR}/generators$g +CXXFLAGS+=-I${.CURDIR}/generators$g +.endfor + +CXXFLAGS+=-I. -I"${FILESDIR}" + +CXXFLAGS+=-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT \ + -DQT_NO_STL -DQT_NO_COMPRESS -DQT_INSTALL_DATA="\"${SHAREDIR}\"" + +# I guess, qconfig.cpp used to be optional, but no longer is -- due to +# bit-rot in Qt sources. So we still have to compile it, but, by not +# adding the following define, we reduce the seemingly needless usage of +# it: +# -DHAVE_QCONFIG_CPP + +PROG_CXX= tqmake +BINDIR= ${PREFIX}/bin +SHAREDIR= ${PREFIX}/share/tqt3 + +${DESTDIR}${SHAREDIR}: + mkdir -p "$@" + +beforeinstall: ${DESTDIR}${SHAREDIR} + cp -Rp ${.CURDIR:H}/mkspecs ${DESTDIR}${SHAREDIR} + +.include diff --git a/freebsd/dependencies/tqmake/files/qconfig.cpp b/freebsd/dependencies/tqmake/files/qconfig.cpp new file mode 100644 index 000000000..ff1ee16b4 --- /dev/null +++ b/freebsd/dependencies/tqmake/files/qconfig.cpp @@ -0,0 +1,15 @@ +/* + * $FreeBSD$ + * Hand-crafted... + * The default prefix (/ usr / local) is dynamicly replaced + * at configure time. + */ +const char *tqInstallPath() { return "/usr/local"; } +const char *tqInstallPathDocs() { return "/usr/local/share/doc/tqt3"; } +const char *tqInstallPathHeaders() { return "/usr/local/include/tqt3"; } +const char *tqInstallPathLibs() { return "/usr/local/lib"; } +const char *tqInstallPathBins() { return "/usr/local/bin"; } +const char *tqInstallPathPlugins() { return "/usr/local/plugins/tqt3"; } +const char *tqInstallPathData() { return "/usr/local/share/tqt3"; } +const char *tqInstallPathTranslations() { return "/usr/local/translations/tqt3"; } +const char *tqInstallPathSysconf() { return "/usr/local/etc"; } diff --git a/freebsd/dependencies/tqmake/pkg-descr b/freebsd/dependencies/tqmake/pkg-descr new file mode 100644 index 000000000..9659c8e32 --- /dev/null +++ b/freebsd/dependencies/tqmake/pkg-descr @@ -0,0 +1,8 @@ +TQt is a C++ toolkit for application development. It lets application +developers target all major operating systems with a single application +source code. + +TQmake is a project and makefile creating utility, that is part of TQt. +For ease of maintenance it is split out into a port of its own. + +WWW: http://www.trinitydesktop.org/ diff --git a/freebsd/dependencies/tqmake/pkg-plist b/freebsd/dependencies/tqmake/pkg-plist new file mode 100644 index 000000000..ef14b1e2e --- /dev/null +++ b/freebsd/dependencies/tqmake/pkg-plist @@ -0,0 +1,143 @@ +bin/tqmake +share/tqt3/bin/tqmake +share/tqt3/mkspecs/aix-g++-64/qmake.conf +share/tqt3/mkspecs/aix-g++-64/qplatformdefs.h +share/tqt3/mkspecs/aix-g++/qmake.conf +share/tqt3/mkspecs/aix-g++/qplatformdefs.h +share/tqt3/mkspecs/aix-xlc-64/qmake.conf +share/tqt3/mkspecs/aix-xlc-64/qplatformdefs.h +share/tqt3/mkspecs/aix-xlc/qmake.conf +share/tqt3/mkspecs/aix-xlc/qplatformdefs.h +share/tqt3/mkspecs/bsdi-g++/qmake.conf +share/tqt3/mkspecs/bsdi-g++/qplatformdefs.h +share/tqt3/mkspecs/cygwin-g++/qmake.conf +share/tqt3/mkspecs/cygwin-g++/qplatformdefs.h +share/tqt3/mkspecs/darwin-g++/qmake.conf +share/tqt3/mkspecs/darwin-g++/qplatformdefs.h +share/tqt3/mkspecs/default +share/tqt3/mkspecs/dgux-g++/qmake.conf +share/tqt3/mkspecs/dgux-g++/qplatformdefs.h +share/tqt3/mkspecs/freebsd-g++/qmake.conf +share/tqt3/mkspecs/freebsd-g++/qplatformdefs.h +share/tqt3/mkspecs/freebsd-g++34/qmake.conf +share/tqt3/mkspecs/freebsd-g++34/qplatformdefs.h +share/tqt3/mkspecs/freebsd-icc/qmake.conf +share/tqt3/mkspecs/freebsd-icc/qplatformdefs.h +share/tqt3/mkspecs/hpux-acc-64/qmake.conf +share/tqt3/mkspecs/hpux-acc-64/qplatformdefs.h +share/tqt3/mkspecs/hpux-acc-o64/qmake.conf +share/tqt3/mkspecs/hpux-acc-o64/qplatformdefs.h +share/tqt3/mkspecs/hpux-acc/qmake.conf +share/tqt3/mkspecs/hpux-acc/qplatformdefs.h +share/tqt3/mkspecs/hpux-cc/qmake.conf +share/tqt3/mkspecs/hpux-cc/qplatformdefs.h +share/tqt3/mkspecs/hpux-g++-64/qmake.conf +share/tqt3/mkspecs/hpux-g++-64/qplatformdefs.h +share/tqt3/mkspecs/hpux-g++/qmake.conf +share/tqt3/mkspecs/hpux-g++/qplatformdefs.h +share/tqt3/mkspecs/hpuxi-acc-32/qmake.conf +share/tqt3/mkspecs/hpuxi-acc-32/qplatformdefs.h +share/tqt3/mkspecs/hpuxi-acc-64/qmake.conf +share/tqt3/mkspecs/hpuxi-acc-64/qplatformdefs.h +share/tqt3/mkspecs/hurd-g++/qmake.conf +share/tqt3/mkspecs/hurd-g++/qplatformdefs.h +share/tqt3/mkspecs/irix-cc-64/qmake.conf +share/tqt3/mkspecs/irix-cc-64/qplatformdefs.h +share/tqt3/mkspecs/irix-cc-o32/qmake.conf +share/tqt3/mkspecs/irix-cc-o32/qplatformdefs.h +share/tqt3/mkspecs/irix-cc/qmake.conf +share/tqt3/mkspecs/irix-cc/qplatformdefs.h +share/tqt3/mkspecs/irix-g++/qmake.conf +share/tqt3/mkspecs/irix-g++/qplatformdefs.h +share/tqt3/mkspecs/linux-cxx/qmake.conf +share/tqt3/mkspecs/linux-cxx/qplatformdefs.h +share/tqt3/mkspecs/linux-ecc-64/qmake.conf +share/tqt3/mkspecs/linux-ecc-64/qplatformdefs.h +share/tqt3/mkspecs/linux-g++-32/qmake.conf +share/tqt3/mkspecs/linux-g++-32/qplatformdefs.h +share/tqt3/mkspecs/linux-g++-64/qmake.conf +share/tqt3/mkspecs/linux-g++-64/qplatformdefs.h +share/tqt3/mkspecs/linux-g++/qmake.conf +share/tqt3/mkspecs/linux-g++/qplatformdefs.h +share/tqt3/mkspecs/linux-icc/qmake.conf +share/tqt3/mkspecs/linux-icc/qplatformdefs.h +share/tqt3/mkspecs/linux-kcc/qmake.conf +share/tqt3/mkspecs/linux-kcc/qplatformdefs.h +share/tqt3/mkspecs/linux-kylix/qmake.conf +share/tqt3/mkspecs/linux-kylix/qplatformdefs.h +share/tqt3/mkspecs/linux-pgcc/qmake.conf +share/tqt3/mkspecs/linux-pgcc/qplatformdefs.h +share/tqt3/mkspecs/lynxos-g++/qmake.conf +share/tqt3/mkspecs/lynxos-g++/qplatformdefs.h +share/tqt3/mkspecs/macx-g++/Info.plist.app +share/tqt3/mkspecs/macx-g++/qmake.conf +share/tqt3/mkspecs/macx-g++/qplatformdefs.h +share/tqt3/mkspecs/macx-mwerks/README +share/tqt3/mkspecs/macx-mwerks/mwerkstmpl.xml +share/tqt3/mkspecs/macx-mwerks/qmake.conf +share/tqt3/mkspecs/macx-mwerks/qplatformdefs.h +share/tqt3/mkspecs/macx-pbuilder/Info.plist.app +share/tqt3/mkspecs/macx-pbuilder/qmake.conf +share/tqt3/mkspecs/macx-pbuilder/qplatformdefs.h +share/tqt3/mkspecs/macx-xlc/qmake.conf +share/tqt3/mkspecs/macx-xlc/qplatformdefs.h +share/tqt3/mkspecs/netbsd-g++/qmake.conf +share/tqt3/mkspecs/netbsd-g++/qplatformdefs.h +share/tqt3/mkspecs/openbsd-g++/qmake.conf +share/tqt3/mkspecs/openbsd-g++/qplatformdefs.h +share/tqt3/mkspecs/qnx-g++/qmake.conf +share/tqt3/mkspecs/qnx-g++/qplatformdefs.h +share/tqt3/mkspecs/reliant-cds-64/qmake.conf +share/tqt3/mkspecs/reliant-cds-64/qplatformdefs.h +share/tqt3/mkspecs/reliant-cds/qmake.conf +share/tqt3/mkspecs/reliant-cds/qplatformdefs.h +share/tqt3/mkspecs/sco-cc/qmake.conf +share/tqt3/mkspecs/sco-cc/qplatformdefs.h +share/tqt3/mkspecs/sco-g++/qmake.conf +share/tqt3/mkspecs/sco-g++/qplatformdefs.h +share/tqt3/mkspecs/solaris-cc-64/qmake.conf +share/tqt3/mkspecs/solaris-cc-64/qplatformdefs.h +share/tqt3/mkspecs/solaris-cc/qmake.conf +share/tqt3/mkspecs/solaris-cc/qplatformdefs.h +share/tqt3/mkspecs/solaris-g++-64/qmake.conf +share/tqt3/mkspecs/solaris-g++-64/qplatformdefs.h +share/tqt3/mkspecs/solaris-g++/qmake.conf +share/tqt3/mkspecs/solaris-g++/qplatformdefs.h +share/tqt3/mkspecs/tru64-cxx/qmake.conf +share/tqt3/mkspecs/tru64-cxx/qplatformdefs.h +share/tqt3/mkspecs/tru64-g++/qmake.conf +share/tqt3/mkspecs/tru64-g++/qplatformdefs.h +share/tqt3/mkspecs/unixware-cc/qmake.conf +share/tqt3/mkspecs/unixware-cc/qplatformdefs.h +share/tqt3/mkspecs/unixware-g++/qmake.conf +share/tqt3/mkspecs/unixware-g++/qplatformdefs.h +share/tqt3/mkspecs/win32-borland/qmake.conf +share/tqt3/mkspecs/win32-borland/qplatformdefs.h +share/tqt3/mkspecs/win32-g++/qmake.conf +share/tqt3/mkspecs/win32-g++/qplatformdefs.h +share/tqt3/mkspecs/win32-g++/qtcrtentrypoint.cpp +share/tqt3/mkspecs/win32-icc/qmake.conf +share/tqt3/mkspecs/win32-icc/qplatformdefs.h +share/tqt3/mkspecs/win32-icc/win32app.dsp +share/tqt3/mkspecs/win32-icc/win32dll.dsp +share/tqt3/mkspecs/win32-icc/win32lib.dsp +share/tqt3/mkspecs/win32-msvc.net/qmake.conf +share/tqt3/mkspecs/win32-msvc.net/qplatformdefs.h +share/tqt3/mkspecs/win32-msvc/qmake.conf +share/tqt3/mkspecs/win32-msvc/qplatformdefs.h +share/tqt3/mkspecs/win32-msvc/win32app.dsp +share/tqt3/mkspecs/win32-msvc/win32dll.dsp +share/tqt3/mkspecs/win32-msvc/win32lib.dsp +share/tqt3/mkspecs/win32-msvc2005/qmake.conf +share/tqt3/mkspecs/win32-msvc2005/qplatformdefs.h +share/tqt3/mkspecs/win32-watcom/qmake.conf +%%PORTDOCS%%%%DOCSDIR%%/html/qmake.dcf +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-1.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-2.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-3.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-4.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-5.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-6.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-7.html +%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual-8.html -- cgit v1.2.1