aboutsummaryrefslogtreecommitdiffstats
path: root/print/xpp/Makefile
blob: 3e6dc30c4e8bca019d700e0aa42d7a5c80a2d960 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Nate Lawson <njl@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xpp
PORTVERSION=    1.5
PORTREVISION=   9
CATEGORIES= print
MASTER_SITES=   SF/cups/${PORTNAME}/${PORTVERSION}

MAINTAINER= cy@FreeBSD.org
COMMENT=    X11-based printer manager for CUPS

LIB_DEPENDS=    cups.2:${PORTSDIR}/print/cups-client \
        fltk.1:${PORTSDIR}/x11-toolkits/fltk
BUILD_DEPENDS=  ${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base

USE_BZIP2=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes

PLIST_FILES=    bin/xpp share/doc/xpp/README
PLIST_DIRS= share/doc/xpp

NO_STAGE=   yes
post-configure:
    @${REINPLACE_CMD} -e 's|$$(all_includes)|-I ${PREFIX}/include|' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS +=|' ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|printFiles::get|get|' ${WRKSRC}/xpp.h

post-install:
    ${MKDIR} ${PREFIX}/share/doc/xpp
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xpp

.include <bsd.port.mk>