openbsd-ports/print/py-cups/Makefile
2012-08-04 14:43:10 +00:00

45 lines
957 B
Makefile

# $OpenBSD: Makefile,v 1.23 2012/08/04 14:43:10 ajacoutot Exp $
COMMENT= CUPS bindings for Python
MODPY_EGG_VERSION= 1.9.61
DISTNAME= pycups-${MODPY_EGG_VERSION}
PKGNAME= py-cups-${MODPY_EGG_VERSION}
REVISION= 0
CATEGORIES= print
HOMEPAGE= http://cyberelk.net/tim/software/pycups/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += cups ${MODPY_WANTLIB}
MASTER_SITES= http://cyberelk.net/tim/data/pycups/
EXTRACT_SUFX= .tar.bz2
MODULES= converters/libiconv \
lang/python
LIB_DEPENDS= print/cups,-libs \
${MODPY_LIB_DEPENDS}
CFLAGS+= -I${LOCALBASE}/include -DVERSION=\"${MODPY_EGG_VERSION}\"
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV= PYTHON="${MODPY_BIN}" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}"
NO_REGRESS= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/cupsconnection.c
.include <bsd.port.mk>