1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/chinese/miniChinput/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

47 lines
1.4 KiB
Makefile

# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
# $FreeBSD$
PORTNAME= miniChinput
PORTVERSION= 0.1.9
PORTREVISION= 3
CATEGORIES= chinese
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/0-1-9
MAINTAINER= ports@FreeBSD.org
COMMENT= A tiny version of Chinput
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
USES= iconv gmake
USE_XORG= x11 xt
USE_LDCONFIG= yes
ALL_TARGET= all data
INSTALL_TARGET= install data-install
MAKE_JOBS_UNSAFE= yes
MAN1= chinput.1
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Build fails on sparc64
.endif
post-patch:
@${REINPLACE_CMD} -e 's,make,${GMAKE},g' ${WRKSRC}/src/Makefile.in
@echo "install:" >> ${WRKSRC}/src/IMdkit/Makefile
@${REINPLACE_CMD} 's,^CFLAGS =,CFLAGS +=,' ${WRKSRC}/ImmModules/cce/Makefile.in \
${WRKSRC}/ImmModules/turbo/Makefile.in \
${WRKSRC}/src/server/Makefile.in \
${WRKSRC}/src/client/Makefile.in
@${REINPLACE_CMD} -e 's#$$(prefix)$$(imdir)/{gb,gbk,big5}#$$(prefix)$$(imdir)/gb $$(prefix)$$(imdir)/gbk $$(prefix)$$(imdir)/big5#g' ${WRKSRC}/ImmModules/turbo/Makefile.in
@${REINPLACE_CMD} -e 's,-@PACKAGE_VERSION@,,g' ${WRKSRC}/doc/Makefile.in
@${REINPLACE_CMD} -e 's,/share/man,/man,g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/src/IMdkit/Makefile
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>