aboutsummaryrefslogtreecommitdiffstats
path: root/print/hp2xx/Makefile
blob: 91f3f66df6994209f58365f09c7f8e746a62b193 (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
36
37
38
39
40
41
42
# New ports collection makefile for:    hp2xx
# Date created:         17 Jan 1999
# Whom:                 Lars Koeller
#
# $FreeBSD$
#

PORTNAME=   hp2xx
PORTVERSION=    3.4.4
PORTREVISION=   1
CATEGORIES= print x11
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A HPGL to vector- and raster formats converter and previewer for X11

LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png \
        tiff.4:${PORTSDIR}/graphics/tiff

WRKSRC=     ${WRKDIR}/${DISTNAME}/sources

MAKE_ENV=   DEFINES="${CPPFLAGS}" ALL_LIBS="${LDFLAGS}" \
        PREVIEWER="${PREVIEWER}" 

MAN1=       hp2xx.1
INFO=       hp2xx

CPPFLAGS=   -DUNIX -I${LOCALBASE}/include
LDFLAGS=    -lm -L${LOCALBASE}/lib -ltiff -lpng -lz

.if defined(WITHOUT_X11)
PKGNAMESUFFIX=  -nox11
PREVIEWER=  no_prev
.else
USE_XLIB=   yes
CPPFLAGS+=  -DHAS_UNIX_X11 -I${X11BASE}/include
LDFLAGS+=   -L${X11BASE}/lib -lX11
PREVIEWER=  to_x11
.endif

.include <bsd.port.mk>