summaryrefslogtreecommitdiff
path: root/devel/qmake4/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/qmake4/files')
-rw-r--r--devel/qmake4/files/Makefile.bsd47
-rw-r--r--devel/qmake4/files/qconfig.cpp19
2 files changed, 66 insertions, 0 deletions
diff --git a/devel/qmake4/files/Makefile.bsd b/devel/qmake4/files/Makefile.bsd
new file mode 100644
index 000000000000..dd4e48c651bf
--- /dev/null
+++ b/devel/qmake4/files/Makefile.bsd
@@ -0,0 +1,47 @@
+# $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}
+NOMAN= true # qmake.1 anyone?
+
+.PATH: ${.CURDIR} ${.CURDIR:H}/src/corelib/tools ${.CURDIR:H}/src/corelib/io \
+ ${.CURDIR:H}/src/corelib/global ${.CURDIR:H}/src/corelib/plugin \
+ ${.CURDIR:H}/src/corelib/kernel ${.CURDIR:H}/src/3rdparty/md5
+CXXFLAGS+=-I${.CURDIR:H}/mkspecs/freebsd-g++
+
+.for s in src/corelib/arch/generic src/global src/tools src/kernel src/codecs \
+ src/3rdparty/md5 include/QtCore include
+CXXFLAGS+=-I${.CURDIR:H}/$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_BUILD_QMAKE -DQT_NO_COMPRESS -DHAVE_QCONFIG_CPP \
+ -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQMAKE_OPENSOURCE_EDITION
+
+# 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= qmake-qt4
+BINDIR= ${PREFIX}/bin
+SHAREDIR=${PREFIX}/share/qt4
+
+${SHAREDIR}:
+ mkdir -p "$@"
+
+beforeinstall: ${SHAREDIR}
+ cp -Rp ${.CURDIR:H}/mkspecs ${SHAREDIR}
+
+.include <bsd.prog.mk>
diff --git a/devel/qmake4/files/qconfig.cpp b/devel/qmake4/files/qconfig.cpp
new file mode 100644
index 000000000000..3bf44c9a3582
--- /dev/null
+++ b/devel/qmake4/files/qconfig.cpp
@@ -0,0 +1,19 @@
+/*
+ * $FreeBSD$
+ * Hand-crafted...
+ * The default prefix (/ usr / local) is dynamicly replaced
+ * at configure time.
+ */
+#define QT_CONFIGURE_LICENSEE "Open Source";
+#define QT_CONFIGURE_LICENSED_PRODUCTS "OpenSourceDesktop";
+#define QT_CONFIGURE_PREFIX_PATH "/usr/local";
+#define QT_CONFIGURE_DOCUMENTATION_PATH "/usr/local/share/doc/qt4";
+#define QT_CONFIGURE_HEADERS_PATH "/usr/local/include";
+#define QT_CONFIGURE_LIBRARIES_PATH "/usr/local/lib";
+#define QT_CONFIGURE_BINARIES_PATH "/usr/local/bin";
+#define QT_CONFIGURE_PLUGINS_PATH "/usr/local/lib/plugins";
+#define QT_CONFIGURE_DATA_PATH "/usr/local/share/qt4";
+#define QT_CONFIGURE_TRANSLATIONS_PATH "/usr/local/share/qt4/translations";
+#define QT_CONFIGURE_SETTINGS_PATH "/usr/local/etc/xdg";
+#define QT_CONFIGURE_EXAMPLES_PATH "/usr/local/share/qt4/examples";
+#define QT_CONFIGURE_DEMOS_PATH "/usr/local/share/qt4/demos/";