31 lines
837 B
Makefile
31 lines
837 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= prawda
|
|
PORTVERSION= 0.3.0
|
|
PORTREVISION= 4
|
|
CATEGORIES= russian
|
|
MASTER_SITES= http://www.prawda.newmail.ru/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= English-Russian translator
|
|
|
|
USE_BZIP2= yes
|
|
NO_WRKSUBDIR= yes
|
|
USE_XORG= x11 xaw xmu xt sm
|
|
CXXFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
|
|
|
NO_STAGE= yes
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|ulong|unsigned long|g;;s|malloc.h|stdlib.h|g" ${WRKSRC}/src/face/video_x.cpp
|
|
@${REINPLACE_CMD} -e "s|g++|${CXX} ${CXXFLAGS}|g" ${WRKSRC}/src/bin/makefile.exe
|
|
@${FIND} ${WRKSRC} -name makefile | ${XARGS} \
|
|
${REINPLACE_CMD} -e "s|g++|${CXX} ${CXXFLAGS}|g"
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|g" ${WRKSRC}/bin/makefile ${WRKSRC}/src/face/main.cpp
|
|
|
|
do-build:
|
|
@cd ${WRKSRC}/bin && ${MAKE}
|
|
|
|
do-install:
|
|
@cd ${WRKSRC}/bin && ${MAKE} install
|
|
|
|
.include <bsd.port.mk>
|