some existing COMPILER lines with arch restrictions etc. In the usual case this is now using "COMPILER = base-clang ports-gcc base-gcc" on ports with c++ libraries in WANTLIB. This is basically intended to be a noop on architectures using clang as the system compiler, but help with other architectures where we currently have many ports knocked out due to building with an unsuitable compiler - - some ports require c++11/newer so the GCC version in base that is used on these archirtectures is too old. - some ports have conflicts where an executable is built with one compiler (e.g. gcc from base) but a library dependency is built with a different one (e.g. gcc from ports), resulted in mixing incompatible libraries in the same address space. devel/gmp is intentionally skipped as it's on the path to building gcc - the c++ library there is unused in ports (and not built by default upstream) so intending to disable building gmpcxx in a future commit.
126 lines
3.8 KiB
Makefile
126 lines
3.8 KiB
Makefile
# $OpenBSD: Makefile,v 1.62 2018/10/24 14:28:06 sthen Exp $
|
|
|
|
DPB_PROPERTIES= tag:kde3
|
|
|
|
COMMENT-main= multilingual input method library
|
|
COMMENT-gtk= uim for GTK+2
|
|
COMMENT-gtk3= uim for GTK+3
|
|
COMMENT-kde= uim for KDE3
|
|
COMMENT-qt= uim for QT3
|
|
COMMENT-qt4= uim for QT4
|
|
|
|
CATEGORIES= inputmethods japanese chinese
|
|
|
|
V= 1.8.6
|
|
DISTNAME= uim-$V
|
|
PKGNAME-main= uim-$V
|
|
PKGNAME-gtk= uim-gtk-$V
|
|
PKGNAME-gtk3= uim-gtk3-$V
|
|
PKGNAME-kde= uim-kde-$V
|
|
PKGNAME-qt= uim-qt-$V
|
|
PKGNAME-qt4= uim-qt4-$V
|
|
REVISION= 8
|
|
|
|
MASTER_SITES= https://github.com/uim/uim/releases/download/uim-$V/
|
|
HOMEPAGE= https://github.com/uim/uim
|
|
|
|
SHARED_LIBS += gcroots 0.0 # .1.0
|
|
SHARED_LIBS += uim-scm 0.0 # .0.0
|
|
SHARED_LIBS += uim 1.0 # .6.0
|
|
SHARED_LIBS += uim-custom 0.0 # .2.0
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
cWANTLIB += X11 Xext Xrender fontconfig freetype iconv intl m
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MULTI_PACKAGES= -main -gtk -gtk3 -kde -qt -qt4
|
|
|
|
MODULES= textproc/intltool \
|
|
x11/qt4 \
|
|
x11/kde # last on purpose
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
RUN_DEPENDS-main= devel/desktop-file-utils
|
|
|
|
WANTLIB-main += ${cWANTLIB}
|
|
WANTLIB-main += Xft anthy anthydic c curses expat ${COMPILER_LIBCXX}
|
|
WANTLIB-main += util xcb z
|
|
|
|
LIB_DEPENDS-main= inputmethods/anthy
|
|
|
|
|
|
WANTLIB-gtk += ${cWANTLIB}
|
|
WANTLIB-gtk += Xcomposite Xcursor Xdamage Xfixes Xi Xinerama Xrandr
|
|
WANTLIB-gtk += atk-1.0 c cairo expat ffi gcroots gdk-x11-2.0 gdk_pixbuf-2.0
|
|
WANTLIB-gtk += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 graphite2
|
|
WANTLIB-gtk += gthread-2.0 gtk-x11-2.0 harfbuzz pango-1.0 pangocairo-1.0
|
|
WANTLIB-gtk += pangoft2-1.0 pcre pixman-1 png pthread
|
|
WANTLIB-gtk += uim uim-custom uim-scm xcb xcb-render xcb-shm z
|
|
|
|
LIB_DEPENDS-gtk= inputmethods/uim \
|
|
x11/gtk+2
|
|
|
|
WANTLIB-gtk3 += ${cWANTLIB}
|
|
WANTLIB-gtk3 += Xcomposite Xcursor Xdamage Xfixes Xi Xinerama
|
|
WANTLIB-gtk3 += Xrandr Xtst atk-1.0 atk-bridge-2.0 atspi c cairo cairo-gobject
|
|
WANTLIB-gtk3 += dbus-1 expat ffi gcroots gdk-3 gdk_pixbuf-2.0 gio-2.0
|
|
WANTLIB-gtk3 += glib-2.0 gmodule-2.0 gobject-2.0 graphite2 gthread-2.0
|
|
WANTLIB-gtk3 += gtk-3 harfbuzz pango-1.0 pangocairo-1.0 pangoft2-1.0
|
|
WANTLIB-gtk3 += pcre pixman-1 png pthread uim uim-custom
|
|
WANTLIB-gtk3 += uim-scm xcb xcb-render xcb-shm z epoxy
|
|
|
|
LIB_DEPENDS-gtk3= inputmethods/uim \
|
|
x11/gtk+3
|
|
|
|
WANTLIB-kde += ${cWANTLIB} ${KDE}/kdecore ${KDE}/kdeui
|
|
WANTLIB-kde += DCOP GL ICE SM X11-xcb Xcursor Xdamage Xfixes
|
|
WANTLIB-kde += Xft Xi Xinerama Xmu Xrandr Xt Xxf86vm art_lgpl_2 drm
|
|
WANTLIB-kde += expat gcroots glapi idn jpeg kdefx lcms mng png pthread
|
|
WANTLIB-kde += qt-mt ${COMPILER_LIBCXX} uim uim-scm util xcb xcb-dri2
|
|
WANTLIB-kde += xcb-glx z
|
|
|
|
LIB_DEPENDS-kde= inputmethods/uim \
|
|
x11/kde/libs3
|
|
|
|
WANTLIB-qt += ${cWANTLIB} ${MODQT3_WANTLIB}
|
|
WANTLIB-qt += GL ICE SM X11-xcb Xcursor Xdamage Xfixes
|
|
WANTLIB-qt += Xft Xi Xinerama Xmu Xrandr Xt Xxf86vm c drm expat gcroots
|
|
WANTLIB-qt += glapi jpeg lcms mng png pthread ${COMPILER_LIBCXX}
|
|
WANTLIB-qt += uim uim-custom uim-scm xcb xcb-dri2 xcb-glx z
|
|
|
|
LIB_DEPENDS-qt= ${MODQT3_LIB_DEPENDS} \
|
|
inputmethods/uim
|
|
|
|
WANTLIB-qt4 += ${cWANTLIB} ${MODQT4_WANTLIB}
|
|
WANTLIB-qt4 += ICE QtGui SM Xi Xinerama c pthread ${COMPILER_LIBCXX} uim
|
|
WANTLIB-qt4 += uim-custom uim-scm
|
|
|
|
LIB_DEPENDS-qt4= ${MODQT4_LIB_DEPENDS} \
|
|
inputmethods/uim
|
|
|
|
AUTOCONF_VERSION= 2.68
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
CONFIGURE_ENV= CPPFLAGS='-I${MODQT3_INCDIR} -I${LOCALBASE}/include -I${X11BASE}/include' \
|
|
LDFLAGS='-L${MODQT3_LIBDIR} -L${LOCALBASE}/lib -L${X11BASE}/lib' \
|
|
ac_cv_prog_HOST_MOC=${MODQT3_MOC} \
|
|
ac_cv_prog_HOST_UIC=${MODQT3_MOC}
|
|
|
|
CONFIGURE_ARGS= --with-qt \
|
|
--with-qt-immodule \
|
|
--with-qt4 \
|
|
--with-qt4-immodule \
|
|
--with-anthy-utf8
|
|
|
|
post-install:
|
|
rm ${PREFIX}/lib/uim/plugin/*.{a,la}
|
|
rm ${PREFIX}/lib/gtk-2.0/2.10.0/immodules/*.{a,la}
|
|
rm ${PREFIX}/lib/gtk-3.0/3.0.0/immodules/*.{a,la}
|
|
rm ${PREFIX}/lib/kde3/*.{a,la}
|
|
|
|
.include <bsd.port.mk>
|