1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
freebsd-ports/textproc/uim-m17nlib/Makefile
Baptiste Daroussin a33191366c Convert GMAKE to MAKE_CMD
Please note that lots of invocation of MAKE_CMD here are wrong as they do not
properly respect MAKE_ENV and friends

With hat:	portmgr
2014-06-25 05:35:31 +00:00

42 lines
1.2 KiB
Makefile

# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org>
# $FreeBSD$
.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -m17nlib-nox11
.else
PKGNAMESUFFIX= -m17nlib
.endif
COMMENT= Uim plugin using m17n library input method
BUILD_DEPENDS= m17n-db:${PORTSDIR}/devel/m17n-db
LIB_DEPENDS= libm17n.so:${PORTSDIR}/devel/m17n-lib \
libuim.so:${PORTSDIR}/textproc/uim
RUN_DEPENDS= m17n-db:${PORTSDIR}/devel/m17n-db
.if !defined(WITHOUT_M17NCONTRIB)
RUN_DEPENDS+= ${LOCALBASE}/share/m17n/icons/as-phonetic.png:${PORTSDIR}/devel/m17n-db
.endif
MASTERDIR= ${.CURDIR}/../../textproc/uim
PKGDIR= ${.CURDIR}
CONFIGURE_ARGS= --with-m17nlib
UIM_SLAVE= yes
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-uim_Makefile.in
do-build:
(cd ${WRKSRC}/uim && ${MAKE_CMD} libuim-m17nlib.la)
do-install:
(cd ${WRKSRC}/uim && \
${MAKE_CMD} DESTDIR=${STAGEDIR} uim_plugin_LTLIBRARIES=libuim-m17nlib.la install-uim_pluginLTLIBRARIES && \
${MKDIR} ${STAGEDIR}${PREFIX}/share/uim/pixmaps && \
DESTDIR="${STAGEDIR}" ${SH} ../pixmaps/uim-m17nlib-relink-icons)
post-install:
@${FIND} ${LOCALBASE}/share/m17n/icons/ -name '*.png' -execdir ${ECHO} share/uim/pixmaps/m17n-{} \; >>${TMPPLIST}
.include "${MASTERDIR}/Makefile"