2010-11-14 19:22:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2010/11/15 00:22:49 espie Exp $
|
2001-03-25 22:49:10 -05:00
|
|
|
|
2007-09-15 17:36:57 -04: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
|
2010-07-24 03:01:03 -04:00
|
|
|
PKGNAME= zh-${DISTNAME}
|
2010-09-06 23:41:13 -04:00
|
|
|
REVISION= 4
|
2005-05-20 02:03:28 -04:00
|
|
|
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
|
2010-07-24 03:01:03 -04:00
|
|
|
|
|
|
|
WANTLIB= c m ttf
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2008-06-08 10:27:03 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP}
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2009-07-18 11:07:51 -04:00
|
|
|
MODULES= lang/python
|
2010-11-14 19:22:45 -05:00
|
|
|
RUN_DEPENDS= chinese/arphicttf
|
|
|
|
LIB_DEPENDS= print/freetype
|
2001-01-21 10:11:33 -05:00
|
|
|
|
2009-07-18 11:07:51 -04:00
|
|
|
# python.port.mk overrides various targets when CONFIGURE_STYLE is empty
|
|
|
|
CONFIGURE_STYLE=none
|
|
|
|
|
2002-10-24 19:52:29 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2006-02-07 23:54:48 -05:00
|
|
|
pre-configure:
|
2002-04-07 18:30:23 -04:00
|
|
|
perl -pi -e \
|
2009-07-18 11:07:51 -04:00
|
|
|
"s|/usr/local/bin/python.*|${MODPY_BIN}|" ${WRKSRC}/bg5ps
|
2002-04-07 18:30:23 -04:00
|
|
|
|
2006-06-05 12:14:24 -04:00
|
|
|
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
|
|
|
|
LDFLAGS=-L${LOCALBASE}/lib \
|
|
|
|
CC=${CC}
|
2003-04-19 09:30:47 -04:00
|
|
|
|
|
|
|
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>
|