1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/textproc/uim-m17nlib/Makefile
Tobias Kortkamp e79fe1aabc Fix WWW in parent/child ports
Many of the WWW are overwritten later which means the wrong value
is used. This did not happen before where the children were either
 a) just using the pkg-descr from the parents
 b) or had their own separate pkg-descr with custom WWW

Use WWW?= in parents when the child's WWW is different.

Children that use the same WWW as the parent can just inherit it,
i.e., the child WWW can be removed.

Approved by:	portmgr (implicit)
2022-09-10 19:41:16 +02:00

37 lines
1.0 KiB
Makefile

.if defined(WITHOUT_X11)
PKGNAMESUFFIX= -m17nlib-nox11
.else
PKGNAMESUFFIX= -m17nlib
.endif
COMMENT= Uim plugin using m17n library input method
BUILD_DEPENDS= m17n-db:devel/m17n-db
LIB_DEPENDS= libm17n.so:devel/m17n-lib \
libuim.so:textproc/uim
RUN_DEPENDS= m17n-db:devel/m17n-db
.if !defined(WITHOUT_M17NCONTRIB)
RUN_DEPENDS+= ${LOCALBASE}/share/m17n/icons/as-phonetic.png:devel/m17n-db
.endif
MASTERDIR= ${.CURDIR}/../../textproc/uim
PKGDIR= ${.CURDIR}
CONFIGURE_ARGS= --with-m17nlib
UIM_SLAVE= yes
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_STRIP_FLAG=-s 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"