1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Respect PTHREAD_{CFLAGS,LIBS}, unmark FORBIDDEN, mark BROKEN on 4.x/Alpha

This commit is contained in:
Michael Nottebrock 2004-05-15 15:32:19 +00:00
parent 5f26b865a7
commit 762c749fe1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109218

View File

@ -17,16 +17,21 @@ 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 ${OSVERSION} >= 502102
FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}"
.if ${ARCH} == "alpha" && ${OSVERSION} < 500000
BROKEN= "Does not compile on FreeBSD-4.x/Alpha"
.endif
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}