mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
fb1884842d
- make this port PREFIX clean PR: 71981 Submitted by: leeym Approved by: portmgr (marcus)
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Ports collection makefile for: chinput3
|
|
# Date created: 03/31/2002
|
|
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= chinput
|
|
PORTVERSION= 3.0.2.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= chinese x11
|
|
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/statue/chinput3/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Chinese GB2312,BIG5 code input server
|
|
|
|
LATEST_LINK= zh-chinput3
|
|
USE_XLIB= yes
|
|
USE_GNOME= gtk12 imlib
|
|
USE_REINPLACE= yes
|
|
|
|
MSG_FILE= ${.CURDIR}/pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} < 500000
|
|
BROKEN= "Does not compile on FreeBSD-4.x/Alpha"
|
|
.endif
|
|
|
|
.if ${ARCH} == "amd64"
|
|
BROKEN= "Does not compile on amd64 (needs -fPIC)"
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/extern int ForwardEvent();/d' \
|
|
${WRKSRC}/src/Chinput-*/src/*.c
|
|
@${FIND} ${WRKSRC} -type f | \
|
|
${XARGS} ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g'
|
|
|
|
pre-build:
|
|
@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
|
|
-e 's|-lc_r|${PTHREAD_CFLAGS} ${PTHREAD_LIBS}|'
|
|
|
|
post-install:
|
|
@${SED} -e 's,%%X11BASE%%,${X11BASE},g' ${MSG_FILE} > ${PKGMESSAGE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|