ajacoutot 9c884dd8fa Missing BDEP on graphics/png needed to build ptexplain which is not
installed (hence no LDEP).

reported by kmos@
2020-08-03 08:14:56 +00:00

50 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.11 2020/08/03 08:14:56 ajacoutot Exp $
COMMENT= Brother P-touch CUPS driver
GH_TAGNAME= v1.5.1
GH_ACCOUNT= philpem
GH_PROJECT= printer-driver-ptouch
DISTNAME= ptouch-driver-${GH_TAGNAME:S/v//}
WRKDIST= ${WRKDIR}/ptouch-driver-${GH_TAGNAME:S/v//}
CATEGORIES= print
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE= Yes
WANTLIB += c cups cupsimage m
MASTER_SITES= https://github.com/philpem/printer-driver-ptouch/releases/download/${GH_TAGNAME}/
BUILD_DEPENDS= textproc/p5-XML-LibXML
# needed to build ptexplain which is not installed (hence no LDEP)
BUILD_DEPENDS += graphics/png
LIB_DEPENDS= print/cups,-libs
# foomatic-rip(1), foomatic-db{,-engine}
RUN_DEPENDS += print/cups-filters
CONFIGURE_STYLE= autoreconf
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= libdir=${PREFIX}/libexec
# uses gnu89-inlines; fixes build with clang
CFLAGS += -fgnu89-inline
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.16
USE_GMAKE= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/driver/ptouch-pt.xml
.include <bsd.port.mk>