summaryrefslogtreecommitdiffstats
path: root/freebsd/dependencies/tqmake
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/dependencies/tqmake')
-rw-r--r--freebsd/dependencies/tqmake/Makefile75
-rw-r--r--freebsd/dependencies/tqmake/distinfo3
-rw-r--r--freebsd/dependencies/tqmake/files/Makefile.bsd43
-rw-r--r--freebsd/dependencies/tqmake/files/qconfig.cpp15
-rw-r--r--freebsd/dependencies/tqmake/pkg-descr8
-rw-r--r--freebsd/dependencies/tqmake/pkg-plist151
6 files changed, 295 insertions, 0 deletions
diff --git a/freebsd/dependencies/tqmake/Makefile b/freebsd/dependencies/tqmake/Makefile
new file mode 100644
index 000000000..ab721201e
--- /dev/null
+++ b/freebsd/dependencies/tqmake/Makefile
@@ -0,0 +1,75 @@
+# Created by: slavek.banko@axis.cz
+# $FreeBSD$
+#
+# TDE port map: dependencies/tqmake
+
+PORTSDIR?=/usr/ports
+.include <${PORTSDIR}/Mk/bsd.trinity.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}
+
+
+# For TQt3 is used FreeBSD make
+# Remove gmake from USES
+USES=
+
+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|/usr/local|${LOCALBASE}|' \
+ -e 's|/usr/X11R6|${LOCALBASE}|' \
+ -e 's|$$(TQTDIR)/bin|${PREFIX}/bin|g' \
+ -e 's|$$(TQTDIR)/include|${PREFIX}/include/tqt3|g' \
+ -e 's|$$(TQTDIR)/lib|${PREFIX}/lib|g' \
+ -e 's|$$(TQTDIR)|${PREFIX}/share/tqt3|' \
+ ${WRKSRC}/../mkspecs/freebsd-clang/qmake.conf
+ ${LN} -s freebsd-clang ${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>
diff --git a/freebsd/dependencies/tqmake/distinfo b/freebsd/dependencies/tqmake/distinfo
new file mode 100644
index 000000000..47e857a70
--- /dev/null
+++ b/freebsd/dependencies/tqmake/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1681662218
+SHA256 (TDE/dependencies/tqt-x11-free_14.1.0.orig.tar.xz) = 8d40f59fb4acff7480a4497a514f372cb065a7b706860ee106bf6620d069a4d9
+SIZE (TDE/dependencies/tqt-x11-free_14.1.0.orig.tar.xz) = 10937096
diff --git a/freebsd/dependencies/tqmake/files/Makefile.bsd b/freebsd/dependencies/tqmake/files/Makefile.bsd
new file mode 100644
index 000000000..193bff07e
--- /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}
+MK_MAN= no # qmake.1 anyone?
+
+.PATH: ${.CURDIR} ${.CURDIR:H}/src/tools
+CXXFLAGS+=-I${.CURDIR:H}/mkspecs/freebsd-clang
+
+.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+=-DTQT_NO_TEXTCODEC -DTQT_NO_UNICODETABLES -DTQT_NO_COMPONENT \
+ -DTQT_NO_STL -DTQT_NO_COMPRESS -DTQT_INSTALL_DATA="\"${SHAREDIR}\""
+
+# I guess, qconfig.cpp used to be optional, but no longer is -- due to
+# bit-rot in TQt 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 <bsd.prog.mk>
diff --git a/freebsd/dependencies/tqmake/files/qconfig.cpp b/freebsd/dependencies/tqmake/files/qconfig.cpp
new file mode 100644
index 000000000..9185217c6
--- /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/lib/tqt3/plugins"; }
+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..481b124c6
--- /dev/null
+++ b/freebsd/dependencies/tqmake/pkg-plist
@@ -0,0 +1,151 @@
+bin/tqmake
+%%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
+%%PORTDOCS%%%%DOCSDIR%%/html/qmake-manual.html
+%%PORTDOCS%%%%DOCSDIR%%/html/qmake.dcf
+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/dilos-g++/qmake.conf
+share/tqt3/mkspecs/dilos-g++/qplatformdefs.h
+share/tqt3/mkspecs/freebsd-clang/qmake.conf
+share/tqt3/mkspecs/freebsd-clang/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-clang/qmake.conf
+share/tqt3/mkspecs/linux-clang/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++-sparc/qmake.conf
+share/tqt3/mkspecs/linux-g++-sparc/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