diff options
Diffstat (limited to 'freebsd/dependencies/tqmake/files')
-rw-r--r-- | freebsd/dependencies/tqmake/files/Makefile.bsd | 43 | ||||
-rw-r--r-- | freebsd/dependencies/tqmake/files/qconfig.cpp | 15 |
2 files changed, 58 insertions, 0 deletions
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"; } |