2005-05-20 02:03:28 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.14 2005/05/20 06:06:25 alek Exp $
|
2001-03-25 22:49:10 -05:00
|
|
|
|
|
|
|
COMMENT= "convert Big5/GB encoded files to postscript"
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2005-05-20 02:03:28 -04:00
|
|
|
DISTNAME= bg5ps-1.3.0
|
|
|
|
PKGNAME= zh-${DISTNAME}p0
|
|
|
|
CATEGORIES= chinese x11
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2005-05-20 02:03:28 -04:00
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2005-05-20 02:03:28 -04:00
|
|
|
# GPL
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2004-11-21 16:51:36 -05:00
|
|
|
WANTLIB= c m
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2005-05-20 02:03:28 -04:00
|
|
|
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2005-05-20 02:03:28 -04:00
|
|
|
PYTHON_VER= 2.3
|
2001-10-24 08:10:24 -04:00
|
|
|
RUN_DEPENDS= ::chinese/arphicttf \
|
2002-04-07 18:30:23 -04:00
|
|
|
:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2001-04-17 22:59:18 -04:00
|
|
|
LIB_DEPENDS= ttf.1::print/freetype
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2002-10-24 19:52:29 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2002-04-07 18:30:23 -04:00
|
|
|
post-patch:
|
|
|
|
perl -pi -e \
|
|
|
|
"s|/usr/bin/python|${LOCALBASE}/bin/python${PYTHON_VER}|" \
|
|
|
|
${WRKSRC}/bg5ps
|
|
|
|
|
2003-04-19 09:30:47 -04:00
|
|
|
MAKE_FLAGS=CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" LDFLAGS=-L${LOCALBASE}/lib
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/bg5ps ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/ttf2psm ${PREFIX}/bin
|
2001-01-21 10:11:33 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/bg5ps
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bg5ps
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bg5ps
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bg5ps.conf ${PREFIX}/lib/bg5ps
|
|
|
|
cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/bg5ps
|
|
|
|
cp -R ${WRKSRC}/examples/* ${PREFIX}/share/examples/bg5ps
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|