sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

44 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.4 2021/02/23 19:39:35 sthen Exp $
COMMENT= convert Big5/GB encoded files to postscript
DISTNAME= bg5ps-1.3.0
REVISION= 12
CATEGORIES= print fonts chinese x11
# GPL
PERMIT_PACKAGE= Yes
WANTLIB= c m ttf
MODULES= lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
RUN_DEPENDS= fonts/zh-arphicttf
LIB_DEPENDS= print/freetype
# python.port.mk overrides various targets when CONFIGURE_STYLE is empty
CONFIGURE_STYLE=none
NO_TEST= Yes
MODPY_ADJ_FILES =bg5ps
pre-configure:
${SUBST_CMD} ${WRKSRC}/bg5ps.conf
MAKE_FLAGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include/freetype1" \
LDFLAGS=-L${LOCALBASE}/lib \
CC=${CC}
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/bg5ps ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/ttf2psm ${PREFIX}/bin
${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>