mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
15c4605568
- Utilize USE_LDCONFIG PR: ports/101884 Submitted by: Gea-Suan Lin <gslin at gslin.org>
95 lines
2.4 KiB
Makefile
95 lines
2.4 KiB
Makefile
# New ports collection makefile for: oxim
|
|
# Date created: Mar 19 2006
|
|
# Whom: Rong-En Fan <rafan@infor.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= oxim
|
|
PORTVERSION= 1.0.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= chinese textproc
|
|
MASTER_SITES= ftp://apt.nc.hcc.edu.tw/pub/mirror/opendesktop.org.tw/OXIM/Source/ \
|
|
ftp://ftp4.tnc.edu.tw/pub3/opendesktop-tw/odp/ \
|
|
ftp://140.111.128.66/odp/OXIM/Source/
|
|
|
|
MAINTAINER= rafan@FreeBSD.org
|
|
COMMENT= Open X Input Method server
|
|
|
|
LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
|
RUN_DEPENDS= zh-fireflyttf>=0:${PORTSDIR}/chinese/fireflyttf
|
|
|
|
OPTIONS= GTK2 "Enable GTK2 input method module" On \
|
|
CHEWING "Enable Chewing input module" On \
|
|
UNICODE "Enable Unicode input module" On
|
|
|
|
USE_GCC= 3.2+
|
|
USE_ICONV= yes
|
|
USE_X_PREFIX= yes
|
|
USE_GNOME=
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib -liconv
|
|
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_ARGS+=--disable-bimsphone-module \
|
|
--disable-static \
|
|
--with-conf-dir=${TARGETDIR}/etc/${PORTNAME}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITHOUT_GTK2)
|
|
CONFIGURE_ARGS+= --disable-gtk-immodule
|
|
PLIST_SUB+= GTK2="@comment "
|
|
.else
|
|
USE_GNOME+= gtk20
|
|
CONFIGURE_ARGS+= --enable-gtk-immodule
|
|
PLIST_SUB+= GTK2=""
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_CHEWING)
|
|
# make sure we have the required libchewing
|
|
BUILD_DEPENDS+= zh-libchewing>=0.3.0_1:${PORTSDIR}/chinese/libchewing
|
|
RUN_DEPENDS+= zh-libchewing>=0.3.0_1:${PORTSDIR}/chinese/libchewing
|
|
|
|
CONFIGURE_ARGS+= --enable-chewing-module
|
|
CONFIGURE_ENV+= CHEWING_CFLAGS=-I${LOCALBASE}/include
|
|
PLIST_SUB+= CHEWING=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-chewing-module
|
|
PLIST_SUB+= CHEWING="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_UNICODE)
|
|
CONFIGURE_ARGS+= --enable-unicode-module
|
|
PLIST_SUB+= UNICODE=""
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-unicode-module
|
|
PLIST_SUB+= UNICODE="@comment "
|
|
.endif
|
|
|
|
# TODO WITHOUT_NLS knob
|
|
#.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -lintl"
|
|
PLIST_SUB+= NLS=""
|
|
#.else
|
|
#CONFIGURE_ARGS+=--disable-nls
|
|
#PLIST_SUB+= NLS="@comment "
|
|
#.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} 's|%%PREFIX%%|${TARGETDIR}|' \
|
|
${WRKSRC}/src/gtk-immodule/gtkintl.h
|
|
|
|
post-install:
|
|
.if !defined(WITHOUT_GTK2)
|
|
@gtk-query-immodules-2.0 > ${TARGETDIR}/etc/gtk-2.0/gtk.immodules
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
@${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
|
|
|
|
.include <bsd.port.post.mk>
|